Skip to content

Commit a83974a

Browse files
author
Simonx Xu
authored
Merge pull request #9545 from v-lianna/CI_6856
AB#6856 Create hyper-v-virtual-machine-input-migration-integration.md
2 parents 6a77876 + d6baffe commit a83974a

File tree

2 files changed

+227
-0
lines changed

2 files changed

+227
-0
lines changed

support/windows-server/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2778,6 +2778,8 @@ items:
27782778
href: ./virtualization/degraded-integration-services-message.md
27792779
- name: Hyper-V Time Synchronization doesn't adjust the VM system clock
27802780
href: ./virtualization/virtual-machine-time-not-synced.md
2781+
- name: Hyper-V virtual machine input, migration, and device integration issues
2782+
href: ./virtualization/hyper-v-virtual-machine-input-migration-integration.md
27812783
- name: Troubleshoot Linux virtual machine issues on Hyper-V
27822784
href: ./virtualization/linux-virtual-machine-issue-hyper-v.md
27832785
- name: Unknown devices in Device manager
Lines changed: 225 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,225 @@
1+
---
2+
title: Troubleshoot Hyper-V Virtual Machine Input, Migration, and Device Integration Issues
3+
description: Provides a comprehensive guide to troubleshoot common issues with Hyper-V virtual machines (VMs).
4+
ms.date: 09/01/2025
5+
manager: dcscontentpm
6+
audience: itpro
7+
ms.topic: troubleshooting
8+
ms.reviewer: kaushika, jeffhuge, v-lianna
9+
ms.custom:
10+
- sap:virtualization and hyper-v\integration components
11+
- pcy:WinComm Storage High Avail
12+
---
13+
# Troubleshoot Hyper-V virtual machine input, migration, and device integration issues
14+
15+
This article provides a comprehensive guide to troubleshoot common issues encountered with Hyper-V virtual machines (VMs). It focuses on resolving problems related to device integration (such as mouse, keyboard, graphics processing unit (GPU), or USB), migration, and enhanced session mode. These issues might arise following platform upgrades, changes in cluster configurations, or migrations from other hypervisors, like VMware. Addressing these problems is critical to maintaining VM usability, ensuring network connectivity, and supporting business operations.
16+
17+
## End-user symptoms
18+
19+
- Mouse movements appear inverted vertically in Linux guest VMs after upgrading to Windows 11.
20+
- Mouse and keyboard become unresponsive in Windows 11 VMs when using Enhanced Session Mode.
21+
- Failure to perform live migration of VMs with Trusted Platform Module (TPM) enabled.
22+
- VMs assigned to virtual local area networks (VLANs) lose network connectivity.
23+
- Inability to connect USB devices or GPU cards to VMs after migration from VMware.
24+
- VMs experience frequent, random reboots or unexpected connectivity loss to business applications.
25+
26+
## Technical/system symptoms
27+
28+
- Error messages:
29+
30+
- > Failed to remove checkpoint. (Virtual machine ID …)
31+
- > Virtual machine failed to generate VHD tree: Catastrophic failure (0x8000FFFF)
32+
- > Cannot delete checkpoint: Catastrophic failure (0x8000FFFF)
33+
- > The system cannot find the file specified.
34+
35+
- Event IDs:
36+
37+
- Event ID 1069 (Failover Clustering): Cluster resource failure.
38+
- Event ID 41 (Kernel-Power): System rebooted without a clean shutdown.
39+
- Event ID 18502 (Hyper-V-Worker): VM was turned off.
40+
- Event ID 3056 (Hyper-V-Worker): NUMA topology mismatch warning.
41+
- Event ID 1106 (Hyper-V VMMS): Access violation (c0000005) during live migration.
42+
43+
- Reliability Monitor shows repeated System Center Virtual Machine Manager (SCVMM) agent crashes.
44+
- Inability to uninstall VMware Tools after migration to Hyper-V.
45+
- VMs hang or become unresponsive, with high CPU usage by services like Windows Management Instrumentation (WMI) or Local Security Authority Subsystem Service (LSASS).
46+
- Hyper-V Manager displays orphaned checkpoints that block backups.
47+
48+
## Cause 1: Input and device integration failures
49+
50+
- Operating system (OS) or hypervisor compatibility: Upgrading the host OS (for example, to Windows 11, version 24H2) might introduce changes in Hyper-V integration services, leading to input inversion or loss, especially in non-Windows guest VMs.
51+
- Enhanced Session Mode: Protocol or driver issues might disrupt input device functionality within Enhanced Session Mode on Windows 11 VMs.
52+
- Migration from VMware: Incomplete or incompatible removal of VMware Tools or differences in device passthrough (for example, USB or GPU) between VMware and Hyper-V might cause connectivity and performance problems.
53+
54+
### Resolution: Input and device integration issues
55+
56+
#### Mouse or keyboard issues in guest VMs
57+
58+
For inverted mouse input in Linux guest VMs on Windows 11, version 24H2, revert the host OS to Windows 11, version 23H2 until a permanent fix is available.
59+
60+
To resolve Enhanced Session Mode input loss in Windows 11 VMs, follow these steps:
61+
62+
1. Open **Hyper-V Manager**.
63+
2. Navigate to **Hyper-V Settings** > **Enhanced Session Mode Policy**.
64+
3. Uncheck **Allow enhanced session mode** to disable the feature.
65+
4. Test input functionality in standard session mode.
66+
67+
#### USB or GPU passthrough after VMware migration
68+
69+
- USB devices:
70+
71+
- Use Remote Desktop USB redirection or Enhanced Session Mode for supported OSs.
72+
- Alternatively, configure a network USB solution as Hyper-V doesn't natively support direct USB passthrough.
73+
74+
- GPU assignment:
75+
76+
- Follow guidance from [Deploying graphics devices using Discrete Device Assignment (DDA)](/windows-server/virtualization/hyper-v/deploy/deploying-graphics-devices-using-dda#configure-the-vm-for-dda).
77+
- Confirm hardware, drivers, and VM configuration support for DDA.
78+
79+
#### Uninstalling VMware tools
80+
81+
Use PowerShell scripts, like **Uninstall-VMwareTools.ps1** from GitHub, to forcibly remove VMware tools and associated services after migration.
82+
83+
## Cause 2: Migration and cluster failures
84+
85+
- TPM/shielded VM certificate misconfiguration: Missing or improperly transferred shielding certificates can prevent live migration for TPM-enabled VMs.
86+
- VLAN/network configuration: Physical switch port misconfigurations or legacy network teaming setups might isolate VMs after VLAN assignment.
87+
- VM configuration version: Outdated VM configuration versions might be incompatible with newer Hyper-V hosts, leading to migration failures.
88+
- Heartbeat integration: High CPU usage, resource exhaustion, or application hangs within VMs might trigger cluster heartbeat failures, resulting in forced restarts.
89+
90+
### Resolution: Migration and cluster issues
91+
92+
#### TPM/shielded VM migration failures
93+
94+
1. On the source node, list shielded VM certificates by using the following command:
95+
96+
```console
97+
bashcertutil -store "Shielded VM Local Certificates"
98+
```
99+
100+
2. Export encryption and signing certificates by using the following commands:
101+
102+
```console
103+
certutil -exportPFX -p <password> "Shielded VM Local Certificates" <SerialNumber> c:\cert-VMEncryption.pfx
104+
certutil -exportPFX -p <password> "Shielded VM Local Certificates" <SerialNumber> c:\cert-VMSigning.pfx
105+
```
106+
107+
3. Import certificates on the target node by using the following command:
108+
109+
```console
110+
bashcertutil -importPFX "Shielded VM Local Certificates" c:\cert-VMEncryption.pfxcertutil -importPFX "Shielded VM Local Certificates" c:\cert-VMSigning.pfx
111+
```
112+
113+
#### VLAN/network connectivity
114+
115+
- Configure physical switch ports as trunk ports to allow all VLANs.
116+
- Replace legacy LBFO (Load Balancing and Failover) teams with Switch Embedded Teaming (SET) for physical NICs.
117+
- Assign VLAN IDs and verify connectivity for each physical interface.
118+
119+
#### VM configuration version
120+
121+
Update the VM configuration by using the following cmdlet:
122+
123+
```powershell
124+
Update-VMVersion -Name <VMName>
125+
```
126+
127+
After the update, test live migration. If issues persist, shut down the VM, perform a quick migration, and then restart.
128+
129+
#### Cluster/heartbeat-related reboots
130+
131+
If VMs are rebooted due to heartbeat failures, follow these steps:
132+
133+
1. Disable the Heartbeat Integration Service for affected VMs:
134+
1. Go to **VM settings > Integration Services**.
135+
2. Uncheck **Heartbeat**.
136+
2. Monitor VM stability. If high CPU usage (for example, by WMI or LSASS) is detected, investigate resource usage.
137+
3. Collect memory dumps for analysis by using the following command:
138+
139+
```console
140+
-Name -InjectNonMaskableInterrupt -Force
141+
```
142+
143+
## Cause 3: File system and storage issues
144+
145+
- Orphaned checkpoints: Incomplete merge operations can leave behind phantom checkpoint files, blocking backups or checkpoint deletions.
146+
- File system corruption: Issues with storage or the file system might disrupt checkpoint removal or VHD chain updates.
147+
148+
### Resolution: File system, storage, and checkpoint failures
149+
150+
#### Orphaned/phantom checkpoints
151+
152+
1. Create a new checkpoint for the affected VM.
153+
2. Export the latest checkpoint to a safe location.
154+
3. Delete the VM from Hyper-V Manager.
155+
4. Import the VM back into Hyper-V using the restore option. For clusters, remove the VM from the cluster, re-create it with the same configuration, attach the existing VHD/VHDX, and add it back to the cluster.
156+
5. Inspect checkpoints using PowerShell:
157+
158+
```powershell
159+
Get-VM -Name <VMName> | Get-VMSnapshot
160+
Get-VHDChain -Path <path-to-vhdx>
161+
```
162+
163+
6. Use tools like Process Monitor (procmon) to trace file access and verify system integrity.
164+
165+
## Cause 4: Application-level and third-party integration
166+
167+
Monitoring/agent crashes: Third-party monitoring or agent software (such as SCVMM or Zenoss) might fail due to changes in Hyper-V or Windows Server. These failures often occur without a direct impact unless associated with failed operations.
168+
169+
### Resolution: Application-level and third-party integration issues
170+
171+
If monitoring or agent integration fails:
172+
173+
- Verify WMI and WINRM configurations on hosts.
174+
- Review application logs for authentication errors, such as GSS challenge failures.
175+
- If Hyper-V and WMI are functional, escalate to the third-party vendor for further support.
176+
177+
## General remediation and prevention
178+
179+
- Apply the latest Windows updates and cluster patches.
180+
- Regularly monitor storage infrastructure to prevent file system corruption.
181+
- Maintain up-to-date documentation of VM configurations, certificates, and network settings.
182+
- For security vulnerabilities, ensure correct revocation policies and registry settings by using the following command:
183+
184+
```console
185+
bashSet-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\DeviceGuard" -Name EnableVirtualizationBasedSecurity -Value 0 -Type DWordRestart-Computer
186+
```
187+
188+
## Data collection
189+
190+
To collect logs and information:
191+
192+
- Cluster and event logs: Gather TSS logs, Performance Monitor data, and Event Viewer logs (Hyper-V-VMMS, Hyper-V-Worker, System, Application).
193+
- VM configuration:
194+
195+
```powershell
196+
Update-VMVersion -Name <VMName>
197+
```
198+
199+
- Snapshot/checkpoint inspection:
200+
201+
```powershell
202+
Get-VM -Name <VMName> | Get-VMSnapshot
203+
Get-VHDChain -Path <path-to-vhdx>
204+
```
205+
206+
- Certificate management:
207+
208+
```console
209+
certutil -store "Shielded VM Local Certificates"
210+
certutil -exportPFX ...
211+
certutil -importPFX ...
212+
```
213+
214+
- Memory dump collection:
215+
216+
```powershell
217+
Debug-VM -Name <VMName> -InjectNonMaskableInterrupt -Force
218+
```
219+
220+
- Process/file system monitoring: Use Process Monitor (procmon) to track errors.
221+
222+
## References
223+
224+
- [Deploy graphics devices using DDA](/windows-server/virtualization/hyper-v/deploy/deploying-graphics-devices-using-dda#configure-the-vm-for-dda)
225+
- Check Microsoft advisories for relevant updates and patches.

0 commit comments

Comments
 (0)