Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Nested Virtualization Troubleshooting

Direct 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.

When to use this

Use this when nested VMs won't start, are very slow or have no network.

First 30 seconds

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.

Operational verification

L0 settings → L1 flags → L2 start/network

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common problems
  • 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.
Platform / version applicability
virtualization
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization · Linux / KVM
Key commandgrep -Eo 'vmx|svm' /proc/cpuinfo | sort -u
Scope / prerequisiteUse this when nested VMs won't start, are very slow or have no network.
Verify · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Virtualization command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Checks Verify boundary
LayerCheck
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 modelhost-passthrough or a model that includes vmx/svm
L1 guestlscpu | 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.

Key points
  • No vmx/svm in guest = extensions not exposed.
  • Network fails without MAC allowances.
  • Slowness is expected for I/O.
Key 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
ReferenceImportant terms & boundaries1 section · depth on demand

Method

ProblemCheck
L1 says virtualization not availableExpose extensions on L0, power-cycle VM, host CPU model
L2 VMs have no networkMAC spoofing/learning, promiscuous on L0 port group, VLAN trunking to L1
L2 very slowEmulated devices, L0 overcommit, no large pages
L1 crashes when starting L2L0 hypervisor version/bugs; try newer kernel/firmware
Hyper-V in L1 won't installDynamic memory on, VM version < 8.0, no Secure Boot template for Gen 2
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization current

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%
Confirmation

Confirm action

Continue?