Life's random bits By b1thunt3r (aka Ishan Jain)…
Nested Virtualization in Hyper-V

Nested Virtualization in Hyper-V

Ishan jain
Run a Virtual Machine, a Data Center or just Windows Subsystem for Linux inside a Virtual Machine.

Hyper-V in Windows does support nested virtualization, but you need to configure it for each machine. Hyper-V manager doesn't provide a simple way to enable it. But there is a simple powershell command:

Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true

Note: Make sure VM is turned off before you run the command

It is also good to double check if Windows Boot is configured with Virtualization:

bcdedit /enum | findstr -i hypervisorlaunchtype

If not you might need to enable Virtualization in Windows Boot:

bcdedit /set hypervisorlaunchtype Auto

Resources