How to enable nested virtualization in Hyper-V virtual machine on Windows 11

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

This option is very useful when setting up a lab on Hyper-V to test components like Windows Sandbox in the virtual machine for example.

Prerequisites

  • The Hyper-V host must be under Windows Server 2016/2019 or Windows 10 1607 or +.
  • The virtual machine must be under Windows Server 2016/2019 or Windows 10 1607 or +.

    Intel processor with VT-x and EPT technology

  • Hyper-V host with Windows Server 2016/Windows 10 or later
  • Virtual machine configuration version 8.0 or later

    AMD EPYC/Ryzen processor or later

  • Hyper-V host with Windows Server 2022/Windows 11 or later
  • Setting up a 10.0 or later virtual machine

Nested virtualization activation

  • Open PowerShell console with Admin Right
  • Execute this command line
    • Set-VMProcessor -VMName VMNAME -ExposeVirtualizationExtensions $true
   For obtained the VM list available on your computer, execute this command line : Get-VM
  • Start your Virtual Machine 
  • Go to Settings \ Apps \ Optional Features \ More Windows Features 
  • And check if Hyper-V Platform is available

  
  • All you have to do is enable the Hyper-V Platform feature which is now available

Additional information

For the networking, only the options below are compatible with the nested virtualization :
  • MAC address spoofing
  • NAT

Commentaires

Posts les plus consultés de ce blog

Windows 11 security check with Powershell

SCCM - Erreur 0x87D00664 lors de l'installation de la mise à jour de Juin 2020

Edge Chromium - Les ADMX sont disponibles