Skip to content

Commit 542786f

Browse files
committed
Update hyper-v-virtual-machine-backup-checkpoint-storage.md
1 parent a933248 commit 542786f

1 file changed

Lines changed: 137 additions & 97 deletions

File tree

Lines changed: 137 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Troubleshooting Hyper-V Virtual Machine Backup, Checkpoint, and Storage Failures
2+
title: Troubleshoot Hyper-V Virtual Machine Backup, Checkpoint, and Storage Failures
33
description: Provides a comprehensive guide to troubleshooting common issues encountered with Hyper-V virtual machine (VM) backup, checkpoint management, and storage failures in Windows Server environments.
44
ms.date: 08/19/2025
55
manager: dcscontentpm
@@ -10,181 +10,221 @@ ms.custom:
1010
- sap:virtualization and hyper-v\backup and restore of virtual machines
1111
- pcy:WinComm Storage High Avail
1212
---
13-
# Troubleshooting Hyper-V Virtual Machine Backup, Checkpoint, and Storage Failures
13+
# Troubleshoot Hyper-V virtual machine backup, checkpoint, and storage failures
1414

15-
This article provides a comprehensive guide to troubleshooting common issues encountered with Hyper-V virtual machine (VM) backup, checkpoint management, and storage failures in Windows Server environments (2016, 2019, and 2022). These issues often arise during backup/restore operations, checkpoint creation or merging, VM startup, and storage connectivity. They can impact both production and disaster recovery workflows in standalone Hyper-V hosts, clustered setups, and environments integrated with third-party backup tools. Timely identification and resolution are critical to maintaining VM availability, data integrity, and backup reliability.
16-
17-
## Symptoms
15+
This article provides a comprehensive guide to troubleshooting common issues encountered with Hyper-V virtual machine (VM) backup, checkpoint management, and storage failures in Windows Server environments (Windows Server 2016, Windows Server 2019, and Windows Server 2022). These issues often arise during backup or restore operations, checkpoint creation or merging, VM startup, and storage connectivity. They can impact both production and disaster recovery workflows in standalone Hyper-V hosts, clustered setups, and environments integrated with third-party backup tools. Timely identification and resolution are critical to maintaining VM availability, data integrity, and backup reliability.
1816

1917
You might encounter the following symptoms in affected environments:
2018

21-
### Backup and restore failures
19+
## Backup and restore failures
2220

2321
- Backups fail to complete or hang indefinitely.
2422
- Restore operations from checkpoints or images fail.
2523
- Error messages from backup software (such as Veeam, Druva, Rubrik, or Veritas) including:
2624

27-
- *"Failed to create VM recovery checkpoint … error code: 32768"*
28-
- *"Could not create backup checkpoint for virtual machine - Error -0x800423F2"*
29-
- *"There was a problem recovering your PC"*
30-
- *"Import failed. … The process cannot access the file because it is being used by another process. (0x80070020)"*
25+
- > Failed to create VM recovery checkpoint … error code: 32768
26+
- > Could not create backup checkpoint for virtual machine - Error -0x800423F2
27+
- > There was a problem recovering your PC
28+
- > Import failed. … The process cannot access the file because it is being used by another process. (0x80070020)
3129
3230
- Event log entries such as Event ID 8229 (host) and 12293 (guest) indicating Volume Shadow Copy Service (VSS) writer errors.
3331

34-
### Checkpoint and snapshot issues
32+
## Checkpoint and snapshot issues
3533

3634
- Unable to create new checkpoints or merge existing ones.
3735
- Accumulation of AVHDX files on disk, even when not visible in Hyper-V Manager.
38-
- Errors such as: *"The process cannot access the file because it is being used by another process. (0x80070020)"*.
36+
- Errors such as: "The process cannot access the file because it is being used by another process. (0x80070020)".
3937
- Orphaned or hidden checkpoints blocking backup or VM operations.
40-
- VMs stuck in *Saved*, *Paused*, or *Critical* states.
38+
- VMs stuck in saved, paused, or critical states.
4139

42-
### VM startup or migration failures
40+
## VM startup or migration failures
4341

4442
- VMs fail to start after host reboots, patching, or disk migration.
4543
- Errors such as:
46-
- *"The system cannot find the file specified. (0x2)"*
47-
- *"An error occurred while attempting to start the selected VM. Unavailable could not initialize and update VM configuration failed."*
44+
45+
- > The system cannot find the file specified. (0x2)
46+
- > An error occurred while attempting to start the selected VM. Unavailable could not initialize and update VM configuration failed.
47+
4848
- VMs not visible in Hyper-V Manager or Failover Cluster Manager.
4949
- VM migration, export, or import fails due to missing or corrupted files.
5050

51-
### Storage and file system errors
51+
## Storage and file system errors
5252

5353
- Event logs showing IDs 9, 39, 129, 3280, 55, 51, or 513 related to storage, disk, or file system corruption.
5454
- Storage volume running out of space due to large AVHDX files.
5555
- VHD/VHDX files missing, inaccessible, or corrupted.
5656
- Errors such as:
57-
- *"Cannot connect to virtual machine configuration storage"*
58-
- *"The virtual machine is not in a valid state to perform the operation."*
5957

60-
### User experience
58+
- > Cannot connect to virtual machine configuration storage
59+
- > The virtual machine is not in a valid state to perform the operation.
60+
61+
## User experience
6162

6263
- Inability to perform backups or restores, leading to potential data loss.
6364
- Unexpected VM downtime or loss of access.
6465
- Orphaned disk files causing storage exhaustion.
6566
- Persistent warning or error states in management consoles.
6667

67-
## Cause
68-
69-
The root causes of these issues can be grouped into the following categories:
70-
71-
### Checkpoint and VSS-related issues
72-
73-
- **Orphaned or unmerged checkpoints**: Caused by incomplete backup operations, hidden/invisible checkpoints, or AVHDX chain corruption.
74-
- **VSS writer failures or timeouts**: VSS writers in failed or timed-out states, often due to overlapping backup jobs or VSS operations.
75-
- **Third-party backup integration**: Misconfigurations or incompatibilities between Hyper-V and backup tools such as Veeam, Druva, or Veritas.
76-
77-
### File system and storage problems
78-
79-
- **Disk or volume corruption**: Metadata errors on NTFS/ReFS volumes triggered by failed merges or storage I/O issues.
80-
- **Missing or corrupted VM files**: Loss or corruption of VHD, AVHDX, or configuration files due to failed merges or hardware issues.
81-
- **Storage connectivity problems**: Issues with iSCSI, Cluster Shared Volumes (CSV), or Storage Spaces Direct (S2D) leading to unavailability or driver/firmware failures.
68+
The root causes of these issues can be grouped into the following categories, with corresponding resolutions provided.
8269

83-
### Permissions and policy misconfiguration
70+
## Checkpoint and VSS-related issues
8471

85-
- **Insufficient permissions**: Missing "Log on as a Service" rights for NT Virtual Machine accounts or incorrect NTFS permissions.
86-
- **Antivirus interference**: AV filter drivers blocking access to disk files or interfering with checkpoint/backup operations.
87-
- **Group Policy misconfigurations**: Changes removing required permissions or service rights.
72+
- Orphaned or unmerged checkpoints: Caused by incomplete backup operations, hidden/invisible checkpoints, or AVHDX chain corruption.
73+
- VSS writer failures or timeouts: VSS writers in failed or timed-out states, often due to overlapping backup jobs or VSS operations.
74+
- Third-party backup integration: Misconfigurations or incompatibilities between Hyper-V and backup tools such as Veeam, Druva, or Veritas.
8875

89-
### Cluster and configuration issues
76+
### Resolution: Checkpoint and AVHDX file management
9077

91-
- **Cluster role or metadata corruption**: Caused by improper failovers, role removal, or unsynchronized cluster states.
92-
- **Configuration version mismatch**: VM config versions below the required minimum after migrations or upgrades.
93-
- **Incorrect VM or storage path settings**: Misconfigured paths or mismatched network adapters after a migration.
78+
1. Identify orphaned checkpoints:
9479

95-
### Operational and environmental causes
80+
1. Run the following PowerShell cmdlet:
9681

97-
- **Improper maintenance**: Rebooting cluster nodes without draining roles or placing them in maintenance mode.
98-
- **Simultaneous backup conflicts**: Overlapping backup jobs causing VSS contention or file corruption.
99-
- **Hardware or driver issues**: Outdated network/storage drivers or hardware instability.
82+
```powershell
83+
Get-VMSnapshot -VMName
84+
```
10085
101-
## Resolution
86+
2. Inspect the VM disk folder for AVHDX files not listed in Hyper-V Manager.
10287
103-
Follow these steps to resolve issues based on their root causes:
88+
2. Merge orphaned AVHDX files:
10489
105-
### Checkpoint and AVHDX file management
90+
1. Shut down the affected VM.
91+
2. In Hyper-V Manager:
10692
107-
1. **Identify orphaned checkpoints**: - Run the following PowerShell command:powershellGet-VMSnapshot -VMName
108-
- Inspect the VM disk folder for AVHDX files not listed in Hyper-V Manager.
109-
2. **Merge orphaned AVHDX files**: - Shut down the affected VM.
110-
- In Hyper-V Manager: - Go to **Actions > Edit Disk > Select AVHDX > Merge > To Parent Disk**.
111-
- Repeat the process until only the parent VHDX file remains.
112-
3. **Advanced PowerShell merge** (if needed):
93+
1. Go to **Actions** > **Edit Disk**
94+
2. Select **AVHDX** > **Merge** > **To Parent Disk**.
95+
3. Repeat the process until only the parent VHDX file remains.
96+
3. Advanced PowerShell merge (if needed):
11397
114-
```plaintext
98+
```powershell
11599
Merge-VHD -Path <AVHDXPath> -DestinationPath <VHDXPath>
116100
```
117101
118-
4. **Reattach and start the VM**: - Verify the VM points to the correct (merged) VHDX file.
119-
- Start the VM and confirm functionality.
102+
4. Reattach and start the VM:
103+
104+
1. Verify the VM points to the correct (merged) VHDX file.
105+
2. Start the VM and confirm functionality.
120106
121-
### Backup/restore and VSS writer troubleshooting
107+
### Resolution: Backup/restore and VSS writer troubleshooting
122108
123-
1. **Restart VSS services**:
109+
1. Restart VSS services:
124110
125-
```plaintext
111+
```console
126112
net stop vss
127113
net start vss
128114
net stop swprv
129115
net start swprv
130116
```
131117
132-
2. **Check VSS writers**: - Run: vssadmin list writers and resolve failed writers by restarting related services or rebooting the host.
133-
3. **Clear stuck checkpoints**: - Use vendor-specific tools, such as nbhypervtool.exe deleteNbuCheckpoints -vmguid <vmguid> for Veritas.
134-
4. **Stagger backup schedules** to avoid overlapping VSS operations.
118+
2. Check VSS writers:
119+
120+
Run the `vssadmin list writers` command and resolve failed writers by restarting related services or rebooting the host.
121+
122+
3. Clear stuck checkpoints:
123+
124+
Use vendor-specific tools, such as `nbhypervtool.exe deleteNbuCheckpoints -vmguid <vmguid>` for Veritas.
135125
136-
### File system and storage repair
126+
4. Stagger backup schedules to avoid overlapping VSS operations.
137127
138-
1. **Run disk and file system repairs**:
128+
## File system and storage problems
139129
140-
```plaintext
130+
- Disk or volume corruption: Metadata errors on NTFS/ReFS volumes triggered by failed merges or storage I/O issues.
131+
- Missing or corrupted VM files: Loss or corruption of VHD, AVHDX, or configuration files due to failed merges or hardware issues.
132+
- Storage connectivity problems: Issues with iSCSI, Cluster Shared Volumes (CSV), or Storage Spaces Direct (S2D) leading to unavailability or driver/firmware failures.
133+
134+
### Resolution: File system and storage repair
135+
136+
1. Run disk and file system repairs:
137+
138+
```console
141139
chkdsk <drive:> /f
142-
140+
```
141+
143142
Or for ReFS volumes:
143+
144144
```powershell
145145
Repair-Volume <drive:>
146146
```
147147
148-
2. **Restore missing files**: - Recover from the latest backup if files are irrecoverable.
149-
3. **Validate storage health**: - Check iSCSI, CSV, or S2D connectivity and ensure sufficient space.
148+
2. Restore missing files:
149+
150+
Recover from the latest backup if files are irrecoverable.
151+
3. Validate storage health:
152+
153+
- Check iSCSI, CSV, or S2D connectivity and ensure sufficient space.
150154
- Update storage drivers and firmware.
151155
152-
### Permission and policy corrections
156+
## Permissions and policy misconfiguration
157+
158+
- Insufficient permissions: Missing **Log on as a Service** rights for NT Virtual Machine accounts or incorrect NTFS permissions.
159+
- Antivirus interference: AV filter drivers blocking access to disk files or interfering with checkpoint/backup operations.
160+
- Group Policy misconfigurations: Changes removing required permissions or service rights.
161+
162+
### Resolution: Permission and policy corrections
163+
164+
1. Assign required rights:
165+
166+
Ensure **NT Virtual Machine\\Virtual Machines** has **Log on as a Service** rights via Group Policy or Local Security Policy.
167+
2. Update NTFS permissions:
168+
169+
Use `icacls` to verify and grant **Full Control** to VM service accounts.
170+
3. Configure antivirus exclusions by following the [Microsoft antivirus exclusions for Hyper-V](antivirus-exclusions-for-hyper-v-hosts.md).
171+
172+
## Cluster and configuration issues
173+
174+
- Cluster role or metadata corruption: Caused by improper failovers, role removal, or unsynchronized cluster states.
175+
- Configuration version mismatch: VM config versions below the required minimum after migrations or upgrades.
176+
- Incorrect VM or storage path settings: Misconfigured paths or mismatched network adapters after a migration.
177+
178+
### Resolution: Cluster and VM configuration fixes
179+
180+
1. Resynchronize cluster metadata:
181+
182+
- Use Failover Cluster Manager for VM operations.
183+
- Perform live migrations to force metadata sync and clear warnings.
184+
2. Restore or import missing VMs:
185+
186+
In Hyper-V Manager, use **Import Virtual Machine** and locate the exported/imported files.
187+
3. Update VM configuration version:
188+
189+
In Hyper-V Manager, right-click the VM, and select **Upgrade Configuration Version**. Or use the folowing PowerShell cmdlet:
190+
191+
```powershell
192+
Update-VMVersion
193+
```
194+
195+
4. Correct disk or network settings:
153196

154-
1. **Assign required rights**: - Ensure "NT Virtual Machine\Virtual Machines" has "Log on as a Service" rights via Group Policy or Local Security Policy.
155-
2. **Update NTFS permissions**: - Use icacls to verify and grant Full Control to VM service accounts.
156-
3. **Configure antivirus exclusions**: - Follow the [Microsoft antivirus exclusions for Hyper-V](https://learn.microsoft.com/troubleshoot/windows-server/virtualization/antivirus-exclusions-for-hyper-v-hosts).
197+
Edit VM settings to ensure correct disk and network adapter assignments.
157198

158-
### Cluster and VM configuration fixes
199+
## Operational and environmental causes
159200

160-
1. **Resynchronize cluster metadata**: - Use Failover Cluster Manager for VM operations.
161-
- Perform live migrations to force metadata sync and clear warnings.
162-
2. **Restore or import missing VMs**: - In Hyper-V Manager, use **Import Virtual Machine** and locate the exported/imported files.
163-
3. **Update VM configuration version**: - In Hyper-V Manager: Right-click the VM > **Upgrade Configuration Version**.Or use PowerShell:```powershellUpdate-VMVersion
164-
4. **Correct disk or network settings**: - Edit VM settings to ensure correct disk and network adapter assignments.
201+
- Improper maintenance: Rebooting cluster nodes without draining roles or placing them in maintenance mode.
202+
- Simultaneous backup conflicts: Overlapping backup jobs causing VSS contention or file corruption.
203+
- Hardware or driver issues: Outdated network/storage drivers or hardware instability.
165204

166-
### Other repairs and checks
205+
## Other repairs and checks
167206

168-
1. **Clean up saved states**: - Delete .vmrs and .vmgs files in the VM folder if stuck in a "Saved" state.
169-
2. **Check and fix cluster resource states**: - Use PowerShell cmdlets like Get-ClusterResource to inspect and repair cluster roles.
170-
3. **Reboot the host** to clear stale file locks if needed.
207+
1. Clean up saved states: Delete `.vmrs` and `.vmgs` files in the VM folder if stuck in a "Saved" state.
208+
2. Check and fix cluster resource states: Use PowerShell cmdlets like `Get-ClusterResource` to inspect and repair cluster roles.
209+
3. Restart the host to clear stale file locks if needed.
171210

172211
## Data collection
173212

174-
To assist with troubleshooting, collect the following:
213+
To assist with troubleshooting, collect the following items:
175214

176-
- **Event logs**: Application, System, and Hyper-V-specific logs.
177-
- **PowerShell diagnostic commands**: - Get-VHDChain, Get-VMSnapshot, Get-VM, Update-VMVersion, icacls, Merge-VHD, Set-VHD.
178-
- **VSS tools**: - vssadmin list writers, vssadmin list providers.
179-
- **Diagnostic tools**: - Process Monitor (Procmon), Handle.exe, Process Explorer, and Troubleshooting Support Script (TSS).
180-
- **Cluster logs**: Failover clustering logs and System Center Virtual Machine Manager (SCVMM) job history.
181-
- **Vendor-specific tools**: For checkpoint/snapshot cleanup.
215+
- Event logs: Application, system, and Hyper-V-specific logs.
216+
- PowerShell diagnostic cmdlets: `Get-VHDChain`, `Get-VMSnapshot`, `Get-VM`, `Update-VMVersion`, `icacls`, `Merge-VHD`, `Set-VHD`.
217+
- VSS tools: `vssadmin list writers`, `vssadmin list providers`.
218+
- Diagnostic tools: Process Monitor (Procmon), **Handle.exe**, Process Explorer, and Troubleshooting Support Script (TSS).
219+
- Cluster logs: Failover clustering logs and System Center Virtual Machine Manager (SCVMM) job history.
220+
- Vendor-specific tools for checkpoint/snapshot cleanup.
182221

183222
## References
184223

185-
- [Microsoft Docs: Export and import virtual machines](https://learn.microsoft.com/windows-server/virtualization/hyper-v/deploy/export-and-import-virtual-machines)
186-
- [Hyper-V backup and restore best practices](https://learn.microsoft.com/windows-server/virtualization/hyper-v/manage/backup-and-restore)
187-
- [Antivirus exclusions for Hyper-V](https://learn.microsoft.com/troubleshoot/windows-server/virtualization/antivirus-exclusions-for-hyper-v-hosts)
188-
- [PowerShell Hyper-V cmdlets](https://learn.microsoft.com/powershell/module/hyper-v/?view=windowsserver2022-ps)
224+
- [Export and import virtual machines](/windows-server/virtualization/hyper-v/deploy/export-and-import-virtual-machines)
225+
- [Backing up and restoring virtual machines](/windows/win32/hyperv_v2/backing-up-and-restoring-virtual-machines)
226+
- [Antivirus exclusions for Hyper-V](antivirus-exclusions-for-hyper-v-hosts.md)
227+
- [PowerShell Hyper-V cmdlets](/powershell/module/hyper-v/)
189228

190-
**Note**: Always back up critical VMs before performing file merges, deletions, or major configuration changes. For further assistance, consult Microsoft Support or your backup vendor.
229+
> [!NOTE]
230+
> Always back up critical VMs before performing file merges, deletions, or major configuration changes. For further assistance, consult Microsoft Support or your backup vendor.

0 commit comments

Comments
 (0)