Skip to content

Commit 5bf5f8a

Browse files
committed
updates
1 parent ee082da commit 5bf5f8a

File tree

2 files changed

+108
-76
lines changed

2 files changed

+108
-76
lines changed

support/windows-server/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2836,6 +2836,8 @@ items:
28362836
items:
28372837
- name: Get-VMNetworkAdapter command doesn't report IP addresses
28382838
href: ./virtualization/get-vmnetworkadapter-doesnt-report-ip-addresses.md
2839+
- name: Troubleshoot Hyper-V virtual machine start, state, and access failures
2840+
href: ./virtualization/hyper-v-start-state-access-failures-clustered-standalone.md
28392841
- name: Virtual Machines enter the paused state
28402842
href: ./virtualization/virtual-machines-enter-paused-state-low-disk-free.md
28412843
- name: Virtual machine shutdown actions don't run
Lines changed: 106 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Troubleshooting Hyper-V virtual machine start, state, and access failures in clustered and standalone environments
2+
title: Troubleshoot Hyper-V Virtual Machine Start, State, and Access Failures
33
description: Provides a detailed troubleshooting guide to help you resolve issues related to Hyper-V virtual machines (VMs) that fail to start, become stuck in transitional states, or become inaccessible in both clustered and standalone environments.
44
ms.date: 08/22/2025
55
manager: dcscontentpm
@@ -10,159 +10,189 @@ ms.custom:
1010
- sap:virtualization and hyper-v\virtual machine state
1111
- pcy:WinComm Storage High Avail
1212
---
13-
# Troubleshooting Hyper-V virtual machine start, state, and access failures in clustered and standalone environments
13+
# Troubleshoot Hyper-V virtual machine start, state, and access failures in clustered and standalone environments
1414

1515
This article provides a detailed troubleshooting guide to help you resolve issues related to Hyper-V virtual machines (VMs) that fail to start, become stuck in transitional states (such as starting, stopping, saved, or paused), or become inaccessible in both clustered and standalone environments. Common causes include VM configuration file corruption, storage or network problems, process lockups, checkpoint or AVHDX (automatic virtual hard disk) issues, and permission or driver errors. Timely identification and resolution of these problems are essential to minimize VM downtime, prevent business disruption, and avoid data loss in production environments.
1616

17-
## Symptoms
17+
You might encounter various symptoms when dealing with Hyper-V VM issues, including the following items:
1818

19-
You may encounter various symptoms when dealing with Hyper-V VM issues, including the following:
20-
21-
### End-user and technical symptoms
19+
## End-user and technical symptoms
2220

2321
- VMs fail to start or power on in Hyper-V Manager or Failover Cluster Manager.
2422
- VMs are stuck in states like "starting," "stopping," "saved-critical," "paused," or "restoring."
25-
- VMs are missing or not visible in Hyper-V Manager or the output of Get-VM.
23+
- VMs are missing or not visible in Hyper-V Manager or the output of `Get-VM`.
2624
- VM states are displayed as "running critical," "stopping," or "online pending."
2725
- VM consoles are inaccessible, and remote desktop connections are unavailable.
2826
- VMs fail to migrate successfully between cluster nodes.
29-
- Hyper-V Manager or Failover Cluster Manager cannot change VM states or report their status.
30-
- VMMS (virtual machine management service) or VMM services are stuck in a "Stopping" state.
27+
- Hyper-V Manager or Failover Cluster Manager can't change VM states or report their status.
28+
- Virtual machine management service (VMMS) or VMM services are stuck in a "Stopping" state.
3129
- Storage volumes, such as Cluster Shared Volumes (CSVs), appear as RAW or offline, and VHDX files are inaccessible or locked.
3230

33-
### Error messages, event logs, and codes
31+
## Error messages, event logs, and codes
32+
33+
- Error messages:
34+
35+
- > A virtual machine or container with the specified identifier already exists in Hyper-V.
36+
- > Failed to start worker process: Catastrophic failure 0x8000FFFF.
37+
- > Virtual machine failed to generate VHD tree: The system cannot find the file specified (0x80070002).
38+
- > The process cannot access the file because it is being used by another process.
39+
- > Failed to perform the Cleaning up stale reference point(s) operation. The virtual machine is currently performing: Turning Off.
40+
- > The file or directory is corrupted and unreadable. (0x80070570)
3441
35-
- “A virtual machine or container with the specified identifier already exists in Hyper-V.”
36-
- “Failed to start worker process: Catastrophic failure 0x8000FFFF.”
37-
- “Virtual machine failed to generate VHD tree: The system cannot find the file specified (0x80070002).”
38-
- “The process cannot access the file because it is being used by another process.”
39-
- “Failed to perform the Cleaning up stale reference point(s) operation. The virtual machine is currently performing: Turning Off.”
40-
- “The file or directory is corrupted and unreadable. (0x80070570)”
4142
- Event IDs: 21502, 1069, 1205, 5120, 1135, 225, 15500, 1793, 1795, 7034, 7031, 7036, 16300, 14102, 4092, 18012, 18016, 20848, 20864, 12620, 12240, 153, 20848, 18524, 1146, 1230.
4243
- Cluster resources stuck in "online pending" or "failed" states.
4344
- VMs are unavailable after patching, host restarts, or storage and network events.
4445

45-
## Cause
46+
Hyper-V VM failures might originate from several root causes categorized as follows, and corresponding resolutions are provided respectively:
4647

47-
Hyper-V VM failures may originate from several root causes categorized as follows:
48+
- [Cause 1: Configuration and metadata corruption](#cause-1-configuration-and-metadata-corruption)
49+
- [Cause 2: Storage and file system issues](#cause-2-storage-and-file-system-issues)
50+
- [Cause 3: Process and service lockups](#cause-3-process-and-service-lockups)
51+
- [Cause 4: Permissions, security, and driver problems](#cause-4-permissions-security-and-driver-problems)
52+
- [Cause 5: Cluster, network, and failover issues](#cause-5-cluster-network-and-failover-issues)
4853

49-
### 1. Configuration and metadata corruption
54+
> [!NOTE]
55+
> To resolve these issues, perform the initial checks using the following steps:
56+
>
57+
> 1. Identify error messages, event IDs, and affected VMs using Hyper-V Manager, Failover Cluster Manager, or PowerShell.
58+
> 2. Review system logs, Hyper-V logs, and cluster event logs for relevant entries.
5059
51-
- Corrupt or missing VM configuration files (e.g., .VMCX, .XML) prevent the VM from being recognized or started by Hyper-V, often after failed migrations, storage issues, or abrupt shutdowns.
60+
## Cause 1: Configuration and metadata corruption
61+
62+
- Corrupt or missing VM configuration files (for example, `.VMCX`, `.XML`) prevent the VM from being recognized or started by Hyper-V, often after failed migrations, storage issues, or abrupt shutdowns.
5263
- Checkpoint (AVHDX) chain corruption or missing differencing disks prevent the VM from starting.
5364
- Orphaned checkpoints, incomplete merges, or invalid entries in configuration files block VM operations.
5465
- Duplicate VM GUIDs or object entries, particularly with System Center Virtual Machine Manager (SCVMM), can cause "already exists" errors and prevent VM imports or starts.
5566

56-
### 2. Storage and file system issues
67+
## Cause 2: Storage and file system issues
5768

5869
- CSVs or volumes are offline, RAW, or inaccessible due to storage subsystem failures, disk corruption, or drive letter conflicts.
5970
- VHD or VHDX files are locked or in use by another process, such as a backup or antivirus program.
6071
- Missing or corrupted VM runtime state files (VMRS) impede VM operations.
6172
- BitLocker-locked disks prevent VMs from starting after patching or reboots.
6273

63-
### 3. Process and service lockups
64-
65-
- Stale VMWP (VM Worker Process) or VMMS (VM Management Service) processes are stuck due to storage or network issues or deadlocks.
66-
- Failed attempts to terminate VM processes via Task Manager, taskkill, or Process Explorer persist due to kernel or resource locks.
67-
68-
### 4. Permissions, security, and driver problems
69-
70-
- Permissions issues restrict the Hyper-V service account from accessing VM files or folders.
71-
- Antivirus or third-party filter drivers interfere with Hyper-V, blocking file access or causing merge failures.
72-
- Outdated or misconfigured storage or network drivers lead to connectivity loss or failover events.
73-
74-
### 5. Cluster, network, and failover issues
75-
76-
- CSV or network communication failures, such as cluster node isolation, result in mass VM failovers or reboots.
77-
- Improper cluster configurations or inconsistent patching across nodes cause instability.
78-
- Live migration or failover failures occur due to insufficient memory, incompatible settings, or node misconfigurations.
79-
80-
## Resolution
81-
82-
To resolve these issues, follow the troubleshooting steps below:
83-
84-
### A. Initial checks
85-
86-
1. Identify error messages, event IDs, and affected VMs using Hyper-V Manager, Failover Cluster Manager, or PowerShell.
87-
2. Review system logs, Hyper-V logs, and cluster event logs for relevant entries.
88-
89-
### B. File system and storage checks
74+
### Resolution: File system and storage checks
9075

9176
1. Verify storage volumes:
9277

93-
- Use Disk Management or diskpart to ensure volumes are online and properly assigned.
94-
- If volumes are RAW or missing, reassign drive letters and repair disk corruption using chkdsk:
78+
- Use Disk Management or `diskpart` to ensure volumes are online and properly assigned.
79+
- If volumes are RAW or missing, reassign drive letters and repair disk corruption using `chkdsk`:
80+
81+
```console
82+
chkdsk <drive_letter>: /f /r</drive_letter>
83+
```
9584

96-
chkdsk <drive_letter>: /f /r</drive_letter>
9785
2. Check VM configuration and disk file presence:
9886

99-
- Confirm the existence of .VMCX, .VMRS, .VHDX, and .AVHDX files in the VM folder.
87+
- Confirm the existence of `.VMCX`, `.VMRS`, `.VHDX`, and `.AVHDX` files in the VM folder.
10088
- For missing or corrupt configuration files, rebuild the VM using existing VHDX files or restore from a backup.
10189
- For missing or corrupt AVHDX files:
10290

103-
Set-VHD -Path <vhdx path> -ParentPath <parent vhdx path> -IgnoreIDMismatch</parent></vhdx>
91+
```powershell
92+
Set-VHD -Path <vhdx path> -ParentPath <parent vhdx path> -IgnoreIDMismatch</parent></vhdx>
93+
```
94+
10495
- If BitLocker is enabled, unlock the disk:
10596

106-
manage-bde -unlock D: -RecoveryPassword <yourrecoverypassword></yourrecoverypassword>
97+
```console
98+
manage-bde -unlock D: -RecoveryPassword <yourrecoverypassword></yourrecoverypassword>
99+
```
100+
107101
- For locked or in-use files, use Process Explorer to identify and terminate the locking process, or reboot the host to release the lock.
108102

109-
### C. Process and service recovery
103+
## Cause 3: Process and service lockups
104+
105+
- Stale VM Worker Process (VMWP) or VMMS processes are stuck due to storage or network issues or deadlocks.
106+
- Failed attempts to terminate VM processes via Task Manager, taskkill, or Process Explorer persist due to kernel or resource locks.
107+
108+
### Resolution: Process and service recovery
110109

111110
1. If the VM is stuck in transitional states:
112111

113112
- End the VM process:
114113

115-
taskkill /PID <pid> /F</pid>
114+
```console
115+
taskkill /PID <pid> /F</pid>
116+
```
117+
116118
- Restart VMMS or the host if processes remain stuck.
117119
2. Remove saved states or checkpoints:
118120

119-
Get-VMSnapshot <vmname> | Remove-VMSavedState<br>Remove-VMSavedState <vmname></vmname></vmname>
121+
```powershell
122+
Get-VMSnapshot <vmname> | Remove-VMSavedState<br>Remove-VMSavedState <vmname></vmname></vmname>
123+
```
124+
125+
## Cause 4: Permissions, security, and driver problems
126+
127+
- Permissions issues restrict the Hyper-V service account from accessing VM files or folders.
128+
- Antivirus or third-party filter drivers interfere with Hyper-V, blocking file access or causing merge failures.
129+
- Outdated or misconfigured storage or network drivers lead to connectivity loss or failover events.
120130

121-
### D. Permission and security configuration
131+
### Resolution: Permission and security configuration
122132

123133
1. Ensure the Hyper-V service account has full control over VM files and folders.
124-
2. Apply antivirus exclusions as per Microsofts Hyper-V documentation.
134+
2. Apply antivirus exclusions as per Microsoft's Hyper-V documentation.
125135
3. Identify and unload problematic filter drivers:
126136

127-
fltmc
128-
fltmc unload <drivername></drivername>
137+
```console
138+
fltmc
139+
fltmc unload <drivername></drivername>
140+
```
129141

130-
### E. Cluster and network remediation
142+
## Cause 5: Cluster, network, and failover issues
143+
144+
- CSV or network communication failures, such as cluster node isolation, result in mass VM failovers or reboots.
145+
- Improper cluster configurations or inconsistent patching across nodes cause instability.
146+
- Live migration or failover failures occur due to insufficient memory, incompatible settings, or node misconfigurations.
147+
148+
### Resolution: Cluster and network remediation
131149

132150
1. Validate cluster health and configuration using the cluster validation wizard or:
133151

134-
Test-Cluster
135-
2. Resolve network issues by reviewing Event IDs (e.g., 5120, 1135) and adjusting parameters:
152+
```powershell
153+
Test-Cluster
154+
```
155+
156+
2. Resolve network issues by reviewing Event IDs (for example, 5120, 1135) and adjusting parameters:
157+
158+
```powershell
159+
(Get-Cluster).SameSubnetThreshold = <value></value>
160+
```
136161

137-
(Get-Cluster).SameSubnetThreshold = <value></value>
138162
3. Ensure consistent patching and proper network/storage configurations across nodes.
139163

140-
### F. VM configuration repairs and rebuilds
164+
### Resolution: VM configuration repairs and rebuilds
141165

142-
1. For corrupt configuration files, edit the .VMCX file or create a new VM with existing disks.
166+
1. For corrupt configuration files, edit the `.VMCX` file or create a new VM with existing disks.
143167
2. Address saved state or checkpoint issues by removing invalid checkpoints or reattaching disks.
144168

145-
### G. Escalation and bug reference
169+
## Escalation and bug reference
146170

147-
1. If known bugs or product defects are involved (e.g., UEFI firmware bugs or cluster communication issues), review vendor advisories and apply recommended updates or fixes.
171+
If known bugs or product defects are involved (for example, UEFI firmware bugs or cluster communication issues), review vendor advisories and apply recommended updates or fixes.
148172

149173
## Data collection
150174

151175
Gather the following logs and diagnostics to assist with troubleshooting:
152176

153177
- Hyper-V event logs:
154178

155-
Get-WinEvent -LogName Microsoft-Windows-Hyper-V-VMMS-Admin | Export-Csv -Path <unc path></unc>
179+
```powershell
180+
Get-WinEvent -LogName Microsoft-Windows-Hyper-V-VMMS-Admin | Export-Csv -Path <unc path></unc>
181+
```
182+
156183
- Cluster logs:
157184

158-
Get-ClusterLog -UseLocalTime -Destination <folder></folder>
185+
```powershell
186+
Get-ClusterLog -UseLocalTime -Destination <folder></folder>
187+
```
188+
159189
- Process dumps for stuck services:
160190

161-
procdump -ma <pid> <output_path></output_path></pid>
191+
```console
192+
procdump -ma <pid> <output_path></output_path></pid>
193+
```
162194

163195
## References
164196

165-
For additional details, consult the following resources:
166-
167-
- [Hyper-V performance tuning guide](https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v)
168-
- [Failover cluster troubleshooting](https://learn.microsoft.com/en-us/windows-server/failover-clustering)
197+
- [Hyper-V performance tuning guide](/windows-server/virtualization/hyper-v)
198+
- [Failover cluster troubleshooting](/windows-server/failover-clustering)

0 commit comments

Comments
 (0)