×
Setting Up Nested Virtualization in Windows 2016
Blog Cloud Computing

Setting Up Nested Virtualization in Windows 2016

In this blog, we explained to you how to create nested virtualization in windows 2016.

INTRODUCTION

Nested virtualization windows 2016 is a new feature which is introduced in Windows 2016 server edition. It allows you to run a hypervisor within another hypervisor.

 

REQUIREMENTS

  • Hyper-V Host (Physical machine) with windows 2016 edition installed.
  • Intel Processor with VT-x enabled.

Note: Currently nested VM supports only INTEL based processors.

 

CREATING A VM

  • Open Hyper-V console from windows 2016 host.
  • From the right side of the menu Click New – Virtual Machine

nested virtualization windows 2016

 

  • It will open-up a wizard screen, Click Next to continue.

nested virtualization windows 2016

 

  • Give a name for this VM and click Next.

nested virtualization windows 2016

 

  • Select the desired VM generation and click Next.

nested virtualization windows 2016

 

  • Provide the required amount RAM for this VM and click Next.

nested virtualization windows 2016

 

  • Select the network adapter for this VM from the drop-down list and click Next.

nested virtualization windows 2016

 

  • Provide the VHD size for this VM and click Next.

nested virtualization windows 2016

 

  • Select the OS that to install in this VM and Click Next.

nested virtualization windows 2016

 

  • Verify all the settings in the summary screen and click finish to complete the wizard.

nested virtualization windows 2016

 

ENABLED NESTED VIRTUALIZATION FOR VM

  • First, we need to disable the dynamic memory option from this VM. To do that, right click on the VM and select settings.

nested virtualization windows 2016

 

  • Select Memory option and make sure dynamic memory is disabled.

nested virtualization windows 2016

 

  • Make sure you have assigned multiple virtual CPU for this VM. Right click on the VM and select settings. Go to processor option and add the number of VCPU for this VM.

nested virtualization windows 2016

 

  • Now enable the nested virtualization for this VM using below commands.

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

nested virtualization windows 2016

 

  • Finally, need to enable the MAC Address Spoofing on this VM. Right click on the VM and select settings. Go to network adapter and expand the settings and select advance features. Select the Enable MAC Address spoofing checkbox and click OK to close this window.

nested virtualization windows 2016

 

VERIFICATION

 

  • We have installed windows 2016 in this VM and we are able to install Hyper-V role in that VM. Also, we are able to install new Linux VM successfully.

nested virtualization windows 2016

Watch it on YouTube:

2 thoughts on “Setting Up Nested Virtualization in Windows 2016”

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.