Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Nested Virtualization · Virtualization Fundamentals

Direct answer

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.

When to use this

Use it for labs, CI/test environments, virtualized hypervisor appliances and any design with VMs inside VMs.

First 30 seconds

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.

Operational verification

L0 host → L1 VM with exposed VT → L2 VMs

Evidence · next step

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
Common mistakes
Common traps

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.

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
Scope / prerequisiteUse it for labs, CI/test environments, virtualized hypervisor appliances and any design with VMs inside VMs.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
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 Verification path Verify boundary

L0 hardware/hypervisor → virtualization-extension exposure → L1 hypervisor → L2 VM → L2 guest/workload

Evidence references

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.

observation · 1
Key points
  • 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.
Key checks
  • cat /sys/module/kvm_intel/parameters/nested — nested on (Intel)
  • Set-VMProcessor <vm> -ExposeVirtualizationExtensions $true — expose VT to Hyper-V guest
  • grep -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.

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 Virtualization Fundamentals → Nested Virtualization. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://libvirt.org/docs.html · confidence 94%
Terminology layer

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.

Aliases that resolve here
nested virtualizationvm inside vmL0 L1 L2 hypervisor
Embedded reference data

Quick lookup tables

Virtualization Fundamentals → Nested Virtualization reference map

Fast virtualization boundaries for Virtualization Fundamentals → Nested Virtualization.

BoundaryMeaningEvidence limit
L0Outer/physical hypervisor layerOwns real hardware extensions
L1VM running inner hypervisorReceives virtualized extensions
L2VM created by inner hypervisorAdds another virtualization layer
Support boundaryFeature/platform matrixMust be checked per product/version
Confirmation

Confirm action

Continue?