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