Azure Stack HCI 20H2 using Nested Virtualization

SAKTHIMURUGAN ARUMUGAM 66 Reputation points
2021-09-28T12:16:10.557+00:00

Hello, We are trying to implement HCI on nested virtualization setup.

We are following https://github.com/Azure/AzureStackHCI-EvalGuide/tree/main/nested document, which talks about the setup. We could able to setup till the management cluster. However, when we try to setup the HCI nodes(https://github.com/Azure/AzureStackHCI-EvalGuide/blob/main/nested/steps/3b_AzSHCINodesPS.md), we are facing the error. Looks like the VM running on the Hyper-V does not have enough vCPU (16 vCPU * 2 node), where as the host VM has only 16vCPU as we have choosen Standard_E16s_v4 hardward size.

Can some one did the nested virtualization? What is the configuration we need to have on host VM, where Hyper-V is running?

Azure Stack HCI
Azure Stack HCI
A hyperconverged infrastructure operating system delivered as an Azure service that provides security, performance, and feature updates.
378 questions
0 comments No comments
{count} votes

Accepted answer
  1. MattMcSpirit-MSFT 561 Reputation points
    2021-09-29T10:03:39.64+00:00

    It's my understanding that a single VM cannot have more vCPUs than the # of logical processors on the host. It doesn't matter if the total # of vCPUs across your VMs adds up to more than the # of logical processors in the host - that's fine.

    Can you run this from PowerShell?

    (Get-CimInstance -ClassName Win32_Processor).NumberOfLogicalProcessors

    When i wrote the guide, in this step: https://github.com/Azure/AzureStackHCI-EvalGuide/blob/main/nested/steps/3b_AzSHCINodesPS.md#create-the-azshcinode01-vm-using-powershell, i used 16 vCPUs for my nested AzSHCI nodes, and I never use a larger Azure VM than an E16.

    Thanks,
    Matt

    1 person found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. MattMcSpirit-MSFT 561 Reputation points
    2021-09-30T11:59:55.107+00:00

    Did you resize your C:\ inside the VM once you'd made the change to the Azure VM configuration?

    $size = (Get-PartitionSupportedSize -DriveLetter "C")
    Resize-Partition -DriveLetter "C" -Size $size.SizeMax

    Thanks,
    Matt

    1 person found this answer helpful.
    0 comments No comments

  2. MattMcSpirit-MSFT 561 Reputation points
    2021-09-28T18:31:04.873+00:00

    Hi - if you have an E16 VM (16 vCPUs), you should be able to create a nested VM with up to (and including) 16 vCPUs. You can create more than one of these VMs too - what is blocked would be creating a nested AzSHCI node VM with more than 16 vCPUs. You cannot create a VM with more vCPUs than the "host" has logical processors.

    What is the exact error message you're getting?

    Thanks!


  3. SAKTHIMURUGAN ARUMUGAM 66 Reputation points
    2021-09-30T11:39:53.073+00:00

    Hello Matt,

    Now with Standard E16ds_v4 (16 vcpus, 128 GiB memory) size, I'm able to create a sing HCI node. The HDD size was 256 GB then when I created the 2nd HCI node getting the error. Then I increaded the HDD size to 1TB then start all the management nodes and tried again. still getting this error. Can you help me?136529-hci-node2error.png

    0 comments No comments

  4. SAKTHIMURUGAN ARUMUGAM 66 Reputation points
    2021-09-30T12:21:37.13+00:00

    Super, it worked. thanks a lot, Matt.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.