Interface Technical Training

Nested virtualization in Windows 10 – What Is It and How to Enable It

First off what is nested virtualization?  Nested virtualization is the ability to run Hyper-V inside of a virtualized machine.  This will allow you to install a physical host with the Hyper-V role installed and then create a virtual machine (VM) and install Hyper-V which in turn will allow you to run additional VMs.

For instructor-led Windows Server 2016 training, see our course schedule.

For Microsoft Windows Server 2016, see Nested Virtualization in Windows Server 2016.

There are few prerequisites that must be met before nested virtualization is supported.  There is both operating system and Hyper-V setting that must be configured.  These settings are as follows:

Once the VM has been configured to be a nested VM it no longer supports live migrations.

How to enable nested virtualization:

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

Invoke-WebRequest https:/raw.githubusercontent.com/Microsot/Virtualization-Documentation/maste/hyperv-tools/nested/Enable-NestedVm.ps1 –Outfile ~/enable-NestedVm.ps1 ~Enable-NestedVm.ps1 –VmName <VMName>

Note:  The second cmdlet downloads a script from githubusercontent.com and then executes it.

Turn on the nested VM and you are ready to start creating VMs in your nested environment.

Until next time, RIDE SAFE!

Rick Trader
Windows Server Instructor – Interface Technical Training
Phoenix, AZ