Nested Virtualization
Cheat sheet · https://pcornel.dk/topic.php?topic=3712
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— checkSet-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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| L0 | Physical host/hypervisor | Owns real CPU |
| L1 | Outer VM/hypervisor | Receives exposed virtualization features |
| L2 | Nested VM | Additional virtualization boundary |
| Network | Nested connectivity design | May 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