|
| 1 | +--- |
| 2 | +title: Troubleshooting 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/01/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 | +# Troubleshooting 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 | +## Symptoms |
| 18 | + |
| 19 | +End users and system administrators may encounter one or more of the following issues: |
| 20 | + |
| 21 | +### Installation and configuration failures |
| 22 | + |
| 23 | +- Error: "The request to add or remove features on the specified server has failed." |
| 24 | +- Error: "Hyper-V功能未知" ("Hyper-V feature unknown"). |
| 25 | +- CBS (Component-Based Servicing) logs: "ERROR_SXS_ASSEMBLY_MISSING." |
| 26 | +- Hyper-V role not visible after installation or server reboot. |
| 27 | +- WMI (Windows Management Instrumentation)-related errors: |
| 28 | + - "Error CSI 000000b5 (F) Logged (install online) $(runtime.System32)\WindowsVirtualization.V2.mof [gle=0x80004005]." |
| 29 | + - "Error CSI 000000b6 (F) CMIADAPTER: Inner Error Message (0x1002): 0X80041002 Class, instance, or property CIM_RegisteredProfile was not found." |
| 30 | +- MSinfo32 fails to open; WMI queries fail. |
| 31 | + |
| 32 | +### Cluster and live migration issues |
| 33 | + |
| 34 | +- Error: "Failed to access remote registry on <hostname>. Ensure that the remote registry service is running, and remote administration is enabled."</hostname> |
| 35 | +- Error: "The virtual machine cannot be live migrated to the destination host because the hardware on the destination computer isn’t compatible..." |
| 36 | +- Error: "The credentials supplied to the package were not recognized (0x8009030D)." |
| 37 | +- Cluster validation fails or is abnormally slow. |
| 38 | +- Cluster shared volumes appear as RAW or are inaccessible from non-cluster nodes. |
| 39 | + |
| 40 | +### VM operations and Hyper-V Manager issues |
| 41 | + |
| 42 | +- VM fails to start: "Virtual machine failed to start due to insufficient memory." |
| 43 | +- VM stuck in a "saved state" or unable to boot after host upgrade/reboot. |
| 44 | +- Virtual Machine Management Service (VMMS) fails to start. |
| 45 | +- Error: "An error occurred while Hyper-V was attempting to access an object on the computer." |
| 46 | +- Hyper-V Manager cannot connect: "The WinRM client cannot process the request..." |
| 47 | +- Enhanced Session Mode unavailable in audit mode. |
| 48 | + |
| 49 | +### Networking and storage issues |
| 50 | + |
| 51 | +- Network adapters are disabled after Hyper-V installation; no IP address assigned, or IPv4 is unchecked. |
| 52 | +- VM cannot obtain an IP address or communicate with the network. |
| 53 | +- Hyper-V virtual switch stuck in an "unidentified" state. |
| 54 | +- VLAN tagging issues—only the native VLAN works. |
| 55 | + |
| 56 | +### Other technical and security symptoms |
| 57 | + |
| 58 | +- Unexpected VM MAC address changes or conflicts after reboot. |
| 59 | +- Port reservation conflicts (e.g., TCP ports 50000–50059) blocking application use after enabling Hyper-V. |
| 60 | +- Frequent SPN (Service Principal Name) registration failures: Event ID 14050 from Microsoft-Windows-Hyper-V-VMMS. |
| 61 | +- WMI repository corruption and inability to install or use Hyper-V features. |
| 62 | + |
| 63 | +## Cause |
| 64 | + |
| 65 | +The root causes vary depending on the symptom category: |
| 66 | + |
| 67 | +### Installation and feature enablement issues |
| 68 | + |
| 69 | +- **Missing or corrupt CBS packages**: Logged as "ERROR_SXS_ASSEMBLY_MISSING" in CBS logs. Registry permissions related to CBS packages may be incorrect or incomplete. |
| 70 | +- **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. |
| 71 | +- **Corrupt WMI repository**: WMI subsystem errors disrupt feature installation and system information retrieval. |
| 72 | +- **BIOS/UEFI misconfiguration**: Virtualization features are not enabled in BIOS/UEFI settings. |
| 73 | + |
| 74 | +### Cluster and VM migration failures |
| 75 | + |
| 76 | +- **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. |
| 77 | +- **Processor or hardware incompatibility**: Live migration fails if VM state relies on CPU features unavailable on the destination host. |
| 78 | +- **Kerberos or delegation misconfiguration**: Lack of Kerberos authentication or constrained delegation in Active Directory prevents live migration. |
| 79 | +- **Cluster database corruption**: Errors during third-party software upgrades or outages can corrupt cluster databases. |
| 80 | + |
| 81 | +### VM operations, networking, and storage |
| 82 | + |
| 83 | +- **Disabled or misconfigured network adapter properties**: IPv4 may be unchecked or virtual switches improperly configured. |
| 84 | +- **Improper VLAN or NIC teaming setup**: VLAN tagging may be misapplied or inconsistent with the physical switch configuration. |
| 85 | +- **Disk or storage corruption**: Corruption or hardware failure results in VM inaccessibility. |
| 86 | +- **Port reservation conflicts**: Hyper-V reserves high TCP ports that may conflict with application requirements. |
| 87 | + |
| 88 | +### Permissions, security, and system services |
| 89 | + |
| 90 | +- **Incorrect file or folder permissions**: Insufficient permissions for Hyper-V or "NT VIRTUAL MACHINE\Virtual Machines" can block access to VM folders. |
| 91 | +- **Service account deletion**: Deletion of SQL Server or SCVMM (System Center Virtual Machine Manager) accounts can prevent services from starting. |
| 92 | +- **SPN registration failures**: Missing or misconfigured SPNs disrupt Kerberos authentication. |
| 93 | + |
| 94 | +### Known bugs and product defects |
| 95 | + |
| 96 | +- **WWPN (World Wide Port Name) generator bug**: Registry values out of range cause VMMS service to fail. |
| 97 | +- **MsMpEng.exe/NTFS deadlock bug**: A bug in Microsoft Defender causes deadlocks with NTFS transactional metadata. |
| 98 | +- **Cluster creation and KMS (Key Management Service) activation defects**: Internal product bugs may affect cluster operations and license activation. |
| 99 | + |
| 100 | +## Resolution |
| 101 | + |
| 102 | +### Installation and feature enablement issues |
| 103 | + |
| 104 | +1. **Fix CBS package and registry issues**: |
| 105 | + |
| 106 | + - Grant full control permissions to all users on the following registry key: |
| 107 | + |
| 108 | + HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages |
| 109 | + - Run a PowerShell script to reset package states: |
| 110 | + |
| 111 | + $name = "CurrentState" |
| 112 | +$check = (get-childitem -Path HKLM:\software\microsoft\windows\currentversion\component based servicing\packages -Recurse).Name |
| 113 | +foreach ($check1 in $check) { |
| 114 | +if ((Get-ItemProperty -Path $check1).$name -eq 0x50 -or (Get-ItemProperty -Path $check1).$name -eq 0x40) { |
| 115 | + Set-ItemProperty -Path $check1 -Name $name -Value 0 |
| 116 | +} |
| 117 | +} |
| 118 | + - Enable Hyper-V features using Deployment Image Servicing and Management (DISM): |
| 119 | + |
| 120 | + Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /All |
| 121 | +Dism /online /enable-feature /featurename:Microsoft-Hyper-V-Management-Clients |
| 122 | +Dism /online /enable-feature /featurename:Microsoft-Hyper-V-Management-PowerShell |
| 123 | + - Ensure you are using a supported OS edition, such as Windows Pro, Enterprise, or Education. |
| 124 | +2. **Repair the WMI repository**: |
| 125 | + |
| 126 | + - Open Command Prompt as Administrator and run: |
| 127 | + |
| 128 | + winmgmt /resetrepository |
| 129 | +winmgmt /verifyrepository |
| 130 | +winmgmt /salvagerepository |
| 131 | +cd %windir%\system32\wbem |
| 132 | +for /f %s in ('dir /b \*.mof') do mofcomp %s |
| 133 | +for /f %s in ('dir /b \*.mfl') do mofcomp %s |
| 134 | +3. **Update BIOS/UEFI configuration**: |
| 135 | + |
| 136 | + - Enable Intel VT-x or AMD-V features in the BIOS/UEFI settings. |
| 137 | + - For Trusted Platform Module (TPM) support, ensure all required options are configured. |
| 138 | + |
| 139 | +### Cluster and VM migration failures |
| 140 | + |
| 141 | +1. **Restore cryptography configuration**: |
| 142 | + |
| 143 | + - Export the missing registry key from a working server: |
| 144 | + |
| 145 | + HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Cryptography\Configuration\Local\SSL\00010002 |
| 146 | + - Import the key to the affected server and reboot. |
| 147 | +2. **Enable Kerberos and delegation for live migration**: |
| 148 | + |
| 149 | + - In Hyper-V Manager, go to **Settings > Live Migrations > Advanced Features** and select **Use Kerberos**. |
| 150 | + - Configure delegation in Active Directory by adding cifs and Microsoft Virtual System Migration Service for partner hosts. |
| 151 | +3. **Address CPU compatibility**: |
| 152 | + |
| 153 | + - Perform a quick migration to align VM state with the new host. |
| 154 | + - Validate CPU features across cluster nodes. |
| 155 | + |
| 156 | +### VM operations, networking, and storage |
| 157 | + |
| 158 | +1. **Re-enable network adapters**: |
| 159 | + |
| 160 | + - In Device Manager, enable IPv4 on the affected network adapter. |
| 161 | + - Use PowerShell: |
| 162 | + |
| 163 | + Enable-NetAdapter -Name "<adaptername>"<br>Enable-NetAdapterBinding -Name "<adaptername>" -ComponentID ms_tcpip</adaptername></adaptername> |
| 164 | +2. **Fix virtual switch or VLAN tagging issues**: |
| 165 | + |
| 166 | + - Modify virtual switches using PowerShell: |
| 167 | + |
| 168 | + New-VMSwitch -Name "SET" -NetAdapterName "<adaptername>" -EnableEmbeddedTeaming $true<br>Set-VMNetworkAdapterVlan -VMName "<vmname>" -Access -VlanId <vlan_id></vlan_id></vmname></adaptername> |
| 169 | +3. **Resolve disk issues**: |
| 170 | + |
| 171 | + - Use DiskPart to clear the read-only attribute: |
| 172 | + |
| 173 | + diskpart |
| 174 | +list disk |
| 175 | +select disk <disk number><br>attributes disk clear readonly</disk> |
| 176 | +4. **Address port reservation conflicts**: |
| 177 | + |
| 178 | + - Reserve application-required ports before enabling Hyper-V: |
| 179 | + |
| 180 | + netsh int ipv4 delete excludedportrange protocol=tcp <startport> <numberofports></numberofports></startport> |
| 181 | + |
| 182 | +### Permissions, security, and system services |
| 183 | + |
| 184 | +1. **Correct file and folder permissions**: |
| 185 | + |
| 186 | + - Ensure full access for "Administrators," "Hyper-V Administrators," and "NT VIRTUAL MACHINE\Virtual Machines" on VM folders and VHDs. |
| 187 | +2. **Restore service accounts**: |
| 188 | + |
| 189 | + - If service accounts are deleted, assign a new owner to the database and restart the associated service. |
| 190 | +3. **Fix SPN registration failures**: |
| 191 | + |
| 192 | + - Review cluster configuration settings and ensure all required SPNs are registered. |
| 193 | + |
| 194 | +### Known bugs and product defects |
| 195 | + |
| 196 | +1. **MsMpEng.exe/NTFS deadlock bug**: |
| 197 | + |
| 198 | + - Refer to the bug documentation: [MsMpEng.exe/NTFS Deadlock](https://microsoft.visualstudio.com/OS/_workitems/edit/55817624). |
| 199 | +2. **WWPN generator bug**: |
| 200 | + |
| 201 | + - Edit the NextWWPN registry value to align with the defined range and restart the Hyper-V/VMMS service. |
| 202 | +3. **Cluster creation and KMS activation defects**: |
| 203 | + |
| 204 | + - Escalate unresolved issues to Microsoft support with logs and configuration details. |
| 205 | + |
| 206 | +## References |
| 207 | + |
| 208 | +- [Administrative roles in Hyper-V](https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/administrative-roles-in-hyper-v) |
| 209 | +- [Hyper-V port usage documentation](https://learn.microsoft.com/en-us/windows-server/networking/manage-reserved-ports) |
| 210 | +- [Microsoft support for Hyper-V](https://support.microsoft.com/) |
0 commit comments