Use this when running Hyper-V inside a Hyper-V VM.
Nested Hyper-V
Nested Hyper-V runs Hyper-V inside a Hyper-V VM on Intel or AMD hosts. Turn it on with Set-VMProcessor -ExposeVirtualizationExtensions $true while the VM is off, and enable MAC address spoofing for nested VM networking.
1. Nested Hyper-V needs ExposeVirtualizationExtensions, static memory and MAC spoofing.
2. Works on Intel and AMD (recent Windows).
3. Used for labs, WSL2 in VMs.
4. No live migration of the L1 VM in older versions.
5. Check checkpoints restrictions.
L0 Hyper-V → L1 Hyper-V VM → L2
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Get-VMProcessor -VMName lab01 | Select ExposeVirtualizationExtensionsVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
Get-VMProcessor -VMName lab01 | Select ExposeVirtualizationExtensions
Get-VMNetworkAdapter -VMName lab01 | Select MacAddressSpoofing
Step 2 Common mistakes Narrow the fault
- Dynamic Memory enabled on the L1 VM.
- MAC address spoofing off, so L2 VMs have no network.
- Running on AMD hosts with old Windows versions (AMD nested support arrived with Windows 11/Server 2022).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- VM must be off to enable extensions.
- Dynamic memory must be off.
- MAC spoofing needed for nested networks.
Set-VMProcessor -VMName <vm> -ExposeVirtualizationExtensions $true— enable (VM off)Set-VMNetworkAdapter -VMName <vm> -MacAddressSpoofing On— L2 networkingGet-VMMemory <vm> | fl DynamicMemoryEnabled— must be static
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Nested Hyper-V (Hyper-V inside a VM):
# on the L0 Hyper-V host, VM off
Set-VMProcessor -VMName hv-lab -ExposeVirtualizationExtensions $true
Set-VMMemory hv-lab -DynamicMemoryEnabled $false -StartupBytes 16GB
Get-VMNetworkAdapter -VMName hv-lab | Set-VMNetworkAdapter -MacAddressSpoofing On
On VMware L0, enable "Expose hardware assisted virtualization to the guest OS" on the VM. On KVM L0, use cpu: host and ensure kvm_intel nested=1. Azure Dv3/Ev3 and newer sizes support nested Hyper-V.
ReferenceConfiguration & state1 section · depth on demand
Enabling nested Hyper-V
Stop-VM -Name lab-hv
Set-VMProcessor -VMName lab-hv -ExposeVirtualizationExtensions $true
Set-VMNetworkAdapter -VMName lab-hv -MacAddressSpoofing On
Set-VMMemory -VMName lab-hv -DynamicMemoryEnabled $false
Start-VM -Name lab-hv
Documented example, not captured output. MAC spoofing (or NAT inside L1) is needed so nested VMs get network access.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Nested Virtualization → Nested Hyper-V. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%