Use it for labs, CI/test environments, virtualized hypervisor appliances and any design with VMs inside VMs.
Nested Virtualization · Virtualization Fundamentals
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.
1. Nested virtualization runs a hypervisor inside a VM.
2. Enable on the host and expose VT to the VM.
3. Performance is lower; use for labs and CI.
4. Some features (live migration, dynamic memory) may be restricted.
5. Check flags inside the L1 guest.
L0 host → L1 VM with exposed VT → L2 VMs
Verify the exact platform support matrix and test the performance/HA features required by the intended workload.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show unsupported features, production SLA suitability or capacity headroom.
Next check: Verify the exact platform support matrix and test the performance/HA features required by the intended workload.
Operational reference
Fast context before you go deeper.
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 Verification path Verify boundary
L0 hardware/hypervisor → virtualization-extension exposure → L1 hypervisor → L2 VM → L2 guest/workload
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
cat /sys/module/kvm_intel/parameters/nested— nested on (Intel)Set-VMProcessor <vm> -ExposeVirtualizationExtensions $true— expose VT to Hyper-V guestgrep -cE 'vmx|svm' /proc/cpuinfo— inside the L1 guest
ReferenceWhy it matters1 section · depth on demand
Internals and state
Local intent: Nested virtualization runs a hypervisor inside a virtual machine by exposing virtualization capabilities from an outer hypervisor to an inner guest/hypervisor.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
An inner hypervisor starting shows nested CPU virtualization works far enough to initialize, but it does not show L2 I/O, networking, migration or workload support/performance.
Support differs by platform/version. Microsoft documents nested Hyper-V as exposing hardware virtualization extensions to a VM; always verify the concrete platform support matrix before production use.
In depth
Nested virtualization runs a hypervisor inside a VM (e.g. ESXi or Hyper-V in a lab VM, WSL2/Docker inside a Windows VM, Kubernetes with KubeVirt in cloud VMs). The outer hypervisor must expose virtualization extensions to the guest.
cat /sys/module/kvm_intel/parameters/nested # Y = enabled
qm set 100 --cpu host # Proxmox: pass host CPU flags
Set-VMProcessor -VMName lab1 -ExposeVirtualizationExtensions $true # Hyper-V
Expect a noticeable performance penalty, especially for I/O and memory-heavy work; nested setups suit labs and CI, not production.
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 Virtualization Fundamentals → Nested Virtualization. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Virtualization Fundamentals → Nested Virtualization reference map
Fast virtualization boundaries for Virtualization Fundamentals → Nested Virtualization.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| L0 | Outer/physical hypervisor layer | Owns real hardware extensions |
| L1 | VM running inner hypervisor | Receives virtualized extensions |
| L2 | VM created by inner hypervisor | Adds another virtualization layer |
| Support boundary | Feature/platform matrix | Must be checked per product/version |