Azure VM Gen2 Nested Virtualization

Christopher Isidora 26 Reputation points
2022-01-10T10:20:20.873+00:00

Hi,

I'm trying to make WSL2 and Hyper-V work on Windows 10/11 Gen2 in Azure VM. Can someone confirm that Nested Virtualization is not supported in Gen2 Azure VM's?
I can to this conclusion: When I create a Azure VM with an Windows 10 Gen1 image (with size: Standard D4s v3), I am able to install WSL2 and Hyper-V does work, also in the TaskManager I can see: Virtualization: Enabled. But when I create a Azure VM with an Windows 10 Gen2 image (with size: Standard D4s v3), Hyper-V and WSL2 is not working and Virtualization: Enabled is not present in the TaskManager.
Can someone please shed some light in this case? Ideally I would like a Gen2 for the vTPM and also the ability to use WSL2 (and or Hyper-V).

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,775 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Prrudram-MSFT 24,191 Reputation points
    2022-01-10T16:34:09.453+00:00

    Hello @Christopher Isidora ,

    Thank you for reaching out to Microsoft Q&A platform. Happy to answer your question.
    Dv3 and Ev3 will be the right choice to set up nested virtualization on gen2 azure VMs. Can you try one of these SKUs on the azure VMs and set up WSL and Hyper-V and check?

    Please "Accept as Answer" if any of above helped so that, it can help others in community looking for remediation for the similar issues.

    1 person found this answer helpful.

  2. Christopher Isidora 26 Reputation points
    2022-01-14T13:39:51.71+00:00

    So I got an update and according to the docs https://learn.microsoft.com/en-us/azure/virtual-machines/trusted-launch. Nested Virtualization is NOT supported when you use Trusted Launch even if you use a Azure SKU that supports it. FYI @Prrudram-MSFT

    1 person found this answer helpful.
    0 comments No comments

  3. Rafael Guimaraes Siqueira 6 Reputation points
    2023-07-13T13:35:05.22+00:00

    Nested virtualization with Trusted Launch seems to work for v5 skus.

    1 person found this answer helpful.

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.