Pcornel
Virtualization · Hyper-V

Nested Virtualization

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

Back to the Topic

Answer

The physical host is the L0 layer, the outer VM/L1 hypervisor consumes virtualized CPU features, and nested guests run at L2. CPU feature exposure, networking and performance constraints differ from ordinary VMs.

Remember

  • Nested virtualization adds L0/L1/L2 boundaries.
  • CPU virtualization exposure ≠ all hardware features passthrough.
  • Nested guest performance/latency differs from direct hosting.
  • Nested networking may require explicit MAC/NAT design.

First checks

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

Verify in this order

host → VM with VT exposed → nested VMs

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.

Hyper-V → Nested Virtualization reference map

BoundaryMeaningEvidence limit
L0Physical host/hypervisorOwns real CPU
L1Outer VM/hypervisorReceives exposed virtualization features
L2Nested VMAdditional virtualization boundary
NetworkNested connectivity designMay need MAC/NAT handling

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

Confirmation

Confirm action

Continue?