2026 Windows Server 2025 Hyper-V: How to Enable Nested Virtualization?

A nested Hyper-V guest will not start, or the inner VM has no network access.

Fastest path: On AMD, use a Windows Server 2022 or later Hyper-V host and a target VM with configuration version 9.3 or later. Shut down that VM, expose its virtualization extensions with PowerShell, then configure and test its nested network before using the setup for production. Microsoft’s AMD prerequisites and enablement steps are the reference for these requirements.

This guide is for administrators who need to create Hyper-V VMs inside a Windows Server 2025 VM. It also helps test teams build repeatable environments and infrastructure buyers assess whether a dedicated host is appropriate.

Suitability before setup

Nested virtualization means that a Hyper-V virtual machine runs its own hypervisor and creates another VM. In this guide, the physical server is the host; the first-level VM is the L1 guest; and a VM created inside that L1 guest is the L2 guest.

It can be useful for training, software testing, lab environments, and reproducing Windows configurations without dedicating a separate physical server to every layer. Microsoft documents supported nested virtualization scenarios and limitations in its overview of nested virtualization.

The extra layer also changes the operating conditions. The L1 guest needs access to virtualization extensions, while the L2 workload competes for the host’s CPU, memory, storage, and network resources. That makes nested virtualization a poor default for a performance-sensitive production service. Check Microsoft’s supported scenarios and test the actual application before making it part of a service design.

Does AMD EPYC support nested Hyper-V? Yes, when the host and VM meet Microsoft’s AMD-specific prerequisites. The processor name alone is not enough: the host Windows Server version, VM configuration version, and exposed virtualization extensions must also be correct. See Microsoft’s AMD requirements for nested virtualization.

Decision point Suitable when Pause and reassess when
Purpose Lab, training, compatibility testing, or isolated test workloads The workload is latency-sensitive or business-critical
Host and VM The AMD host and target VM meet Microsoft’s documented requirements The VM version is too old or the host configuration is uncertain
Operations The team can monitor resource use and troubleshoot both guest layers The team expects the inner VM to behave exactly like a VM on bare metal

Host and VM preparation

Before changing settings, identify which system is the physical host and which one is the target L1 guest. The command to expose virtualization extensions runs on the physical Hyper-V host, not inside the Windows Server 2025 VM.

For AMD, Microsoft lists a Windows Server 2022-or-later host and VM configuration version 9.3 or later as prerequisites. Requirements can change, so verify the current Microsoft enablement guidance before applying this to an existing fleet.

Check Hyper-V Manager PowerShell
Identify the target VM Select the intended VM and confirm its name and state Get-VM -Name "<VMName>"
Check the VM configuration version Review the VM’s summary information in Hyper-V Manager Get-VM -Name "<VMName>" \| Select-Object Name, Version
Confirm the target is stopped before changing processor settings Use Shut Down or Turn Off and verify the state is Off Stop-VM -Name "<VMName>" when an orderly shutdown is appropriate

Use a clean shutdown where possible. Do not confuse the host’s ability to run Hyper-V with the L1 guest having virtualization extensions exposed. The latter is a VM processor setting. Microsoft’s VM configuration version guidance explains how to inspect and manage VM versions. Do not upgrade an older VM configuration casually: review the consequences for compatibility and rollback first.

Enabling virtualization extensions

The target L1 VM must be off when this processor setting is applied. On the physical Hyper-V host, open PowerShell with appropriate administrative permissions and replace <VMName> with the exact VM name:

Set-VMProcessor -VMName "<VMName>" -ExposeVirtualizationExtensions $true

The parameter exposes virtualization extensions to the guest. It does not install the Hyper-V role inside Windows Server, create an L2 VM, or configure networking.

To inspect the processor setting, run:

Get-VMProcessor -VMName "<VMName>"

Confirm that ExposeVirtualizationExtensions is enabled before starting the L1 guest. Microsoft documents the parameter in its Set-VMProcessor reference.

When should you run Set-VMProcessor? Run it on the physical host while the target VM is shut down. If it is run against the wrong VM, or while the VM is running, the intended setting may not take effect as expected. Confirm the VM name and state before proceeding.

To reverse the setting, shut down the L1 VM and run:

Set-VMProcessor -VMName "<VMName>" -ExposeVirtualizationExtensions $false

Start the L1 guest only after the host-side setting is correct. If the inner Hyper-V role still cannot start, check the host and VM prerequisites before assuming the physical processor is faulty.

Installing Hyper-V inside the guest

After restarting the L1 guest, add the Hyper-V role inside Windows Server. The graphical route is Server Manager > Manage > Add Roles and Features. Select the Hyper-V role and follow the prompts for the guest’s installed Windows Server version.

For PowerShell, use the command and any restart instructions in Microsoft’s version-specific Hyper-V installation guide. Avoid copying a role-install command from another Windows Server release without checking its supported options and restart requirements. An installation prompt or restart plan can differ with the system configuration.

Once the role is installed, open Hyper-V Manager inside the L1 guest and create a small test L2 VM. Keep the test limited until you have confirmed that it boots and can reach the services it needs. A successful role installation proves that the guest sees the required virtualization capability; it does not prove that the nested network or production workload is ready.

Nested networking choices

An L2 VM needs a network path. The practical choice depends on the existing virtual switch design and whether the inner VM must appear directly on the surrounding network. Microsoft describes MAC address spoofing and NAT as nested networking approaches in its nested virtualization instructions.

Network method Consider it when Main trade-off
MAC address spoofing The L2 VM needs to use an external virtual switch and the network path permits its traffic The relevant virtual adapters and upstream network must allow the additional MAC addresses
NAT The L2 VM only needs outbound access through the L1 guest The inner VM is behind the L1 guest’s network translation and may not be directly reachable from outside

For the MAC spoofing route, run the following on the physical host, substituting the L1 VM’s name:

Get-VMNetworkAdapter -VMName "<VMName>" |
    Set-VMNetworkAdapter -MacAddressSpoofing On

This setting is not a replacement for a correctly configured virtual switch. Confirm that the L1 adapter connects to the intended switch and that the upstream network permits the required traffic. For NAT, configure the translation path for the L2 network inside the L1 guest; select the exact design for the guest’s network and routing requirements rather than combining it with MAC spoofing by default.

What if the nested Hyper-V VM has no network? First identify which layer cannot connect. Check the L2 adapter and switch inside the L1 guest, then check the L1 adapter and switch on the physical host. For the chosen method, verify the L2 VM’s IP address, gateway, DNS settings, and outbound reachability. A working L1 connection does not prove that the L2 network is configured.

Verification and fault isolation

Test each layer separately. Start the L1 guest and confirm that Windows Server reports Hyper-V as available. Then create and start a test L2 VM. Inside that VM, verify its assigned address, gateway, DNS resolution, and access to the services required by the workload. Record which check fails; “the nested VM has no network” is too broad to identify the failing layer.

Use a staged diagnosis:

  • The L1 guest does not expose Hyper-V correctly: Recheck the AMD host version, VM configuration version, VM shutdown state during the processor change, and the Get-VMProcessor output.
  • The Hyper-V role is present but the L2 VM will not start: Confirm that the L1 guest received the virtualization extensions and review the relevant Hyper-V events.
  • The L2 VM starts but cannot connect: Inspect its virtual switch, adapter, address, gateway, and DNS configuration. Recheck whether the network design uses MAC spoofing or NAT and whether all required parts of that design are configured.
  • The result is unstable or unexpectedly slow: Measure the workload at each layer and inspect host resource use before changing VM allocations. Do not infer a hardware failure from one symptom.

On Windows, inspect Event Viewer > Applications and Services Logs > Microsoft > Windows > Hyper-V-VMMS and the relevant Hyper-V Worker and System logs. Match the event time to the failed action. Microsoft’s Hyper-V nested virtualization troubleshooting guide provides further checks. The event context matters; one error message alone does not establish a root cause.

Resource planning and host choice

Nested virtualization adds resource-management work. CPU time is scheduled across the host and both guest layers. Memory assigned to the L1 guest must also leave room for its L2 VMs and the host. Storage activity from the inner guests reaches the underlying host storage, and network traffic traverses the configured virtual adapters and switches.

Do not size a host from the number of VMs alone. Track the real workload: processor activity, memory pressure, disk latency, and network use. Microsoft’s Hyper-V scalability planning guidance is a useful reference for planning, but it is not a promise of a particular nested workload’s performance.

Option Best fit Considerations
Nested Hyper-V on an existing VM Short-lived labs, training, and reproducible tests Adds another virtualization layer and requires correct host, guest, and network settings
Hyper-V directly on a dedicated physical server Teams that need control over the host and expect to run Windows virtualization over time Requires planning the Windows Server version, memory, storage, and network around the workload
Shared cloud VM Temporary or light workloads that benefit from an existing cloud environment Available virtualization features and resource behavior depend on the service configuration; verify before committing

If the current environment is a shared VM, compare its actual resource behavior and virtualization permissions before moving. A cloud VM CPU-steal troubleshooting guide can help distinguish resource contention from a guest configuration problem. For a broader cost and control comparison, see cloud repatriation payback considerations.

For Windows business users, RootAMD offers Windows Server options for dedicated physical servers, with RDP access. Windows Server licensing is billed monthly and can be stopped when it is no longer needed. Verify the current Windows Server versions, language choices, hardware options, and charges on the RootAMD server options page before planning a deployment.

A dedicated AMD host is worth evaluating when nested Hyper-V needs predictable access to the physical machine and the team can manage the Windows host itself. A shared VM may still be the better fit for a small, temporary test that does not need nested virtualization or sustained resources. For production, choose only after the application, network path, and resource demand have been tested on the intended host.

RootAMD EPYC 7543P Dedicated Server

From $456.3/month

Configure Hardware from Deployment Records

Review the memory, OS, and network requirements, then view the full quote on the RootAMD configuration page.