Hyper-V : enable nested virtualization

Windows 10  Windows Server 2016  Windows Server 2019

Presentation

Nested virtualization is a feature available on Hyper-V from Windows Server 2016 and Windows 10, which enables virtualization options in a virtual machine.

To put it simply, nested virtualization allows virtualization in a virtual machine.

There are also some prerequisites :

  • The Hyper-V host must be on Windows Server 2016/2019 or Windows 10 1607 or more.
  • The virtual machine must be under Windows Server 2016/2016 or Windows 10 1607 or more.
  • Intel processor with VT-x and EPT technology.

In order to make the tutorial more explicit, the captures were made on a Windows Server 2016 host and a virtual machine on Windows 10.

Enable nested virtualization on Hyper-V

On the screenshot below, we can see that the functions related to virtualization are not available (Windows Sandbox, Hyper-V Platform and Windows Defender Application Guard).

Now we will see how to activate the nested virtualization, firstly, you have to turn off the virtual machine where it must be activated.

On the Hyper-V host, open a PowerShell command prompt in administration enter the command below to activate nested virtualization:

Activation de la virtualisation imbriquée en powershell

That’s all, it only remains to start the virtual machine.

We can see on the screenshot below, that it is now possible to activate the functionalities related to virtualization in a virtual machine.

Conclusion

To conclude this tutorial in which case to use nested virtualization:

  • For testing / lab purposes
  • Activate the sandbox or Defender Application Guard in a VDI environment.

It is not recommended to use nested virtualization with Hyper-V in a production environment.

Lien : https://docs.microsoft.com/fr-fr/virtualization/hyper-v-on-windows/user-guide/nested-virtualization



Related Posts


Hyper-V: Live-Migration moving a virtual machine between two hosts

In this tutorial, we will see how to move a virtual machine from one Hyper-V host to another host. This feature is called Dynamic Migration, it should not be confused with the feature that has the sam

Altaro backup: installation and use with Hyper-V

In this tutorial, I will explain how to set up Altaro Backup with Hyper-V. Presentation Altaro Backup is a backup solution for virtual environments Hyper-V and VMware running Windows. It has the advan

Installing and Configuring Storage Spaces Direct (S2D) on 2 VMs

In this article, we will see how to set up Storage Spaces Direct under two VMs. S2D is the solution hyperconverged of Microcrost arrival with Windows Server 2016. I also took advantage of this lab to

Scroll to Top