Skip to content

Commit 6bab5d9

Browse files
authored
AB#6859: Troubleshooting Guide: Hyper-V Snapshots, Checkpoints, and Differencing Disks (AVHDX) (#9974)
* Create hyper-v-snapshots-checkpoints-differencing-disks.md * Update hyper-v-snapshots-checkpoints-differencing-disks.md Edit review per CI 6859 * Refactor links to use relative paths in documentation Updated links to use relative paths for better navigation. * Change 'Introduction' to 'Summary' in documentation Updated the section title from 'Introduction' to 'Summary' for clarity.
1 parent fee5c27 commit 6bab5d9

File tree

1 file changed

+228
-0
lines changed

1 file changed

+228
-0
lines changed
Lines changed: 228 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,228 @@
1+
---
2+
title: Troubleshoot Hyper-V Snapshots, Checkpoints, and Differencing Disks (AVHDX)
3+
description: Provides troubleshooting methods for issues that affect Hyper-V snapshots, checkpoints, and differencing disks.
4+
ms.date: 10/08/2025
5+
manager: dcscontentpm
6+
audience: itpro
7+
ms.topic: troubleshooting
8+
ms.reviewer: kaushika
9+
ms.custom:
10+
- sap:Virtualization and Hyper-V\Snapshots, checkpoints, and differencing disks
11+
- pcy:WinComm Storage High Avail
12+
appliesto:
13+
- <a href=https://learn.microsoft.com/windows/release-health/windows-server-release-info target=_blank>Supported versions of Windows Server</a>
14+
---
15+
16+
# Troubleshoot Hyper-V snapshots, checkpoints, and differencing disks (AVHDX)
17+
18+
## Summary
19+
20+
Hyper-V checkpoints (snapshots) are critical features in Windows Server virtualization. They enable administrators to capture virtual machine VM states for backup, replication, and disaster recovery. However, checkpoint and snapshot management can be complicated by interactions with third-party backup solutions, storage limitations, misconfiguration, or system-level failures. Issues that occur in checkpoint operations can cause failed backups, VM outages, data loss, storage exhaustion, broken VM chains, and hindered disaster recovery. This article provides a systematic approach for diagnosing and resolving checkpoint and snapshot-related issues in Hyper-V, including standalone and clustered environments.
21+
22+
## Troubleshooting checklist
23+
24+
Use this checklist for systematic troubleshooting:
25+
26+
- **Verify backup and restore status**
27+
- Check whether recent third-party backups finished successfully.
28+
- Verify that backup applications report merging or cleanup of their checkpoints.
29+
- **Review Storage Utilization**
30+
- Check for storage exhaustion on volumes that store .vhdx, .avhdx, .mrt, or .rct files.
31+
- Make sure that sufficient free space exists for merges (ideally, space equal to the disk size).
32+
- **Examine VM state**
33+
- Verify that the VM isn't in the "saved," "creating checkpoint," or "stopping" state.
34+
- Verify the availability of all expected disk files.
35+
- **Inspect Existing Checkpoints**
36+
- In Hyper-V Manager or through PowerShell, enumerate checkpoints:
37+
38+
```powershell
39+
Get-VMSnapshot -VMName <VMName>
40+
```
41+
42+
- **Check Permissions and Security**
43+
- Verify that the NT VIRTUAL MACHINE\Virtual Machines group has "Log on as a Service" and NTFS folder permissions.
44+
- Review antivirus exclusions for Hyper-V-related files and folders.
45+
- **Check for Orphaned Differencing Files**
46+
- Look for .avhd, .avhdx, .mrt, and .rct files that aren't reflected in Hyper-V Manager.
47+
- **Assess Cluster/Failover Health**(if applicable)
48+
- Verify cluster disk and CSV (Cluster Shared Volume) status.
49+
- **Collect Error Information**
50+
- Gather exact error messages, event log entries, and screenshot or key event times.
51+
- **Document All Changes**
52+
- Note any recent configuration, OS, or storage changes.
53+
54+
## Common issues and solutions
55+
56+
The following sections detail the most common failure modes and provide step-by-step solutions.
57+
58+
### Can't create, merge, or delete checkpoints
59+
60+
#### Cause
61+
62+
- Orphaned or stale checkpoints (usually from backup software)
63+
- Checkpoint chain corruption or broken parent/child disk relationships
64+
- Locks on files by backup or antivirus processes
65+
- Insufficient disk space
66+
- Unsupported scenario (for example, pass-through or shared VHDX or synthetic fibre channel)
67+
68+
#### Resolution
69+
70+
**Checkpoints visible but can’t delete or merge**
71+
72+
1. Right-click the checkpoint, and select **Delete** or press Del in Hyper-V Manager. If this action is unsuccessful, run the following PowerShell command:
73+
74+
```powershell
75+
Get-VMSnapshot -VMName <VMName> | Remove-VMSnapshot
76+
```
77+
78+
1. Shut down the VMm and retry the deletion (the shutdown triggers an auto-merge, if possible).
79+
1. If the merge fails, use Hyper-V Manager: Select **Edit Disk** > **.avhdx** > **Merge** > **To parent virtual disk** (repeat for a chain).
80+
81+
**Checkpoints not visible (orphaned or aged snapshots)**
82+
83+
1. Shut down the VM.
84+
1. Use PowerShell to inspect VHD chains:
85+
86+
```powershell
87+
Get-VMHardDiskDrive -VMName <VMName> | ForEach-Object { Get-VHD -Path $_.Path | Select-Object Path, ParentPath, VHDType }
88+
```
89+
90+
1. Identify and merge any .avhdx files that aren't visible in the Manager.
91+
92+
```powershell
93+
Merge-VHD -Path <path-to-avhdx> -DestinationPath <parent-vhdx>
94+
```
95+
96+
1. Update VM configuration to point to the merged .vhdx file in Hyper-V Manager, if it's necessary.
97+
98+
**Orphaned, broken, or missing checkpoint or disk diles**
99+
100+
If a base or differencing disk is missing: Restore it from backup, if possible. Otherwise, create a new VM, and attach the remaining healthy .vhdx file.
101+
102+
**Excessive amount of checkpoints (more than 50)**
103+
104+
1. Schedule downtime.
105+
1. Merge checkpoints sequentially (from youngest to oldest).
106+
107+
For more information, see [Microsoft Doc: Merging Many Differencing Disks](/troubleshoot/windows-server/virtualization/merge-checkpoints-with-many-differencing-disks)
108+
109+
**Pass-through, shared VHD, or synthetic fibre channel**
110+
111+
- Checkpoints aren't supported.
112+
- Remove or convert pass-through or shared disks to .vhdx or use a third-party backup for these workloads.
113+
114+
### Checkpoint or backup-related performance of cleanup failures
115+
116+
#### Cause
117+
118+
- Third-party backup integration failures
119+
- Antivirus exclusion misconfiguration
120+
- Disk locks or service or permission misconfigurations
121+
122+
#### Resolution
123+
124+
**Incomplete checkpoint merges (after backup)**
125+
126+
1. Make sure that backup software is configured to clean up after completion.
127+
1. Exclude Hyper-V files, folders, and processes from antivirus scanning.
128+
1. Restart the VM or host if checkpoints still don't merge.
129+
130+
**File locks or sharing violations**
131+
132+
1. Use Resource Monitor or ProcMon to identify the process that locks the file.
133+
1. Restart backup, Hyper-V, and VSS services.
134+
135+
**Permission rights issues**
136+
137+
1. Add NT VIRTUAL MACHINE\Virtual Machines to "Log on as a service."
138+
- GPMC: Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment
139+
1. Apply permissions:
140+
141+
```console
142+
icacls <PathToVMFolder> /grant "NT VIRTUAL MACHINE\<VMGuid>:F" /T
143+
```
144+
145+
1. Run gpupdate /force after changes.
146+
147+
### Clustered and high availability scenarios
148+
149+
**Disk integration or cluster node issues**
150+
151+
1. Check CSV and cluster resource status.
152+
1. Analyze logs for storage, cluster, or node failures.
153+
1. Run relevant PowerShell commands:
154+
155+
```powershell
156+
get-clusterstoragespacesdirect
157+
get-storagepool
158+
get-physicaldisk
159+
get-virtualdisk
160+
get-storagetier
161+
mountvol
162+
```
163+
164+
**Cluster configuration version issues**
165+
166+
1. Make sure that VMs use current configuration versions for live migration.
167+
1. Update through **Hyper-V Manager** > **VM** > **Upgrade Configuration Version**.
168+
169+
### Checkpoint Chain corruption
170+
171+
#### Cause
172+
173+
1. Manual deletions or failed merges
174+
1. Storage or host failures mid-merge
175+
176+
#### Resolution
177+
178+
1. Back up all files before you try any fixes.
179+
1. To merge all differencing disks, one by one, from child to parent, use the VM "Edit Disk" tool in Hyper-V Manager.
180+
1. If the VM still doesn't start, create a new VM, and attach the final merged disk.
181+
182+
## Common issues quick reference table
183+
184+
| Symptom | Root cause | Resolution |
185+
| --- | --- | --- |
186+
| Can't delete or merge checkpoints | Orphaned, invisible, or backup-created checkpoints | Shutdown, use PowerShell "Edit Disk" for manual merge |
187+
| No space to merge, VM doesn’t start | Storage exhaustion, unmerged checkpoints | Free up storage, attach USB/NAS, perform merge and export |
188+
| Error 0x80070032 or disk chain corruption | Broken chain, merge interrupted, disk mismatch | Identify correct merge order, repair chain, or create new VM |
189+
| File lock or sharing violation (0x80070020) | Backup, AV, or other process has disk open | Use ProcMon to identify lock, restart VSS/Hyper-V/backups, antivirus exclusions |
190+
| VM stuck at "creating checkpoint" / not responding | SnapshotTask/VMDeltaSync stuck, HVMM service blocked | Restart host, kill stuck processes, analyze dump files |
191+
| Can't expand disk (option greyed out) | Active differencing or child disk exists | Merge all checkpoints, make sure that parent is selected in settings |
192+
| "Catastrophic failure" deleting checkpoint | Invalid permissions, configuration corruption, backup lock | Fix permissions, remove checkpoint through a new VM, if it's necessary |
193+
| Pass-through/shared VHD/fibre channel=fail | Not supported by design for checkpointing | Convert disk type or use backup vendor's procedure |
194+
195+
## Data collection
196+
197+
Before you contact Microsoft Support, you can gather the following information about your issue.
198+
199+
- **Event Viewer logs:**
200+
- Application, System, Microsoft-Windows-Hyper-V-VMMS/Admin
201+
- **Cluster Logs:**
202+
203+
```console
204+
cluster log /g
205+
```
206+
- **VM and disk chains:**
207+
208+
```powershell
209+
Get-VM -ComputerName <host> -Name <VMName>
210+
Get-VMSnapshot -VMName <VMName>
211+
Get-VHD -Path <full-path>
212+
```
213+
- **Manual Disk/VM Inspection:**
214+
- Explorer listing of VM folder (with file sizes, last modified date)
215+
- **Procmon or Resource Monitor Traces:**
216+
- Filter for .avhdx, .vhdx, vmwp.exe, backup process
217+
- **VSS and Shadow Copy:**
218+
- vssadmin list writers
219+
- DevNodeClean logs (if shadow copy or ghost VSS devices are suspected)
220+
- **Screenshots:**
221+
- Hyper-V Manager, error messages, properties dialog boxes
222+
223+
## References
224+
225+
- [How to merge checkpoints that have multiple differencing disks](/troubleshoot/windows-server/virtualization/merge-checkpoints-with-many-differencing-disks)
226+
- [Backup recovery checkpoint issues](/troubleshoot/windows-server/virtualization/cannot-delete-recovery-checkpoint-vm)
227+
- [Common antivirus exclusions for Hyper-V](/defender-endpoint/configure-server-exclusions-microsoft-defender-antivirus)
228+
- [Log on as a service](/windows/security/threat-protection/security-policy-settings/log-on-as-a-service)

0 commit comments

Comments
 (0)