CPU Virtualization Extensions
Cheat sheet · https://pcornel.dk/topic.php?topic=3810
Answer
Nested virtualization needs the CPU virtualization extensions (Intel VT-x with EPT, AMD-V with NPT) exposed to the guest, for example kvm_intel nested=1, Set-VMProcessor -ExposeVirtualizationExtensions or vhv.enable on ESXi.
Remember
- EPT/NPT needed for decent performance.
- Setting change needs VM power-off.
- Host kernel module option may be required.
First checks
grep -o -E 'vmx|svm' /proc/cpuinfo | sort -u— flags in guestGet-VMProcessor <vm>— ExposeVirtualizationExtensionsvirsh dumpxml <vm> | grep -A3 '<cpu'— host-passthrough/feature vmx
Verify in this order
L0 CPU → exposed flags → L1 hypervisor
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=3810