Nested Virtualization
Cheat sheet · https://pcornel.dk/topic.php?topic=3416
Answer
Nested virtualization introduces multiple virtualization levels: L0 is the outer/physical hypervisor, L1 is a VM that runs another hypervisor, and L2 is a VM created by that inner hypervisor. CPU virtualization extensions must be virtualized/exposed inward.
Remember
- Nested virtualization adds another scheduling, memory and networking/storage translation layer.
- The outer hypervisor must expose required CPU virtualization features to the L1 VM.
- A supported L1 hypervisor does not imply every production feature, migration mode or performance-sensitive workload is supported nested.
- Nested network/device behavior can require additional MAC/NAT or virtual-switch design.
First checks
cat /sys/module/kvm_intel/parameters/nested— nested on (Intel)Set-VMProcessor <vm> -ExposeVirtualizationExtensions $true— expose VT to Hyper-V guestgrep -cE 'vmx|svm' /proc/cpuinfo— inside the L1 guest
Verify in this order
L0 host → L1 VM with exposed VT → L2 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.
Virtualization Fundamentals → Nested Virtualization reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| L0 | Outer/physical hypervisor layer | Owns real hardware extensions |
| L1 | VM running inner hypervisor | Receives virtualized extensions |
| L2 | VM created by inner hypervisor | Adds another virtualization layer |
| Support boundary | Feature/platform matrix | Must be checked per product/version |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3416