EN · $ USD
Dedicated Servers and Virtualization

What Is Nested Virtualization and What Is It Used For?

7 min read Updated: Sunucu Atlas technical team

In short

Nested virtualization lets you run a second hypervisor inside a virtual machine. The physical CPU's Intel VT-x or AMD-V hardware support is passed through to the guest VM, so a VDS can run VMware ESXi, Proxmox VE, Hyper-V, KVM or an Android emulator. It is most often used for virtualization home labs, certification exam prep, training environments and CI testing.

In this guide
  1. Key concepts: L0, L1 and L2
  2. How does VT-x and AMD-V passthrough work?
  3. What is nested virtualization used for?
  4. Performance: what should you keep in mind?
  5. Nested virtualization vs. containers
  6. Which hardware is a better fit?
  7. Keep your lab secure
  8. Next step: choose your nested environment

Nested virtualization lets you run a hypervisor inside a virtual machine. Normally, if you try to install VMware ESXi, Proxmox VE or Hyper-V on a VDS, the installer stops with a "hardware virtualization support not found" error. On a server with nested virtualization enabled, the physical CPU's Intel VT-x or AMD-V capabilities are passed through to the virtual machine, and that VM can create virtual machines of its own. In short: without renting a physical server, you can run several hypervisors on a single VDS, with dozens of test machines inside them.

Key concepts: L0, L1 and L2

The easiest way to understand nested virtualization is to name the layers:

  • L0 (host hypervisor): The hypervisor running directly on the physical server, such as KVM. It has access to the real CPU, RAM and disks.
  • L1 (guest hypervisor): The virtual machine created by L0, in other words your VDS. With nested enabled, you can install ESXi, Proxmox VE, Hyper-V or KVM on it.
  • L2 (nested guest): The virtual machines you create inside the L1 hypervisor; these can be Windows Server, Ubuntu, the vCenter Server Appliance or even another ESXi host.

A standard VDS only has L0 and L1. Nested virtualization makes the L2 layer possible.

How does VT-x and AMD-V passthrough work?

Modern hypervisors don't run virtual machines through software emulation; they use the processor's hardware virtualization instructions. On Intel this feature is called VT-x (CPU flag vmx), and on AMD it is AMD-V (CPU flag svm). The second layer that speeds up memory translation is called EPT on Intel and NPT/RVI on AMD.

In a standard virtual machine, these flags are hidden from the guest. With nested enabled, the L0 hypervisor exposes the vmx or svm flag to L1. When L1 executes a virtualization instruction, the processor hands it off to L0, which runs it on L1's behalf. On KVM this behavior is controlled by the nested parameter of the kvm_intel or kvm_amd module, and the VM's CPU model is usually set to host-passthrough.

On Linux, you can check whether your server has nested support with these commands:

# If the output is greater than 0, the vmx/svm flag is passed through to the guest
grep -Ec '(vmx|svm)' /proc/cpuinfo

# To confirm that KVM is actually usable
sudo apt install -y cpu-checker
kvm-ok

On Windows, look for the line "Virtualization Enabled In Firmware: Yes" in the "Hyper-V Requirements" section of the systeminfo output. When installing ESXi, the installer shows a hardware virtualization warning on the very first screen if nested is disabled.

What is nested virtualization used for?

1. VMware ESXi and vCenter home lab

This is the most common use case. Sysadmins and engineers preparing for certification exams want to build a cluster with multiple ESXi hosts, a vCenter Server Appliance and shared storage. Doing this on physical hardware takes several servers, a switch and a storage device. On a nested VDS, you run the ESXi hosts as virtual machines and try out vMotion, HA, DRS and distributed switch scenarios on the same box. For a step-by-step setup, see our guide to building a VMware ESXi and vCenter lab.

2. Testing Proxmox VE, Hyper-V and KVM

A nested environment is ideal for testing Proxmox VE storage, bridged networking, backup and cluster settings before going to production, trying the Hyper-V role on Windows Server, or writing KVM/libvirt automation. A bad network setting only affects your test server. To continue, our article on installing Proxmox VE and creating your first virtual machine is a good starting point.

3. Android emulators and mobile testing

Tools like Android Emulator, Genymotion or BlueStacks need hardware acceleration (KVM on Linux, Hyper-V/WHPX on Windows) to run fast. On a VDS without nested support, these emulators either won't start at all or are too slow to use. On a nested-enabled server, you can run the Android UI tests in your CI pipeline on the server.

4. Training and classroom environments

Training providers can give each participant a separate hypervisor or a separate virtual network. When the class ends, you revert to a snapshot and the next group starts with a clean environment. When many trainees work at the same time, a high vCPU count is the deciding factor.

5. Security research and isolated testing

Malware analysis, penetration testing labs or Windows Active Directory attack/defense scenarios are much safer to build inside a separate hypervisor, isolated from your main system. Because WSL2, Windows Sandbox and Docker Desktop on Windows also use virtualization under the hood, running them on a Windows VDS depends on nested support.

Performance: what should you keep in mind?

Nested virtualization isn't the right tool for every scenario. Know these facts before you decide:

  • CPU overhead: For compute-heavy work, the extra layer has limited impact; but workloads that cause frequent VM exits, especially heavy disk and network I/O, see added latency.
  • Disk: An L2 machine's disk is a file on L1's disk. That's why disk capacity and SSD speed directly shape your lab experience. Thin provisioning helps you use space efficiently.
  • RAM: Memory is allocated at both layers. Hypervisors like ESXi have their own minimum memory requirements, and the vCenter Server Appliance alone needs a significant amount of memory. Plan accordingly.
  • Single-core speed: Management UI responsiveness, Windows installs and service startup all benefit greatly from high single-core performance.

Rule of thumb: Nested environments are for labs, training, testing and demos. Rather than running a permanent production workload that serves customer traffic in the L2 layer, it is always more efficient to install it directly on a VDS or a physical server.

Nested virtualization vs. containers

A common point of confusion: you don't need nested virtualization to run Docker or LXC. Containers don't boot a separate kernel; they share the host's Linux kernel. So Docker runs fine on an ordinary Linux VDS. You need nested support when you want to run a full virtual machine (an operating system with its own kernel) or a hypervisor. In short, an ordinary VDS is enough for Docker, Kubernetes or LXC; nested support is required for ESXi, KVM virtual machines in Proxmox VE, Hyper-V, Android emulators or WSL2 on Windows.

Which hardware is a better fit?

Sunucu Atlas offers two separate platforms for nested virtualization, and both list nested virtualization for ESXi / vCenter and "vCenter and ESXi installation" in the catalog:

CriteriaIntel Xeon E5-2697V2 Nested VDSAMD Ryzen 9 5950X Nested VDS
vCPU12, 24 or 32 vCPU12 vCPU
RAM24, 32 or 64 GB24, 32 or 64 GB
SSD300, 400 or 500 GB300, 500 or 1000 GB
IP3 IPs3 IPs
StrengthMany concurrent virtual machines, lower entry costHigh single-core performance, large disk

If you plan to run many lightweight L2 machines, give each trainee a separate environment or build a large ESXi cluster, the Xeon E5-2697V2 Nested VDS plans, with their higher vCPU counts, make sense. If UI responsiveness, Windows-based labs and storing lots of ISOs and templates matter more, the Ryzen 9 5950X Nested VDS plans, with the single-core power of the Zen 3 architecture, deliver a better experience. Our nested VDS buying guide, which compares the two platforms in detail, makes the decision easier.

Keep your lab secure

  1. Don't expose management interfaces to the internet: Restrict access to the ESXi Host Client, vCenter (443) and Proxmox (8006) with IP allowlisting, a VPN or an SSH tunnel.
  2. Use an internal network: Keep L2 machines on a private subnet with NAT for outbound traffic; bind only the services you need to public IPs.
  3. Don't mistake snapshots for backups: Snapshots are for quick rollback. Back up important templates and configurations to a separate location.
  4. Change default passwords: Right after installation, replace the root and administrator passwords with strong ones.

Next step: choose your nested environment

Your goal might be preparing for a VMware certification, trying Proxmox before production, or building a shared test lab for your team. Either way, you need a server with VT-x/AMD-V passthrough enabled and enough RAM and disk. For a mid-sized vSphere lab, E5-2697V2 Nested - 2, with 24 vCPUs and 32 GB of RAM, is a balanced starting point. If you want a large template library and a smoother management UI, check out the R9 5950x Nested - 3 plan with 64 GB of RAM and 1000 GB of SSD. If you get stuck during setup, you can open a support ticket with the Sunucu Atlas support team.

Frequently asked questions

Does nested virtualization work on every VDS?

No. The host hypervisor has to pass the VT-x or AMD-V flags through to the virtual machine. This is usually disabled on standard VDS plans, so if you plan to install ESXi, Proxmox or Hyper-V, choose a plan that explicitly lists nested support.

Do I need nested virtualization to run Docker?

Not on a Linux server, because containers share the host kernel. However, if you plan to use Docker Desktop, WSL2 or Windows Sandbox on Windows, you need nested support because they rely on virtualization under the hood.

How much does nested virtualization hurt performance?

The impact is limited for compute-heavy work; for workloads with heavy disk and network traffic, the extra layer adds latency. That's why nested environments are ideal for labs, training and testing, not for permanent production workloads.

How do I know if nested support is enabled?

On Linux, the command grep -Ec '(vmx|svm)' /proc/cpuinfo should return a value greater than 0, and the kvm-ok command should report that KVM acceleration can be used. On Windows, check the Hyper-V Requirements section of the systeminfo output.

Can I run an Android emulator on a nested VDS?

Yes. Android Emulator and similar tools use KVM or Hyper-V for hardware acceleration; since that acceleration is available on a nested-enabled server, the emulator runs at a usable speed.

For this guide

Recommended plans

Nested VDS plans with VT-x/AMD-V passthrough enabled and ESXi and vCenter installation listed in the catalog are a ready-made starting point for building a hypervisor lab without buying physical hardware.

E5-2697V2 Nested - 1

XEONE5-2697V2
Recommended

24 GB RAM

$19.64/mo

+VAT

  • Processor12 vCPU
  • ModelIntel Xeon E5-2697V2
  • Disk300 GB SSD
  • LocationIstanbul
  • Port: 100 Mbit · 1G Port
  • Traffic: 100 Mbit · 1G Port
  • Virtualization: Nested (ESXi / vCenter)
  • Multi-layer DDoS protection

E5-2697V2 Nested - 2

XEONE5-2697V2

32 GB RAM

$29.47/mo

+VAT

  • Processor24 vCPU
  • ModelIntel Xeon E5-2697V2
  • Disk400 GB SSD
  • LocationIstanbul
  • Port: 100 Mbit · 1G Port
  • Traffic: 100 Mbit · 1G Port
  • Virtualization: Nested (ESXi / vCenter)
  • Multi-layer DDoS protection

E5-2697V2 Nested - 3

XEONE5-2697V2

64 GB RAM

$39.30/mo

+VAT

  • Processor32 vCPU
  • ModelIntel Xeon E5-2697V2
  • Disk500 GB SSD
  • LocationIstanbul
  • Port: 100 Mbit · 1G Port
  • Traffic: 100 Mbit · 1G Port
  • Virtualization: Nested (ESXi / vCenter)
  • Multi-layer DDoS protection

E5-2697V2 Nested VDS — tüm paketler Ryzen 5950X Nested VDS — tüm paketler

Need help with setup?

Send questions about your service in a support ticket, and our technical team will walk you through it step by step.