Skip to content

Commit f173b70

Browse files
author
Simonx Xu
authored
Merge pull request #9634 from v-lianna/CI_6877
AB#6877 Create hyper-v-installation-configuration-operational-failure.md
2 parents 6e5eb9c + cf7ea03 commit f173b70

File tree

2 files changed

+237
-0
lines changed

2 files changed

+237
-0
lines changed

support/windows-server/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2772,6 +2772,8 @@ items:
27722772
href: ./virtualization/support-and-installation-instructions-for-amd-epyc-9004-series-server-processors.md
27732773
- name: Support Policy for NIC Teaming with Hyper-V
27742774
href: ./virtualization/support-policy-nic-teaming.md
2775+
- name: Troubleshoot Hyper-V installation, configuration, and operational failures
2776+
href: ./virtualization/hyper-v-installation-configuration-operational-failure.md
27752777
- name: Upgrade computers with Hyper-V role installed
27762778
href: ./virtualization/upgrade-computers-hyper-v-role.md
27772779
- name: Windows Server 2019 Hyper-V host minroot behavior
Lines changed: 235 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,235 @@
1+
---
2+
title: Troubleshoot Hyper-V Installation, Configuration, and Operational Failures
3+
description: Provides a comprehensive guide for diagnosing and resolving common installation, configuration, and operational issues related to Microsoft Hyper-V in both Windows Server and Windows client environments.
4+
ms.date: 09/04/2025
5+
manager: dcscontentpm
6+
audience: itpro
7+
ms.topic: troubleshooting
8+
ms.reviewer: kaushika, jeffhugh, v-lianna
9+
ms.custom:
10+
- sap:virtualization and hyper-v\installation and configuration of hyper-v
11+
- pcy:WinComm Storage High Avail
12+
---
13+
# Troubleshoot Hyper-V installation, configuration, and operational failures
14+
15+
This article provides a comprehensive guide for diagnosing and resolving common installation, configuration, and operational issues related to Microsoft Hyper-V in both Windows Server and Windows client environments. Hyper-V issues can arise during feature installation, virtual machine (VM) management, cluster creation, networking, or service startup, often impacting mission-critical workloads, and high availability configurations. Quickly identifying and addressing these problems is critical to maintaining business continuity, VM uptime, and cluster stability.
16+
17+
You might encounter one or more of the following issues:
18+
19+
- [Installation and configuration failures](#installation-and-configuration-failures)
20+
- [Cluster and live migration issues](#cluster-and-live-migration-issues)
21+
- [VM operations and Hyper-V Manager issues](#vm-operations-and-hyper-v-manager-issues)
22+
- [Networking and storage issues](#networking-and-storage-issues)
23+
- [Other technical and security symptoms](#other-technical-and-security-symptoms)
24+
25+
## Installation and configuration failures
26+
27+
- Error messages:
28+
- > The request to add or remove features on the specified server has failed.
29+
- > Hyper-V feature unknown.
30+
- CBS (Component-Based Servicing) logs: "ERROR_SXS_ASSEMBLY_MISSING."
31+
- Hyper-V role isn't visible after installation or server reboot.
32+
- Windows Management Instrumentation (WMI)-related errors:
33+
- > Error CSI 000000b5 (F) Logged (install online) $(runtime.System32)\WindowsVirtualization.V2.mof [gle=0x80004005].
34+
- > Error CSI 000000b6 (F) CMIADAPTER: Inner Error Message (0x1002): 0X80041002 Class, instance, or property CIM_RegisteredProfile was not found.
35+
- MSinfo32 fails to open; WMI queries fail.
36+
37+
## Cluster and live migration issues
38+
39+
- Error messages:
40+
- > Failed to access remote registry on \<hostname\>. Ensure that the remote registry service is running, and remote administration is enabled.
41+
- > The virtual machine cannot be live migrated to the destination host because the hardware on the destination computer isn't compatible...
42+
- > The credentials supplied to the package were not recognized (0x8009030D).
43+
- Cluster validation fails or is abnormally slow.
44+
- Cluster shared volumes appear as RAW or are inaccessible from noncluster nodes.
45+
46+
## VM operations and Hyper-V Manager issues
47+
48+
- VM fails to start error message:
49+
50+
> Virtual machine failed to start due to insufficient memory.
51+
- VM is stuck in a "saved state" or unable to boot after host upgrade/reboot.
52+
- Virtual Machine Management Service (VMMS) fails to start.
53+
- Error message:
54+
55+
> An error occurred while Hyper-V was attempting to access an object on the computer.
56+
- Error message when Hyper-V Manager can't connect:
57+
58+
> The WinRM client cannot process the request...
59+
- Enhanced Session Mode is unavailable in audit mode.
60+
61+
## Networking and storage issues
62+
63+
- Network adapters are disabled after Hyper-V installation; no IP address is assigned, or IPv4 is unchecked.
64+
- VM can't obtain an IP address or communicate with the network.
65+
- Hyper-V virtual switch is stuck in an "unidentified" state.
66+
- VLAN tagging issues—only the native VLAN works.
67+
68+
## Other technical and security symptoms
69+
70+
- Unexpected VM MAC address changes or conflicts after reboot.
71+
- Port reservation conflicts (for example, Transmission Control Protocol (TCP) ports 50000–50059) blocking application use after enabling Hyper-V.
72+
- Frequent Service Principal Name (SPN) registration failures: Event ID 14050 from Microsoft-Windows-Hyper-V-VMMS.
73+
- WMI repository corruption and inability to install or use Hyper-V features.
74+
75+
The root causes vary depending on the symptom category:
76+
77+
[!INCLUDE [Registry important alert](../../includes/registry-important-alert.md)]
78+
79+
## Cause 1: Installation and feature enablement issues
80+
81+
- Missing or corrupt CBS packages: Logged as "ERROR_SXS_ASSEMBLY_MISSING" in CBS logs. Registry permissions related to CBS packages might be incorrect or incomplete.
82+
- Unsupported operating system (OS) edition or hardware: Hyper-V is unavailable on Windows Home editions or unsupported CPUs. Incompatible hardware can also lead to boot failures.
83+
- Corrupt WMI repository: WMI subsystem errors disrupt feature installation and system information retrieval.
84+
- BIOS/UEFI misconfiguration: Virtualization features aren't enabled in BIOS/UEFI settings.
85+
86+
### Resolution
87+
88+
1. Fix CBS package and registry issues:
89+
90+
1. Grant full control permissions to all users on the following registry key:
91+
92+
`HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages`
93+
2. Run a PowerShell script to reset package states:
94+
95+
```powershell
96+
$name = "CurrentState"
97+
$check = (get-childitem -Path HKLM:\software\microsoft\windows\currentversion\component based servicing\packages -Recurse).Name
98+
foreach ($check1 in $check) {
99+
if ((Get-ItemProperty -Path $check1).$name -eq 0x50 -or (Get-ItemProperty -Path $check1).$name -eq 0x40) {
100+
Set-ItemProperty -Path $check1 -Name $name -Value 0
101+
}
102+
}
103+
```
104+
105+
3. Enable Hyper-V features using Deployment Image Servicing and Management (DISM):
106+
107+
```console
108+
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /All
109+
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-Management-Clients
110+
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-Management-PowerShell
111+
```
112+
113+
4. Ensure you're using a supported OS edition, such as Windows Pro, Enterprise, or Education.
114+
2. Repair the WMI repository:
115+
116+
- Open Command Prompt as Administrator and run:
117+
118+
```console
119+
winmgmt /resetrepository
120+
winmgmt /verifyrepository
121+
winmgmt /salvagerepository
122+
cd %windir%\system32\wbem
123+
for /f %s in ('dir /b \*.mof') do mofcomp %s
124+
for /f %s in ('dir /b \*.mfl') do mofcomp %s
125+
```
126+
127+
3. Update BIOS/UEFI configuration:
128+
129+
- Enable Intel VT-x or AMD-V features in the BIOS/UEFI settings.
130+
- For Trusted Platform Module (TPM) support, ensure all required options are configured.
131+
132+
## Cause 2: Cluster and VM migration failures
133+
134+
- Missing registry keys for cryptography or TLS/SSL: Missing keys such as `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Cryptography\Configuration\Local\SSL\00010002` block authentication and secure connections.
135+
- Processor or hardware incompatibility: Live migration fails if VM state relies on CPU features unavailable on the destination host.
136+
- Kerberos or delegation misconfiguration: Lack of Kerberos authentication or constrained delegation in Active Directory prevents live migration.
137+
- Cluster database corruption: Errors during third-party software upgrades or outages can corrupt cluster databases.
138+
139+
### Resolution
140+
141+
1. Restore cryptography configuration:
142+
143+
1. Export the missing registry key from a working server:
144+
145+
`HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Cryptography\Configuration\Local\SSL\00010002`
146+
2. Import the key to the affected server and reboot.
147+
2. Enable Kerberos and delegation for live migration:
148+
149+
1. In Hyper-V Manager, go to **Settings** > **Live Migrations** > **Advanced Features** and select **Use Kerberos**.
150+
2. Configure delegation in Active Directory by adding Common Internet File System (CIFS) and Microsoft Virtual System Migration Service for partner hosts.
151+
3. Address CPU compatibility:
152+
153+
1. Perform a quick migration to align VM state with the new host.
154+
2. Validate CPU features across cluster nodes.
155+
156+
## Cause 3: VM operations, networking, and storage
157+
158+
- Disabled or misconfigured network adapter properties: IPv4 might be unchecked or virtual switches improperly configured.
159+
- Improper VLAN or network interface card (NIC) teaming setup: VLAN tagging might be misapplied or inconsistent with the physical switch configuration.
160+
- Disk or storage corruption: Corruption or hardware failure results in VM inaccessibility.
161+
- Port reservation conflicts: Hyper-V reserves high TCP ports that might conflict with application requirements.
162+
163+
### Resolution
164+
165+
- Re-enable network adapters:
166+
167+
1. In Device Manager, enable IPv4 on the affected network adapter.
168+
2. Use PowerShell:
169+
170+
```powershell
171+
Enable-NetAdapter -Name "<adaptername>"
172+
Enable-NetAdapterBinding -Name "<adaptername>" -ComponentID ms_tcpip
173+
```
174+
175+
- Fix virtual switch or VLAN tagging issues:
176+
177+
Modify virtual switches using PowerShell:
178+
179+
```powershell
180+
New-VMSwitch -Name "SET" -NetAdapterName "<adaptername>" -EnableEmbeddedTeaming $true
181+
Set-VMNetworkAdapterVlan -VMName "<vmname>" -Access -VlanId <vlan_id>
182+
```
183+
184+
- Resolve disk issues:
185+
186+
Use `DiskPart` to clear the read-only attribute:
187+
188+
```console
189+
diskpart
190+
list disk
191+
select disk <disk number>
192+
attributes disk clear readonly
193+
```
194+
195+
- Address port reservation conflicts:
196+
197+
Reserve application-required ports before enabling Hyper-V:
198+
199+
```console
200+
netsh int ipv4 delete excludedportrange protocol=tcp <startport> <numberofports>
201+
```
202+
203+
## Cause 4: Permissions, security, and system services
204+
205+
- Incorrect file or folder permissions: Insufficient permissions for Hyper-V or "NT VIRTUAL MACHINE\Virtual Machines" can block access to VM folders.
206+
- Service account deletion: Deletion of SQL Server or System Center Virtual Machine Manager (SCVMM) accounts can prevent services from starting.
207+
- SPN registration failures: Missing or misconfigured SPNs disrupt Kerberos authentication.
208+
209+
### Resolution
210+
211+
- Correct file and folder permissions:
212+
213+
Ensure full access for "Administrators," "Hyper-V Administrators," and "NT VIRTUAL MACHINE\Virtual Machines" on VM folders and VHDs.
214+
- Restore service accounts:
215+
216+
If service accounts are deleted, assign a new owner to the database and restart the associated service.
217+
- Fix SPN registration failures:
218+
219+
Review cluster configuration settings, and ensure all required SPNs are registered.
220+
221+
## Cause 5: Known bugs and product defects
222+
223+
- World Wide Port Name (WWPN) generator bug: Registry values out of range cause VMMS service to fail.
224+
- **MsMpEng.exe** or NTFS deadlock bug: A bug in Microsoft Defender causes deadlocks with NTFS transactional metadata.
225+
- Cluster creation and Key Management Service (KMS) activation defects: Internal product bugs might affect cluster operations and license activation.
226+
227+
### Resolution
228+
229+
- WWPN generator bug:
230+
231+
Edit the `NextWWPN` registry value to align with the defined range and restart the Hyper-V/VMMS service.
232+
233+
- Cluster creation and KMS activation defects:
234+
235+
Escalate unresolved issues to [Microsoft Support](https://support.microsoft.com/) with logs and configuration details.

0 commit comments

Comments
 (0)