Nested virtualization in Proxmox VE VMs

Nested virtualization lets a Proxmox VE virtual machine run its own hypervisor or virtualization-dependent workload. This page explains the CPU settings, migration effects, performance expectations and checks to confirm before you enable it.

On this page

When teams need nested virtualization in Proxmox VE VMs

Nested virtualization runs a hypervisor inside a virtual machine. On Proxmox VE, a team enables it by letting a KVM guest see the CPU's hardware virtualization extensions, so the guest's own hypervisor can start child VMs. It is worth enabling when a Windows guest needs virtualization-based security, when a lab or training range must host VMs inside a VM, or when a CI runner has to build or test virtual machines. Leave it off for ordinary application servers, because every extra layer adds configuration and troubleshooting work. Because Proxmox VE integrates KVM and LXC with storage and networking on one platform, the nested hypervisor and its guests stay inside infrastructure your team controls.

The first decision is which CPU model the outer VM presents. Check the CPU options for your Proxmox VE version and confirm in the release notes for that version whether a dedicated nested-virtualization setting exists and how it behaves. Then weigh the CPU type against live migration. A host CPU type ties the guest to the processor features of its node, so a VM with nested virtualization may not move freely to a node with different hardware. Also list the requirements of each nested guest. Windows virtualization-based security, Hyper-V roles and container runtimes each depend on specific virtualization and memory settings that you must verify inside the guest, not assume from the host.

DeployOpen plans and tests this setup in your environment. The work covers choosing the CPU model for your cluster, building a test VM with nested virtualization, confirming that the inner hypervisor starts child guests, and checking migration and backup behavior on your nodes. Performance is something we measure on your hardware, and no outcome is guaranteed in advance. Before work starts, ask any provider for a written scope that names the nested guests, the nodes to be tested and the retest method. The Proxmox Virtual Environment overview describes the KVM and LXC foundation the setup builds on.

Which CPU settings enable nested virtualization in Proxmox VE

This table compares the host CPU type, the nested-virtualization vCPU flag added in Proxmox VE 9.1, and named CPU models for guests that need to run their own hypervisor. Read each row against your cluster's hardware uniformity, since live migration behavior depends on it. Confirm the exact flag name and its behavior in the documentation for your Proxmox VE version before you standardize on it.

OptionWhat the guest seesLive migration effectWhen it fits
Host CPU typeMost host CPU features, including virtualization extensions, passed through as-isUsually blocks migration to nodes with a different CPU generation or vendorHomogeneous clusters where every node has identical processors and migration is a priority
Named CPU model with nested flag (9.1 and later)A defined baseline model with the nested-virtualization capability enabled, if your version exposes itGenerally keeps migration possible across mixed nodes within the model's feature set, but confirm the behavior in your versionMixed-generation clusters where guests run hypervisors or Windows VBS and still need to move between nodes
Named CPU model without nested flagA defined baseline model with no virtualization extensions for the guestBroadest migration compatibility across nodesGuests that do not run their own hypervisor, so nested virtualization is not needed
Custom CPU model (9.2 and later)A model you define that lists the features the guest may useDepends on the feature set you define and on what every node supportsClusters that need a tuned feature baseline, with the model maintained by your team
Nested KVM inside a Linux guestHardware virtualization exposed to the inner hypervisor, which then runs its own guestsNested guests add state that must be handled during migration, so test the exact move before relying on itLab, test and build environments where an inner hypervisor is required
Windows VBS or Hyper-V in a guestVirtualization-based security features that need nested virtualization enabledConfirm with Microsoft and Proxmox documentation whether your chosen CPU setting supports the required features and migrationWindows guests that require VBS, with the setting validated on the exact Windows build
Performance expectationNested guests run with extra layers of CPU and memory overheadMigration of running nested guests may be slower or limited, so test under loadFunctional labs and compatibility tests rather than latency-sensitive production workloads

How nested guests sit on the Proxmox VE host

The diagram starts at the Proxmox VE node, where KVM runs the first-level VM. Inside that VM, a second hypervisor runs the nested guest. The CPU flag is set on the first-level VM's configuration on the host, and the guest's virtualization requests pass up through the first-level VM's virtual CPU to KVM on the node. Each boundary between the host, the first-level VM and the nested guest is a trust boundary to review. This is a simplified view and omits storage, networking and management paths.

Simplified view of nested guest layers, trust boundaries and where the CPU flag applies.

How CPU type choices affect live migration in mixed clusters

The CPU type you give a nested-virtualization VM decides where it can run and move. Mixed-generation nodes, HA placement and node replacements all narrow or widen that set, so the choice should be made with the whole cluster in view.

Confirm whether nodes share a CPU model

Start by listing the CPU model and microcode level on every node. Nodes from different processor generations expose different instruction sets, and a nested hypervisor that relies on a feature present on only some nodes can fail after a move. Check each node with the same commands you use for the guest, and record the results before choosing a CPU type for nested workloads. Confirm the exact live migration behavior for your hardware in your own cluster, since it depends on the CPU type and host features.

Proxmox VE docs

Test nested guests after a cross-node move

A nested VM that moves to a node with different CPU features may keep running, stop, or report missing instructions inside the guest. Treat this as something to verify, not assume. In a lab cluster, migrate a nested hypervisor between each pair of node types and check that the nested guests boot, the nested hypervisor's own VM list is intact, and nested virtualization features still respond. Ask your team to document what they observe before any production move.

Host CPU type limits migration targets

Setting the guest CPU type to host exposes the exact processor of the node it starts on. That gives the best feature access but limits live migration to nodes with a compatible processor. In a cluster with a mix of hardware, the set of valid targets may shrink to one or two nodes. Count how many nodes remain valid for each VM before you commit, because a host type that works in a homogeneous cluster can block maintenance evacuation in a mixed one.

Cluster size and HA placement interact

High availability restarts a failed VM on another node, and that node must support the guest's CPU type. In a small cluster, a host-specific type may leave no compatible node for recovery, even when the cluster has spare capacity. Map which nodes can host each nested VM, then ask whether a failure of the largest compatible node still leaves enough capacity. Verify HA placement with a controlled node failure in a test environment before relying on it.

Re-test CPU compatibility after node replacement

Replacing a node, adding memory or changing a processor can change the compatibility picture without anyone touching the VM configuration. After any hardware change, re-run the migration and recovery tests for each nested VM and compare the results with your documented baseline. Also confirm that BIOS and microcode updates on the new node match the rest of the cluster, since a different microcode level can change which features a node presents.

What performance to expect from nested guests

A nested guest pays for an extra layer of virtualization. The first-level VM already runs under the Proxmox VE host's KVM, and the hypervisor inside it has to trap, emulate and schedule its own guests on top of that. CPU-bound and I/O-heavy workloads will generally run slower inside a nested guest than on a first-level VM, and the gap is most visible in virtualization-heavy work such as building images, running many small guests or handling high packet and disk rates. Plan capacity with that overhead in mind rather than assuming the nested guest matches the hardware figures of its parent VM.

Several settings drive the overhead, and you control most of them. The vCPU count of the first-level VM sets how much parallel work the inner hypervisor can schedule, and over-allocating vCPUs to the outer VM can add scheduling contention on the host. Memory pressure matters because the inner hypervisor's guests compete for memory that the outer VM may also be ballooning or swapping, so review the outer VM's memory settings alongside any ballooning configuration. The storage path is another driver: each layer adds an emulation or caching step, so the disk controller, cache mode and whether the inner guests sit on a file or block device all change latency. Finally, the guest's own hypervisor settings, including its CPU model, paravirtual drivers and networking mode, can help or hurt.

This page gives no benchmark figures, because results depend on your processors, memory, storage and workload. Measure before and after every change, on the same Proxmox VE node and the same storage, with the same guest image and the same benchmark tool and run length. Record the outer VM configuration (qm config), the CPU flags seen inside the guest, and the results side by side. Confirm with your hardware vendor and the Proxmox VE documentation which features your processors expose before you plan around them.

How to set up nested virtualization in Proxmox VE VMs

This sequence takes a Proxmox VE node from a confirmed hardware virtualization baseline to a guest hypervisor that starts a nested guest and survives a restart, with a check at every stage.

  1. Confirm host virtualization support and firmware setting

    The platform engineer checks that the physical CPU supports hardware virtualization and that the feature is enabled in firmware on each node that will host nested guests. On the node shell, confirm that the CPU flags include vmx (Intel) or svm (AMD), and confirm that the KVM device exists, for example by checking for /dev/kvm. Confirm exact tool names and paths against the Proxmox VE documentation for your version. The step is done when the node reports the flag and the KVM device is present on every node that could receive the VM after a migration.

  2. Verify nested virtualization is enabled on the host kernel

    Before changing any VM, the engineer checks that the KVM kernel module for the host vendor reports nested support as enabled. On Intel and AMD hosts this is a module parameter that can be read from the kernel module settings directory. A value of Y (or 1) means the host will accept nested guests. If the value is N, the engineer should review the module configuration and confirm the change with the Proxmox VE documentation for their kernel before rebooting. The step is done when the parameter is enabled on every candidate node.

  3. Choose the CPU type that exposes the needed extensions

    The engineer decides how the guest CPU is presented. The host CPU type exposes the most features but ties the VM to hardware with matching extensions, which affects live migration. A named model or a x86-64 level that includes the virtualization extensions keeps the VM portable across a homogeneous or mixed cluster. Confirm which CPU models and levels your version offers, and whether the needed extension is included, in the Proxmox VE documentation. The decision is recorded with the reason, because it sets the migration limits in the next steps.

  4. Set the nested virtualization flag or CPU model

    The engineer applies the chosen setting to the VM configuration, either through the web interface CPU options or the command line. For a 9.1 or later host, check whether the dedicated nested-virt option is available in the CPU settings for your version and set it if your design needs it. Otherwise set the CPU type that carries the virtualization extension. Shut the VM down before changing the CPU, then record the resulting configuration line. The step is done when the saved configuration shows the intended CPU or flag value.

  5. Start the VM and confirm the guest sees virtualization

    The engineer starts the VM and runs a check inside the guest operating system to confirm the virtualization extension is visible. On Linux guests, look for the vmx or svm flag in the CPU information and confirm that the KVM device exists. On Windows guests, use the virtualization indicators in the system information and task manager that the guest tools report. If the flag is missing, stop the VM, revisit the CPU setting, and do not install the guest hypervisor yet. The step is done when the guest reports virtualization support.

  6. Install the guest hypervisor or enable the Windows feature

    The engineer installs the guest hypervisor, such as a KVM stack on Linux or the Hyper-V role or VBS-related features on Windows, following the vendor documentation for that guest. Installation is done inside the guest, not on the Proxmox VE host. Reboot the guest when the installer asks, then confirm the hypervisor service or module is loaded and reports ready. The step is done when the guest hypervisor starts cleanly after the reboot and the guest still shows the virtualization flag.

  7. Test a nested guest start and a restart

    The engineer creates a small test guest inside the nested hypervisor, starts it, and confirms it reaches a running state and responds on the network. The VM is then restarted from the Proxmox VE interface, and the engineer checks again that the guest hypervisor comes back and the nested guest starts without manual repair. Record the result, the Proxmox VE version, the CPU setting, and any migration limits identified in step three. The step is done when both the start and the restart pass, and the result is written into the runbook for the cluster.

How Windows VBS, hypervisor labs and CI change the configuration

Windows guests that use virtualization-based security need the guest to see virtualization extensions and enough features to start the isolated hypervisor components. In Proxmox VE, that usually means the VM must expose the nested virtualization capability to the guest, and the machine should use OVMF with a virtual TPM where the Windows release requires them. Confirm the exact CPU flags, Secure Boot and TPM requirements for your Windows version with Microsoft's current documentation, since these requirements change between releases.

  • Expose virtualization to the guest: Enable the nested virtualization option or use a CPU type that passes the virtualization flags through, and check the setting on the VM, not only on the host.
  • Keep firmware aligned: Use UEFI firmware and a virtual TPM when the guest's security features depend on them, and plan the TPM state with the snapshot rules that apply to your storage.
  • Verify inside the guest: Run systeminfo or the Windows security information tools to confirm that virtualization-based security is running, not only that it is enabled in policy.
  • Plan for the common failure: A VM created with a generic CPU type often boots with the feature disabled, so the policy looks correct while the feature stays off.
  • Test live migration separately: A guest with exposed virtualization features may need a homogeneous host CPU model to move between nodes, so verify the move before relying on it.

Check the result after every CPU type change, because a guest that reports the feature as off has not been protected by the setting you applied.

Security risks of running hypervisors inside Proxmox VE VMs

Running a hypervisor inside a Proxmox VE guest adds a second layer of virtualization that your security, operations and compliance teams must account for. The cards below cover where that layer changes trust boundaries, who can reach it, and what evidence you will be asked to produce.

Added trust boundary inside the guest

The first-level VM now hosts its own hypervisor, so a compromise of that VM can expose every nested guest it runs. Treat the outer VM as part of the trust zone for the workloads inside it, not as a neutral container. Confirm which team owns the outer VM's patching, its disk encryption and who holds administrative access to its consoles.

Host isolation and node patching

Nested guests share the physical Proxmox VE node with every other VM, so kernel and firmware issues on that node affect all tenants of the host. Patch cadence for the outer and inner hypervisors must be planned together, because a fix applied to one layer may not reach the other. Ask your platform team how a node patch window interacts with running nested labs or Windows VBS guests.

HA and fencing notes

Access to VM configuration

Anyone who can edit the outer VM's configuration can change its CPU exposure, attached devices and disks. Control that access through Proxmox VE roles and realms rather than shared root credentials. Review which accounts can change CPU type and nested-virtualization settings, and confirm which second factors (TOTP, WebAuthn, YubiKey OTP or recovery keys) are enforced for those accounts.

User management wiki

Backups and snapshots of nested guests

A backup of the outer VM captures the nested guests' disks, but restoring it returns the whole inner hypervisor state at one point in time. Snapshots taken while nested guests run can produce inconsistent state if the inner hypervisor is not quiesced. Test restores of the outer VM and then verify that each nested guest boots, joins its cluster or domain and passes its own health checks.

Logging and monitoring of nested workloads

Events from nested guests are invisible to the Proxmox VE host logs, so activity inside the inner hypervisor needs its own log path. Decide where authentication, console access and configuration changes are forwarded, and who reviews them. Confirm that time sources are consistent across both layers, since mismatched timestamps weaken incident timelines.

Compliance evidence for nested environments

Assessors will ask which systems hold regulated data, how access is approved and how changes are recorded, and nested guests add components to that inventory. Document the outer VM, the inner hypervisor and each nested guest as separate assets with their own owners. Ask your auditor which evidence they accept from the Proxmox VE management plane and which they expect from the nested layer. DeployOpen prepares evidence for assessments but does not issue audit reports or attestations.

Limits to confirm before enabling nested virtualization

Before you enable nested virtualization in a Proxmox VE VM, confirm what every node in the cluster can offer, not only the node you are testing on. Check that each host exposes hardware virtualization extensions to the hypervisor and that the setting is enabled in its firmware. Then compare the CPU model and feature set across nodes. A guest configured with the nested-virt vCPU flag or a specific CPU type can fail to start, or lose the nested feature, when HA or a manual migration places it on a node with a different processor. If your cluster mixes CPU generations, decide before go-live whether nested guests will be pinned to a subset of nodes, and record that constraint with the VM configuration.

Next, confirm that your Proxmox VE version supports the flag you plan to use. The nested-virt vCPU flag is tied to Proxmox VE 9.1, which was released on November 19, 2025, so clusters on earlier releases need a different approach or an upgrade first. Then check the guest side. Confirm that the guest operating system, and any hypervisor it runs, documents nested operation for that OS version and CPU type. Vendor statements on running a hypervisor or Windows virtualization-based security inside a KVM guest vary by product and version, so confirm support in writing with the guest vendor and with Proxmox, and do not assume that a feature working in a lab is a supported configuration.

Finally, check the licensing for every guest product that will run in the nested environment. A nested hypervisor or guest operating system may charge per host, per vCPU or per core, and the count may change when the workload runs inside a VM. Proxmox VE subscriptions are priced per CPU socket on the physical host, which does not cover guest software. Ask each vendor how it counts nested instances. DeployOpen confirms these points in the written scope before any build starts, so do not rely on this page alone to decide whether nested virtualization is supported for your environment.

What buyers ask about nested virtualization in Proxmox VE

Is nested virtualization free to enable in Proxmox VE?

Yes, the feature itself carries no license fee, because Proxmox VE is licensed under the GNU Affero General Public License, version 3, and the software can be used without a subscription. What you pay for is the work around it: deciding which guests need nested virtualization, testing the CPU setting on your hardware, and checking how the setting behaves in your cluster. Subscriptions are priced per CPU socket per year and differ in support entitlements and access to the enterprise repository, not in software features. Ask any partner to separate one-time engineering effort from recurring support and repository access in the quote.

What does the work need from our own team?

Your team needs someone who can name the guests that require nested virtualization, such as a lab hypervisor, Windows with virtualization-based security, or a container build host, and explain what each one runs. You also need access to the Proxmox VE cluster, the ability to schedule test reboots of VMs, and a person who owns the hardware inventory so the CPU models in each node are known. Security and compliance staff should be available to review the access model, since nested guests can widen what a VM is allowed to do. Confirm these responsibilities in the written scope before work starts.

How long does a nested virtualization validation take?

The duration depends on the number of guest types, the number of nodes in the cluster and whether the hardware is identical across them. A single lab VM on a homogeneous cluster is a short exercise, while a mixed-generation cluster with Windows guests, live migration requirements and backup tests takes considerably longer. Ask for the planned test matrix and the milestones in the proposal, and do not accept a timeline that does not list the guests, nodes and migration paths it covers. No fixed duration is stated here because it depends on your environment.

Can our team validate nested virtualization on its own?

Yes, a team with Linux and Proxmox VE experience can enable the setting, boot a nested guest and check the result. The harder part is proving the setup holds across live migration, backups, node failures and upgrades, which usually needs a documented test plan and a repeatable checklist. If nobody on the team has tested CPU type changes in a cluster before, an outside review can shorten the learning curve. Proxmox VE documentation and the community forum are useful references, and the subscription support tiers listed on the vendor pricing page describe what vendor help you can open tickets for.

What drives the effort up or down?

Effort rises with the number of CPU models in the cluster, because a nested guest on one host type may not migrate cleanly to another. It also rises with the number of Windows guests using virtualization-based security, the presence of GPUs or passed-through devices, and the strictness of your compliance requirements for evidence. Effort falls when the cluster is homogeneous, the nested workloads are few and well defined, and your team already keeps a tested backup and change process. Ask the partner which of these factors they have assessed and which they have only assumed.

What should a quote for this work include?

A useful quote lists the in-scope guests, the nodes and CPU models covered, the test cases for boot, performance, live migration and backup, and the documentation delivered at the end. It should state who performs each task, what the client must provide, and what is one-time versus recurring, such as support or retesting after upgrades. Check whether the quote names the Proxmox VE version it targets and what happens if you change hardware later. Because DeployOpen works from a written scope, ask for a quote that ties each deliverable to a named guest or node.

How does nested virtualization change after a Proxmox VE upgrade?

An upgrade can change how the CPU type, guest machine settings and nested virtualization features behave, so the setup should be retested rather than assumed to work. Proxmox VE 9.1 was released on November 19, 2025, and 9.2 on May 21, 2026, so any cluster on a version that reaches the end of its support window will need planning. Confirm with the vendor which CPU and nested virtualization options your target version offers, then rerun the guest boot and migration tests on a non-production node. Plan retesting as a recurring step in your upgrade process.

How DeployOpen scopes and tests nested virtualization setups

DeployOpen approaches nested virtualization in Proxmox VE VMs as a scoped engagement inside your own infrastructure. We start from the guest workloads you need to run, then decide the CPU type, the nested-virt setting and the cluster migration rules together, and we test the result before handover.

How we scope

  • We list each nested guest, such as a Hyper-V host, Windows VBS feature or lab hypervisor, and the hosts it must run on.
  • We record which cluster nodes must accept live migration, so the CPU model choice is made against the real node mix.
  • We agree the written scope, deliverables and timeline with you before any change is made to your Proxmox VE hosts or VMs.

How we build

  • We configure the test VMs with the CPU type and nested-virtualization option agreed in scope, then verify the flags seen by the guest.
  • We check guest hypervisor startup, nested VM networking and storage on the target nodes, recording any gaps against the requirements.
  • We run representative workloads and compare performance against the expectations set during scoping, documenting the measurements.

How we hand over

  • You receive the VM configuration, the CPU and migration rules, and the reasons behind each choice in a written document.
  • We include a verification checklist your team can rerun after Proxmox VE upgrades, guest updates or hardware changes.
  • We walk your platform and security teams through the setup so they can review it against their own policies.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, covering nested setups as your cluster changes.
  • Retesting after Proxmox VE major upgrades is scoped separately, with the upgrade path confirmed against the Proxmox VE release notes.
  • Where nested workloads touch security controls, we can also test the setup as part of a wider security review.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.