Error When Enabling WSL2 in Azure VM

pgonza04 21 Reputation points
2021-06-18T12:22:45.24+00:00

Hi,

I have created a VM in Azure, Standard B4ms class, and when I try to enable WSL2 with Ubuntu, I get the following error:

WslRegisterDistribution failed with error: 0x80370102

Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.

Any ideas on why this error is happening?

Thanks

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

Accepted answer
  1. Leon Laude 85,726 Reputation points
    2021-06-18T12:49:06.443+00:00

    Hi @pgonza04 ,

    You'll need to choose an Azure VM size that is capable of nested virtualization, check for the SKU Family with Hyper-threaded and capable of running nested virtualization:

    Azure compute unit (ACU)
    https://learn.microsoft.com/en-us/azure/virtual-machines/acu

    More information here:

    How to enable nested virtualization in an Azure VM
    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/nested-virtualization

    ----------

    If the reply was helpful please don't forget to upvote and/or accept as answer, thank you!

    Best regards,
    Leon


3 additional answers

Sort by: Most helpful
  1. Christopher Isidora 26 Reputation points
    2021-12-22T10:52:22.91+00:00

    @pgonza04 What OS were you using? I'm running into the same issue. @Leon Laude I have a Windows 11 Pro Gen 2 with Standard D4s v3. The Hyper-V option enabled but also could not start due to the same reason.

    1 person found this answer helpful.
    0 comments No comments

  2. Can Pekesen 1 Reputation point
    2022-02-26T10:18:38.25+00:00

    @Christopher Isidora I am also using Window 11 (Windows 11 Enterprise 64-bit, 10.0 Build 22000) did you somehow managed to get it working?

    @Leon Laude Do you have any suggestion what to do else? I am on a Standard D4ds v4 machine, which also should support nested virtualization.
    (https://learn.microsoft.com/en-us/azure/virtual-machines/ddv4-ddsv4-series#ddsv4-series)

    0 comments No comments

  3. Rawat, Reena 1 Reputation point
    2024-07-25T13:08:41.8666667+00:00

    This is important

    [https://learn.microsoft.com/en-us/answers/questions/1314633/not-able-to-run-wsl2-on-an-azure-vm-(standard-d8s](https://learn.microsoft.com/en-us/answers/questions/1314633/not-able-to-run-wsl2-on-an-azure-vm-(standard-d8s)

    If you are creating new azure vm, use the recommended size most important when deploying VM set security to 'Standard' instead of ‘Trusted Launch’ 
    
    0 comments No comments