Configuring a Hyper-V Host to Support Nested Virtualization – Windows Server 2016 – TP5

Deployment requirements for Nested Virtualization;

For the physical host:

  • Windows Server 2016 Technical Preview 5 with all updates installed
  • Intel processor with Intel VT-x enabled (e.g., AMD-V is not yet supported)
  • 16 GB minimum RAM recommended
  • Device Guard disabled
  • Virtualization Based Security (VBS) disabled

Nested VM running Hyper-V

  • Windows Server 2016 Technical Preview 5 with all updates installed
  • Minimum of 4 GB RAM for startup
  • Dynamic Memory disabled
  • MAC spoofing enabled
  • Disk space capacity to host the VMs and files such as ISOs
  • Generation 2 VM (recommended)

Following are the procedure for to the creation of the VM in which you plan to install the Hyper-V role:

  • Ensure the physical host meets the recommended requirements to run Hyper-V (Intel VT-X, 16 GB RAM, 1 OS disk,
  • 1 data disk for VM storage, 1 Gb NIC)
  • Install Windows Server 2016 Technical Preview on the host (use at least a 8 GB USB stick to create bootable
  • installation media)
  • Configure the physical server with all of the latest updates
  • Install the Hyper-V role with Server Manager or PowerShell (reboot the server after installation is complete)
  • Ensure that one NIC is enabled as a Hyper-V Network Switch
  • Ensure that Device Guard is disabled

Once all of these steps are complete, then you can configure a VM for nested virtualization.

Configuring a VM for Nested Virtualization

Once the physical host is properly configured, you can create a VM to support nested virtualization. Use the following


Procedure as you provision a new VM on your physical host:

1. Create a VM using the following example configuration:

Name – NestedHost

Generation – Generation 2 VM

RAM – 8 GB with dynamic memory disabled (minimum recommended)

Network – 1 NIC (minimum recommended)

OS Storage – 127 GB

Data Storage – Configure an additional VHD and size it based on how many VMs you plan to create and run. Also,

consider making it a fixed disk.

Processors – 2 processors (minimum recommended, based on your workload)


2. Install Windows Server 2016 Technical Preview 5

3. Configure the VM with the same updates as the physical host.

4. Configure the data disk with a GPT partition using the NTFS format.

5. Enable the high performance power configuration.

6. Shutdown the VM once the configuration is complete.


You must now enable nested virtualization and MAC spoofing in the new virtual machine. You can do this manually

using PowerShell, or run a publicly available predefined script to configure a VM and enable nested virtualization. If

you would like to do this task manually, you can open a Windows PowerShell window with Administrator privileges,

and then run the following PowerShell cmdlets to enable nested virtualization and MAC spoofing.

$VM = “NestedHost”

Set-VMProcessor -VMNAME $VM -ExposeVirtualizationExtensions $true

Set-VMNetworkAdapter -VMNAME $VM -MacAddressSpoofing on

Now that the VM is configured to support nested virtualization, you must install the Hyper-V role in the VM.

Leave a comment

Your email address will not be published. Required fields are marked *