Pcornel
Virtualization · Virtualization Fundamentals

Nested Virtualization

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

Back to the Topic

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 guest
  • grep -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

BoundaryMeaningEvidence limit
L0Outer/physical hypervisor layerOwns real hardware extensions
L1VM running inner hypervisorReceives virtualized extensions
L2VM created by inner hypervisorAdds another virtualization layer
Support boundaryFeature/platform matrixMust 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

Confirmation

Confirm action

Continue?