Skip to content

Commit a20d5bd

Browse files
authored
AB#6863: Create Troubleshooting Guide: Hyper-V Virtual Machine Creation (#9988)
* Create troubleshoot-hyper-v-virtual-machine-creation.md * Update troubleshoot-hyper-v-virtual-machine-creation.md * Add third-party contact disclaimer section Added a disclaimer regarding third-party contact information. * Change 'Introduction' to 'Summary' in documentation Updated the section title from 'Introduction' to 'Summary' for clarity.
1 parent 9cb5ee9 commit a20d5bd

File tree

1 file changed

+281
-0
lines changed

1 file changed

+281
-0
lines changed
Lines changed: 281 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,281 @@
1+
---
2+
title: Troubleshoot Hyper-V Virtual Machine Creation
3+
description: Provides steps, recommendations, and fixes to resolve problems in using VMs in Microsoft Hyper-V environments.
4+
ms.date: 10/08/2025
5+
manager: dcscontentpm
6+
audience: itpro
7+
ms.topic: troubleshooting
8+
ms.reviewer: kaushika
9+
ms.custom:
10+
- sap:Virtualization and Hyper-V\Virtual machine creation
11+
- pcy:WinComm Storage High Avail
12+
appliesto:
13+
- <a href=https://learn.microsoft.com/windows/release-health/windows-server-release-info target=_blank>Supported versions of Windows Server</a>
14+
---
15+
16+
# Troubleshoot Hyper-V virtual machine creation
17+
18+
## Summary
19+
20+
This article provides a comprehensive set of steps, recommendations, and fixes to help resolve problems in creating, importing, and starting virtual machines (VMs) in Microsoft Hyper-V environments. Hyper-V is a critical server role for virtualization, but it can fail because of file system, permissions, configuration, network, driver, licensing, and hardware issues. These issues can create service outages, data availability impacts, and failed disaster recovery scenarios. This article is designed to help administrators troubleshoot, collect relevant diagnostic information, and apply proven solutions for the most common failure modes.
21+
22+
## Troubleshooting checklist
23+
24+
Use this checklist for systematic troubleshooting:
25+
26+
- Verify that VM and host OS are supported on the current Hyper-V version.
27+
- Check for the latest Windows Server and Hyper-V updates and hotfixes.
28+
- Verify VM configuration settings (generation, network, disk, resources).
29+
- Review file system permissions and ownership on VM configuration folders.
30+
- Make sure that Group Policy settings for Hyper-V and NT VM accounts and service are configured.
31+
- Inspect the registry keys that are relevant to Hyper-V operation (especially for permission issues).
32+
- Validate hardware settings in BIOS/UEFI (virtualization and execute disable features).
33+
- Check for failed or stuck checkpoints and snapshots and orphaned AVHD files.
34+
- Review VM disks and network adapters for misconfiguration or driver issues.
35+
- Query event logs (Windows and Event Viewer) and VM logs for error details.
36+
- Verify licensing compliance and edition entitlements.
37+
- For clusters, run validation reports and examine cluster and infrastructure logs.
38+
- Collect recent minidump files for system failures (blue screens).
39+
- If you're using templates, verify template configuration for disk names, SIDs, and unique identifiers.
40+
- Check for conflicts with backup, antivirus, or third-party drivers and software.
41+
42+
## Common issues and solutions
43+
44+
The following sections detail the most common failure modes and provide step-by-step solutions.
45+
46+
### File system and permission issues
47+
48+
#### Symptoms
49+
50+
- VM import fails, config files missing, "Permissions Denied" error.
51+
52+
#### Resolution
53+
54+
- Compare and correct NTFS permissions on the VM directory. Make sure that SYSTEM, Administrators, Hyper-V groups have full control.
55+
- Set ownership to Administrators or SYSTEM, enable inheritance, and propagate permissions.
56+
- Retry import/export operation.
57+
58+
### Registry Permission Errors
59+
60+
#### Symptoms
61+
62+
- Dynamic network address assignment fails, "No available MAC address", "ACCESS DENIED" events.
63+
64+
#### Resolution
65+
66+
- Export the following registry subkey from a working host:
67+
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\Worker
68+
- Import the subkey to the affected server, set vmwp.exe or SYSTEM account to Full Control.
69+
- Use Registry Editor for permission changes, and test importing or starting the VM.
70+
71+
### Group Policy, cluster, and service account misconfiguration
72+
73+
#### Symptoms
74+
75+
- VM isn't created or doesn't start: "Logon failure: the user has not been granted the requested logon type."
76+
77+
#### Resolution
78+
79+
- In Group Policy Editor (gpedit.msc), make sure that "NT Virtual Machines" and cluster service accounts have:
80+
- "Access this computer from the network"
81+
- "Create symbolic links"
82+
- "Log on as a service"
83+
- Run gpupdate /force. Restart cluster nodes, if it's required.
84+
85+
### Virtual switch or network adapter issues
86+
87+
#### Symptoms
88+
89+
- VM has no network connectivity
90+
- Virtual switch creation fails
91+
- Network driver errors
92+
93+
#### Resolution
94+
95+
- Check and re-create virtual switch in Hyper-V Manager.
96+
- Update all relevant network drivers (especially for third-party platforms).
97+
- Use Get-VMNetworkAdapter -VMName \<VMName> to review adapter status.
98+
99+
### Checkpoint and Snapshot Chain Errors
100+
101+
#### Symptoms
102+
103+
- VM reverts to old snapshot after failure or maintenance.
104+
105+
#### Resolution
106+
107+
- Review VM storage for orphaned or missing .avhdx files.
108+
- Merge or delete unused checkpoints through Hyper-V Manager.
109+
- Avoid manual file moves or renames.
110+
111+
### Cluster and failover issues
112+
113+
#### Symptoms
114+
115+
- VMs exists in cluster manager but is missing in Hyper-V.
116+
- Validation and report failures.
117+
118+
#### Resolution
119+
120+
- Refresh or synchronize cluster configuration.
121+
- Resolve storage issues that are identified in the cluster validation report.
122+
- Remove stale VM references from cluster manager.
123+
124+
### Hypervisor/BIOS/UEFI setting
125+
126+
#### Symptoms
127+
128+
- "Virtual machine could not start because the hypervisor is not running."
129+
130+
#### Resolution
131+
132+
- Enable virtualization (VT-x/AMD-V) and Execute Disable/NX in BIOS/UEFI.
133+
- Run bcdedit /set hypervisorlaunchtype auto.
134+
- Restart the host.
135+
136+
### OS, update, and software driver problems
137+
138+
#### Symptoms
139+
140+
- VMs fail after updates, stuck update service, system failures (blue screen)
141+
142+
#### Resolution
143+
144+
- Run sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth.
145+
- Clear C:\Windows\SoftwareDistribution cache after stopping the update service.
146+
- For blue screens, analyze minidump files by using BlueScreenView, and update problematic third-party drivers (for example, airlock and Crowdstrike).
147+
- Reinstall the Hyper-V role, if it's necessary.
148+
149+
### Resource overcommitment
150+
151+
#### Symptoms
152+
153+
- Performance and availability issues.
154+
- Users try to block CPU or memory overallocation.
155+
156+
#### Resolution
157+
158+
- Educate users that Hyper-V allows overcommitment by design.
159+
- Use CPU groups or allocation controls for partial restriction.
160+
- Monitor system health and resource usage proactively.
161+
162+
### Licensing Issues
163+
164+
#### Symptoms
165+
166+
- VM count exceeds license.
167+
- Confusion over core or socket entitlements.
168+
169+
#### Resolution
170+
171+
- Standard: License all physical cores for up to two VMs per host.
172+
- Datacenter: Unlimited VMs per host when fully licensed.
173+
- Direct licensing questions to Microsoft sales or account team for scenario validation.
174+
175+
### Import/export failures from network shares
176+
177+
#### Symptoms
178+
179+
- "Hyper-V did not find virtual machines to import from location...permission errors."
180+
181+
#### Resolution
182+
183+
- Copy export folder locally to core server, and use direct PowerShell import:
184+
185+
```powershell
186+
Import-VM -Path \<VMPath> -Copy -GenerateNewId -VhdDestinationPath \<CSVLocation> -VirtualMachinePath \<ConfigPath>
187+
```
188+
189+
### Template and disk naming conflicts
190+
191+
#### Symptoms
192+
193+
- New VMs share disk names. This condition causes confusion in bulk deployments.
194+
195+
#### Resolution
196+
197+
- Use post-deployment commands to rename disks without shutting down the VM, or adjust template settings to allow unique disk naming.
198+
199+
### Blue screen when modifying the VM page file or creating a VM
200+
201+
#### Symptoms
202+
203+
- System fails after you move a page file or during VM creation, especially on Windows 11.
204+
205+
#### Resolution
206+
207+
- Set the memory dump file to "complete," collect a minidump file after a failure, analyze using BlueScreenView.
208+
- Update all third-party drivers that are associated with storage or paging.
209+
210+
### Unsupported OS/VM generation mismatches
211+
212+
#### Symptoms
213+
214+
- Can't start a new VM.
215+
- VM fails after conversion or installation.
216+
217+
#### Resolution
218+
219+
- Make sure that the guest OS is supported on the host (for example, Windows Server 2025 on Hyper-V 2022, not 2019).
220+
- Use a tool to convert the disk between Gen1 and Gen2. Verify that the disk partition type matches the VM generation.
221+
222+
## Common issues quick reference table
223+
224+
| Symptom | Error message or event ID | Root cause | Solution | Tool or log |
225+
| --- | --- | --- | --- | --- |
226+
| Import/Export Fails, Permissions Denied | "Could not locate VM config," "Permission Denied" | Directory/ownership issue | Fix NTFS, set ownership/inheritance, add groups | File system, Procmon |
227+
| Dynamic MAC/Network Assign Fails | "No available MAC," "ACCESS DENIED" | Registry permission | Grant vmwp.exe full control, import working reg key | Registry Editor |
228+
| VM Fails to Start, Logon Failure | 0x80070569 | GPO/group policy misconfig | Set rights in GPO, gpupdate/force, restart nodes | gpedit.msc |
229+
| VM Can't Start, Hypervisor Not Running | "Hypervisor not running" | BIOS/UEFI not set | Enable VT-x/NX/XD, check BIOS, run bcdedit command | BIOS, bcdedit |
230+
| VM Reverts to Old Checkpoint after Maintenance | n/a | Orphaned .avhdx files | Merge/delete old checkpoints, clean up chain | Hyper-V Manager |
231+
| Cluster, Failover Issues | "Validation failed," missing VMs | Storage/service misconfig | Cluster validation, fix storage, refresh/sync cluster config | FCM, validation logs |
232+
| Network/Switch Setup Problems | No connectivity, adapter install fails | Driver/switch misconfig | Update network drivers, recreate switches, use Get-VMNetworkAdapter | Hyper-V, PowerShell |
233+
| VM Creation Crashes/BSOD | BSOD, MiniDump generated | Faulty third-party driver | Analyze dump, update driver, full memory dump | BlueScreenView |
234+
| VM Disks Named Identically from Template | n/a | Template naming convention | Post-deploy disk rename, template change | PowerShell, Hyper-V |
235+
| Licensing/Resource Restrictions | License exceeded, core/socket doubts | Misunderstood licensing | License all cores, check edition, refer to sales/account team | N/A |
236+
| Import via Network Share Fails | "Location not found," perms error | Path/resolution or perms issue | Local copy, use direct PowerShell import | PowerShell |
237+
| OS/Gen Conversion/Install Fails | VM start fails, disk not recognized | Unsupported config | Verify OS support, correct VM generation, disk partition type | Hyper-V, conversion |
238+
| Page file move blue screen | Blue screen after changing page file location | Driver conflict | Analyze minidump, update storage driver | BlueScreenView |
239+
240+
## Data collection
241+
242+
Before you contact Microsoft Support, you can gather the following information about your issue.
243+
244+
- **System and storage event logs** (eventvwr.msc, filter for disk/storage-related IDs)
245+
- **MPIO configuration and status:**
246+
247+
```console
248+
mpclaim -s -d
249+
mpclaim -v
250+
```
251+
- **Hardware/driver/firmware version info**
252+
- **Device Manager screenshots (all storage and DSMs)**
253+
- **Perfmon or Storport traces**:
254+
255+
```console
256+
logman create counter PerfLog -o C:\PerfLog.blg -f bincirc ...
257+
logman create trace storport -ow -o \<output path> -p \<provider>
258+
```
259+
- **Cluster logs:** Get-ClusterLog -Node \<NodeName> -TimeSpan 3
260+
- **DiskPart:**
261+
262+
```console
263+
diskpart
264+
list disk
265+
list volume
266+
san
267+
```
268+
- **TSS or WPR logs** for IO, storage, failover, VSS issues
269+
- **Vendor log collection tool, as advised**
270+
271+
## References
272+
273+
- [Hyper-V Best Practices Analyzer](/windows-server/virtualization/hyper-v/best-practices-analyzer/best-practices-analyzer-for-hyper-v)
274+
- [Hyper-V Import/Export](/windows-server/virtualization/hyper-v/deploy/export-and-import-virtual-machines?tabs=hyper-v-manager)
275+
- [Windows Server licensing guide](/windows-server/get-started/editions-comparison)
276+
- [Troubleshooting cluster validation Reports](/troubleshoot/windows-server/high-availability/validate-hardware-failover-cluster)
277+
- [BlueScreenView tool](https://www.nirsoft.net/utils/blue_screen_view.html)
278+
279+
**Third-party contact disclaimer**
280+
281+
Microsoft provides third-party contact information to help you find additional information about this topic. This contact information may change without notice. Microsoft does not guarantee the accuracy of third-party contact information.

0 commit comments

Comments
 (0)