Hi,
I am using an azure VM, Windows 10 Enterprise, version - 21H2, OS build - 19044.3086.
I am installing WSL2 and installed Ubuntu from windows store on it, for this I enabled nested virtualization using - https://learn.microsoft.com/en-us/azure/lab-services/how-to-enable-nested-virtualization-template-vm-using-script?tabs=powershell
I enabled the Virtual Machine Platform as well from "Turn Windows feature on or off"
When I try to open the ubuntu app it gives following error -
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370102
Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
For information please visit https://aka.ms/enablevirtualization
Press any key to continue...
Using some links I tried to enable Virtualization using the following command, but it gives error, I replaced <My Vm Name> with actual VM name.
PS C:\Windows\system32> Set-VMProcessor -VMName <My Vm Name> -ExposeVirtualizationExtensions $true
Set-VMProcessor : Hyper-V was unable to find a virtual machine with name "provided VM Name".
At line:1 char:1
+ Set-VMProcessor -VMName <VM Name> -ExposeVirtualizationExtensi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Set-VMProcessor], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.SetVMProcessor
Please help, how can I resolve this issue.