You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Troubleshooting Guide: Hyper-V Virtual Machine Live Migration
13
+
# Troubleshooting guide: Hyper-V virtual machine live migration
14
14
15
-
## Introduction
15
+
Live migration in Hyper-V allows virtual machines (VMs) to be moved between hosts with minimal downtime—a critical feature for high availability and maintenance in Windows Server environments. Despite its capabilities, live migration can fail due to a wide array of factors—hardware incompatibility, authentication, network configuration, VM settings, and storage problems. Properly diagnosing and resolving live migration failures is vital for business continuity, especially in clustered and production settings. This guide provides a comprehensive troubleshooting process, detailed solutions for common migration issues, structured data collection procedures, and quick reference resources.
16
16
17
-
Live Migration in Hyper-V allows virtual machines (VMs) to be moved between hosts with minimal downtime—a critical feature for high availability and maintenance in Windows Server environments. Despite its capabilities, Live Migration can fail due to a wide array of factors—hardware incompatibility, authentication, network configuration, VM settings, and storage problems. Properly diagnosing and resolving Live Migration failures is vital for business continuity, especially in clustered and production settings. This guide provides a comprehensive troubleshooting process, detailed solutions for common migration issues, structured data collection procedures, and quick reference resources.
18
-
19
-
## Troubleshooting Checklist
17
+
## Troubleshooting checklist
20
18
21
19
Use this checklist as a step-wise process before and during troubleshooting:
22
-
1.**Baseline Health Checks** - Confirm VM integration services are up-to-date.
20
+
21
+
1. Baseline health checks
22
+
23
+
- Confirm VM integration services are up-to-date.
23
24
- Ensure all hosts are fully patched and running supported Windows Server versions.
24
-
- Confirm the VM is in a supported state for migration (not in Backing Up, Stopping, etc.).
- Configure constrained delegation in AD: - Computer Properties > Delegation tab > Trust this computer for delegation to specified services only > Add cifs and Microsoft Virtual System Migration Service.
87
-
- Register missing SPNs: setspn -s Microsoft Virtual System Migration Service/<FQDN> <ComputerName>
88
-
- Purge old Kerberos tickets:KLIST PURGE -li 0x3e7
- Configure constrained delegation in AD: **Computer Properties** > **Delegation** tab > **Trust this computer for delegation to specified services only** > **Add cifs and Microsoft Virtual System Migration Service**.
120
+
- Register missing SPNs: `setspn -s Microsoft Virtual System Migration Service/<FQDN> <ComputerName>`
121
+
- Purge old Kerberos tickets: `KLIST PURGE -li 0x3e7`
122
+
123
+
## Storage or shared disk issues
124
+
125
+
Symptoms:
91
126
92
-
**Symptoms:**
93
127
- Migration fails for VMs with shared VHDX/shared disks
94
128
- Error: Shared disk missing in migration options.
95
129
96
-
**Resolution:**
97
-
- Shared virtual disks can only be used in clustered VM roles and cannot be migrated using standard methods.
130
+
### Resolution
131
+
132
+
- Shared virtual disks can only be used in clustered VM roles and can't be migrated using standard methods.
98
133
- Manually move and reattach shared disks at destination where required.
99
134
100
-
### 6. **vTPM/Shielded VM Certificate Issues**
135
+
## VTPM or shielded VM certificate issues
136
+
137
+
Symptoms:
101
138
102
-
**Symptoms:**
103
139
- Error: "The key protector for the virtual machine could not be unwrapped."
104
140
- Migration only fails for vTPM-protected VMs.
105
141
106
-
**Resolution:**
107
-
- Export Shielding/Key Protector certificates from source host and import on destination.
108
-
- Windows Certificates Snap-in (certmgr.msc) can be used.
109
-
- PowerShell: Export-PfxCertificate and Import-PfxCertificate
142
+
### Resolution
143
+
144
+
- Export shielding or key protector certificates from source host and import on destination.
145
+
- Windows certificates snap-in (**certmgr.msc**) can be used.
146
+
- PowerShell cmdlet:
147
+
148
+
```powershell
149
+
Export-PfxCertificate and Import-PfxCertificate
150
+
```
110
151
111
-
### 7. **State File/Checkpoint Problems**
152
+
##State file or checkpoint problems
112
153
113
-
**Symptoms:**
114
-
- Error: “Cannot restore this virtual machine because the saved state data cannot be read. Delete the saved state data and then try to start the virtual machine. (0xC0370027)”
115
-
- VMs stuck in “Backing up” state
154
+
Symptoms:
116
155
117
-
**Resolution:**
118
-
- In Hyper-V Manager: Select VM > Delete Saved State
119
-
- Manually delete .bin and .vsv files from VM folder if necessary.
156
+
- Error message:
157
+
158
+
> Cannot restore this virtual machine because the saved state data cannot be read. Delete the saved state data and then try to start the virtual machine. (0xC0370027)
159
+
- VMs stuck in "Backing up" state
160
+
161
+
### Resolution
162
+
163
+
- In Hyper-V Manager: Select **VM** > **Delete Saved State**.
164
+
- Manually delete `.bin` and `.vsv` files from VM folder if necessary.
120
165
- Remove or merge corrupted checkpoints.
121
166
122
-
### 8. **Cluster/Migration Limit Issues**
167
+
## Cluster or migration limit issues
168
+
169
+
Symptoms:
123
170
124
-
**Symptoms:**
125
-
- Error: “Virtual machine migration limit 1 was reached, please wait for completion of an ongoing migration operation.”
171
+
- Error message:
172
+
173
+
> Virtual machine migration limit 1 was reached, please wait for completion of an ongoing migration operation.
126
174
- VMs enter Saved state during node drain or reboot.
- PowerShell to gather live migration traces: `TSS.ps1 -CollectLog SHA_support-all -noBasicLog -noUpdate -NewSession`
211
+
- Snapshot or checkpoint chain: `Get-VHDChain -Path <PathToVHD>`
157
212
158
-
| Symptom/Error | Likely Root Cause | Resolution Summary |
213
+
## Common issues quick reference table
214
+
215
+
| Symptom or error | Likely root cause | Resolution summary |
159
216
| --- | --- | --- |
160
217
| "The VM uses processor-specific features not supported..." | CPU feature/BIOS/firmware mismatch | Enable migration compatibility; check host CPU features and BIOS |
161
218
| VM migration fails with version error | Config version mismatch | Upgrade VM config version on new host, can't migrate back to old host |
| "The server does not support WS-Management Identify operations..." | WinRM/proxy/trustedhosts misconfig | Set WinRM/trusted hosts, update hosts files, bypass proxy |
164
221
| "Cannot restore this virtual machine because the saved state data..." | Corrupt checkpoint/saved state files | Delete Saved State, remove/merge checkpoints, manually delete .bin/.vsv |
165
222
| vTPM-enabled VM fails: "The key protector... could not be unwrapped." | Certificate/Shielded VM config | Export/import key protector certificates |
@@ -170,10 +227,11 @@ Use this checklist as a step-wise process before and during troubleshooting:
170
227
| VM backs up forever, can't move/out/in "Backing up" state | Backup software lock | Restart backup service, VMMS service, or power on VM to merge checkpoints |
171
228
172
229
## References
173
-
-**WinRM and TrustedHosts Configuration:**[<u>https://learn.microsoft.com/en-us/windows/win32/winrm/installation-and-configuration-for-windows-remote-management</u>](https://learn.microsoft.com/en-us/windows/win32/winrm/installation-and-configuration-for-windows-remote-management)
174
-
-**Cluster Shared Volumes and Migration Limits:**[<u>https://learn.microsoft.com/en-us/windows-server/failover-clustering/failover-cluster-csvs</u>](https://learn.microsoft.com/en-us/windows-server/failover-clustering/failover-cluster-csvs)
- WinRM and `TrustedHosts` configuration: [Installation and configuration for Windows Remote Management](/windows/win32/winrm/installation-and-configuration-for-windows-remote-management)
- SCVMM VMware-to-Hyper-V conversion: [Convert a VMware VM to Hyper-V in the VMM fabric](/system-center/vmm/vm-convert-vmware)
176
234
177
235
## Summary
178
236
179
-
Ensuring successful Hyper-V Live Migration requires diligent configuration management—including CPU, firmware, network, authentication, storage, and permissions—across all participating hosts. By following the troubleshooting checklist, addressing known root causes as outlined in the solutions section, and using targeted data collection, most migration failures can be swiftly resolved or appropriately escalated. Staying current with patches, standardizing cluster configurations, and understanding log outputs will minimize downtime and operational risk for mission-critical virtual machine workloads.
237
+
Ensuring successful Hyper-V live migration requires diligent configuration management—including CPU, firmware, network, authentication, storage, and permissions—across all participating hosts. By following the troubleshooting checklist, addressing known root causes as outlined in the solutions section, and using targeted data collection, most migration failures can be swiftly resolved or appropriately escalated. Staying current with patches, standardizing cluster configurations, and understanding log outputs minimize downtime and operational risk for mission-critical virtual machine workloads.
0 commit comments