Skip to content

Commit 951fb1a

Browse files
authored
Update hyper-v-nested-virtualization.md
1 parent 489ff27 commit 951fb1a

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

support/windows-server/high-availability/hyper-v-nested-virtualization.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Hyper-V Nested Virtualization Troubleshooting Guide
33
description: Provides a structured approach for troubleshooting nested virtualization issues in physical and cloud-based environments.
4-
ms.date: 09/04/2025
4+
ms.date: 09/09/2025
55
manager: dcscontentpm
66
audience: itpro
77
ms.topic: troubleshooting
@@ -18,17 +18,17 @@ Nested virtualization allows you to run Hyper-V (or other hypervisors) within a
1818

1919
Before diving into specific issues, follow this checklist to ensure the environment is correctly set up for nested virtualization:
2020

21-
1. Verify host compatibility
21+
1. Verify host compatibility:
2222

2323
- Host is Windows Server 2016 or later version, Windows 10 or Windows 11 Pro or Enterprise.
24-
- Host CPU supports VT-x (Intel) or AMD-V (AMD); Hardware virtualization enabled in BIOS/UEFI.
24+
- Host CPU supports VT-x (Intel) or AMD-V (AMD); hardware virtualization enabled in BIOS/UEFI.
2525

26-
1. Confirm guest VM settings
26+
1. Confirm guest VM settings:
2727

2828
- Guest VM is Generation 2.
2929
- Guest VM running compatible OS (Windows Server 2016, or later version, Windows 10, Windows 11, or later version, select Linux with Hyper-V support).
3030

31-
1. Enable nested virtualization
31+
1. Enable nested virtualization:
3232

3333
- For Hyper-V, set via PowerShell:
3434

@@ -38,22 +38,22 @@ Before diving into specific issues, follow this checklist to ensure the environm
3838
3939
- VM must be powered off.
4040
41-
1. CPU, memory, and resource allocation
41+
1. CPU, memory, and resource allocation:
4242
4343
- Assign at least two virtual CPUs to nested VM.
4444
- Sufficient memory assigned (recommended ≥ 4GB for the VM hosting nested VMs).
4545
46-
1. Network configuration
46+
1. Network configuration:
4747
4848
- Use an "External" virtual switch for the guest VM to enable outbound access.
4949
- Ensure NAT/port forwarding is correctly set up if needed.
5050
51-
1. Update host and guest
51+
1. Update host and guest:
5252
5353
- Fully patch and update Windows OS for host and guest.
54-
- Use latest Hyper-V Integration Services and drivers.
54+
- Use the latest Hyper-V Integration Services and drivers.
5555
56-
1. Check security and policy
56+
1. Check security and policy:
5757
5858
- Credential Guard and Device Guard might block nested virtualization.
5959
- No conflicting Group Policies or anti-virus blocking Hyper-V processes.
@@ -63,7 +63,7 @@ Here are common issues and their respective solutions:
6363
## Nested VM can't start Hyper-V role or install other hypervisors
6464
6565
- Errors when enabling or installing Hyper-V in a VM.
66-
- "Hyper-V cannot be installed: The processor does not have required virtualization capabilities" or similar.
66+
- "Hyper-V cannot be installed: The processor does not have required virtualization capabilities" or similar error messages.
6767
- Role installation fails without detailed errors.
6868
6969
### Root causes
@@ -178,7 +178,7 @@ Here are common issues and their respective solutions:
178178
netsh nat delete <incorrect mapping>
179179
```
180180
181-
2. Restart host, ensure NAT/WinNAT service isn't locked.
181+
2. Restart host, and ensure NAT/WinNAT service isn't locked.
182182
3. Reconfigure NAT/port proxy for required connectivity:
183183
184184
```console
@@ -190,7 +190,7 @@ Here are common issues and their respective solutions:
190190
## Snapshot/Checkpoint and differencing disk issues
191191
192192
- Snapshots disappear or can't be merged.
193-
- Merge operation fails: "The system cannot find the file specified (0x80070002)" or "The chain of virtual hard disks is broken (0xC03A000D)."
193+
- Merge operation fails with "The system cannot find the file specified (0x80070002)" or "The chain of virtual hard disks is broken (0xC03A000D)."
194194
195195
### Root causes
196196
@@ -200,15 +200,15 @@ Here are common issues and their respective solutions:
200200
201201
### Resolution
202202
203-
1. Ensure all VHD/AVHDX files are in original location.
203+
1. Ensure all VHD/AVHDX files are in their original locations.
204204
2. Use PowerShell to check chain and merge:
205205
206206
```powershell
207207
Get-VHD -Path <AVHDX path> | fl \*
208208
Merge-VHD -Path <child AVHDX> -DestinationPath <parent VHD>
209209
```
210210
211-
3. If data recovery needed, restore parent disk from backup, then retry merge.
211+
3. If data recovery is needed, restore the parent disk from backup, and then retry the merge.
212212
213213
## VM resource changes not recognized (for example, RAM increase)
214214
@@ -224,7 +224,7 @@ Here are common issues and their respective solutions:
224224
225225
1. Power off VM before resizing resources.
226226
2. Use **Hyper-V Manager** > **Edit VM settings** > **Increase RAM**.
227-
3. Start VM; verify resource allocation in guest OS.
227+
3. Start VM and verify resource allocation in guest OS.
228228
4. Review documentation for hot-add support in nested scenarios.
229229
230230
## Data collection
@@ -268,13 +268,13 @@ Gather the following data for troubleshooting and escalation:
268268
269269
| Issue | Symptoms/Errors | Root cause | Resolution steps |
270270
| --- | --- | --- | --- |
271-
| Nested VM can't start Hyper-V | Role install fails; CPU extension error | Extensions not exposed; Gen1 VM | Power off VM; `Set-VMProcessor -ExposeVirtualizationExtensions $true`; Use Gen2 VM; Assign ≥2 vCPUs |
272-
| Network connectivity issues | No internet/LAN in nested VM | Internal switch/NAT misconfig | Use external switch; Correct NAT config; Allow firewall rules |
273-
| Slow performance | Lag; high resource usage | Under-provisioned resources | Increase vCPUs/RAM; Use SSDs; Update drivers |
274-
| Role or Hyper-V installation blocked by security | Policy or VBS/Credential Guard errors | Device/Credential Guard enabled | Disable VBS/Credential Guard; Reboot |
275-
| NAT/port forwarding fails | Can't connect to nested VM; WinNAT errors | Wrong mapping/service lock | Remove/re-add NAT config; Restart host; `netsh` `portproxy` commands |
276-
| Snapshot/disk chain broken | Merge fails; file not found; broken chain errors | Parent disk moved/deleted | Restore parent VHD; `Get-VHD`/`Merge-VHD` PowerShell cmdlets |
277-
| VM doesn't recognize increased RAM | No error; allocation unchanged | Setting not saved/applied, platform | Power off VM; Edit settings; Start VM; check host/cluster/nested support |
271+
| Nested VM can't start Hyper-V | Role installation fails; CPU extension error | Extensions not exposed; Gen1 VM | Power off VM; `Set-VMProcessor -ExposeVirtualizationExtensions $true`; use Gen2 VM; assign ≥2 vCPUs. |
272+
| Network connectivity issues | No internet/LAN in nested VM | Internal switch/NAT misconfiguration | Use external switch; correct NAT configuration; allow firewall rules. |
273+
| Slow performance | Lag; high resource usage | Under-provisioned resources | Increase vCPUs/RAM; use SSDs; update drivers. |
274+
| Role or Hyper-V installation blocked by security | Policy or VBS/Credential Guard errors | Device/Credential Guard enabled | Disable VBS/Credential Guard; reboot. |
275+
| NAT/port forwarding fails | Can't connect to nested VM; WinNAT errors | Wrong mapping/service lock | Remove/re-add NAT configuraion; restart host; `netsh` `portproxy` commands. |
276+
| Snapshot/disk chain broken | Merge fails; file not found; broken chain errors | Parent disk moved/deleted | Restore parent VHD; `Get-VHD`/`Merge-VHD` PowerShell cmdlets. |
277+
| VM doesn't recognize increased RAM | No error; allocation unchanged | Setting not saved/applied, platform | Power off VM; edit settings; start VM; check host/cluster/nested support. |
278278
279279
Nested virtualization is a powerful but complex feature that often encounters resource, networking, configuration, and security challenges. Troubleshooting starts with verifying correct setup and continues by addressing common failure modes including role install problems, networking misconfiguration, storage chain errors, and blocked installations due to security policies. Careful data collection, step-by-step diagnosis, and understanding of platform limitations are essential for stable operation. For persistent issues or unsupported scenarios, engaging with platform support or escalation might be required.
280280

0 commit comments

Comments
 (0)