Nested Virtualization Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=3812
Answer
Troubleshoot nested virtualization by checking that the L1 guest sees vmx/svm (lscpu, systeminfo), the host nested option is on, the CPU model passes the flags through, and virtual switches allow the nested VMs' MAC addresses.
Remember
- No vmx/svm in guest = extensions not exposed.
- Network fails without MAC allowances.
- Slowness is expected for I/O.
First checks
cat /sys/module/kvm_intel/parameters/nested— L0 enabled?grep -cE 'vmx|svm' /proc/cpuinfo— L1 flags?dmesg | grep -i kvm— L1 KVM errors
Commands
grep -Eo 'vmx|svm' /proc/cpuinfo | sort -u- Operational command for Verify host CPU virtualization extensions. Focus fields: presence of vmx or svm CPU flags.
Verify in this order
L0 settings → L1 flags → L2 start/network
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=3812