Use this when nested VMs won't start, are very slow or have no network.
Nested Virtualization Troubleshooting
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.
1. No L2 start: check L0 nested, CPU model, flags in L1.
2. No L2 network: MAC spoofing/promiscuous on L0.
3. Slow: check memory and I/O drivers.
4. Some features unsupported.
5. Read L1 hypervisor logs.
L0 settings → L1 flags → L2 start/network
Context & applicabilityCommon mistakes · platform/version boundaries
- L1 VM uses a CPU model without vmx/svm.
- Hyper-V L1 without MAC address spoofing enabled, so L2 VMs have no network (
Set-VMNetworkAdapter -MacAddressSpoofing On). - Dynamic Memory on the L1 Hyper-V VM (not supported with nesting).
- Nested guests on ESXi needing promiscuous mode or the MAC learning feature on the port group.
Operational reference
Fast context before you go deeper.
grep -Eo 'vmx|svm' /proc/cpuinfo | sort -uPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
| Layer | Check |
|---|---|
| L0 host (KVM) | cat /sys/module/kvm_intel/parameters/nested (or kvm_amd) = Y/1 |
| L0 host (Hyper-V) | Set-VMProcessor -VMName L1 -ExposeVirtualizationExtensions $true (VM off) |
| L0 host (ESXi) | VM option "Expose hardware assisted virtualization to the guest OS" |
| L1 VM CPU model | host-passthrough or a model that includes vmx/svm |
| L1 guest | lscpu | grep -i virtualization, egrep -c '(vmx|svm)' /proc/cpuinfo, or systeminfo |
Nested VMs are slower and often unsupported for production; live migration of an L1 with nesting may be blocked.
- No vmx/svm in guest = extensions not exposed.
- Network fails without MAC allowances.
- Slowness is expected for I/O.
cat /sys/module/kvm_intel/parameters/nested— L0 enabled?grep -cE 'vmx|svm' /proc/cpuinfo— L1 flags?dmesg | grep -i kvm— L1 KVM errors
ReferenceImportant terms & boundaries1 section · depth on demand
Method
| Problem | Check |
|---|---|
| L1 says virtualization not available | Expose extensions on L0, power-cycle VM, host CPU model |
| L2 VMs have no network | MAC spoofing/learning, promiscuous on L0 port group, VLAN trunking to L1 |
| L2 very slow | Emulated devices, L0 overcommit, no large pages |
| L1 crashes when starting L2 | L0 hypervisor version/bugs; try newer kernel/firmware |
| Hyper-V in L1 won't install | Dynamic memory on, VM version < 8.0, no Secure Boot template for Gen 2 |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Nested Virtualization → Nested Virtualization Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%