Pcornel
Virtualization · Nested Virtualization

Nested Hyper-V

Cheat sheet · https://pcornel.dk/topic.php?topic=3807

Back to the Topic

Answer

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.

Remember

  • VM must be off to enable extensions.
  • Dynamic memory must be off.
  • MAC spoofing needed for nested networks.

First checks

  • Set-VMProcessor -VMName <vm> -ExposeVirtualizationExtensions $true — enable (VM off)
  • Set-VMNetworkAdapter -VMName <vm> -MacAddressSpoofing On — L2 networking
  • Get-VMMemory <vm> | fl DynamicMemoryEnabled — must be static

Verify in this order

L0 Hyper-V → L1 Hyper-V VM → L2

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3807

Confirmation

Confirm action

Continue?