我刚刚在计算机上重新安装了操作系统 Windows 10。以前,我可以使用完全相同的操作系统映像毫无问题地使用 Hyper-V,但现在却无法使用。
我创建了一个空虚拟机,只有虚拟磁盘和默认选项。当我尝试启动它时,我收到以下错误消息:
An error occurred while attempting to start the selected virtual machine(s).
'test' failed to start.
'test' could not initialize.
没有关于发生什么问题的详细信息。我使用以下命令检查了日志:
Get-WinEvent -FilterHashTable @{LogName ="Microsoft-Windows-Hyper-V*"; StartTime = (Get-Date).AddMinutes(-10); }
但它没有提供任何有用的信息:
ProviderName: Microsoft-Windows-Hyper-V-VMMS
TimeCreated Id LevelDisplayName Message
----------- -- ---------------- -------
02/11/2017 14:25:13 15130 Error 'test' failed to start. (Virtual machine ID 56728BA4-4F7C-4581-90DA-E1DC131DB2C4)
02/11/2017 14:25:13 12514 Information Found a certificate for server authentication. Remote access to virtual machines is now possible.
02/11/2017 14:25:13 12514 Information Found a certificate for server authentication. Remote access to virtual machines is now possible.
02/11/2017 14:25:13 12514 Information Found a certificate for server authentication. Remote access to virtual machines is now possible.
02/11/2017 14:25:13 12514 Information Found a certificate for server authentication. Remote access to virtual machines is now possible.
02/11/2017 14:25:13 12514 Information Found a certificate for server authentication. Remote access to virtual machines is now possible.
ProviderName: Microsoft-Windows-Hyper-V-Worker
TimeCreated Id LevelDisplayName Message
----------- -- ---------------- -------
02/11/2017 14:25:13 3040 Error 'test' could not initialize. (Virtual machine ID 56728BA4-4F7C-4581-90DA-E1DC131DB2C4)
ProviderName: Microsoft-Windows-Hyper-V-VMMS
TimeCreated Id LevelDisplayName Message
----------- -- ---------------- -------
02/11/2017 14:21:28 15130 Error 'test' failed to start. (Virtual machine ID 56728BA4-4F7C-4581-90DA-E1DC131DB2C4)
02/11/2017 14:21:28 12514 Information Found a certificate for server authentication. Remote access to virtual machines is now possible.
02/11/2017 14:21:28 12514 Information Found a certificate for server authentication. Remote access to virtual machines is now possible.
02/11/2017 14:21:28 12514 Information Found a certificate for server authentication. Remote access to virtual machines is now possible.
02/11/2017 14:21:28 12514 Information Found a certificate for server authentication. Remote access to virtual machines is now possible.
02/11/2017 14:21:28 12514 Information Found a certificate for server authentication. Remote access to virtual machines is now possible.
ProviderName: Microsoft-Windows-Hyper-V-Worker
TimeCreated Id LevelDisplayName Message
----------- -- ---------------- -------
02/11/2017 14:21:28 3040 Error 'test' could not initialize. (Virtual machine ID 56728BA4-4F7C-4581-90DA-E1DC131DB2C4)
ProviderName: Microsoft-Windows-Hyper-V-VMMS
TimeCreated Id LevelDisplayName Message
----------- -- ---------------- -------
02/11/2017 14:21:21 27311 Information The system successfully created 'D:\Hyper-V\test.vhdx'.
02/11/2017 14:21:20 27310 Information The system is creating 'D:\Hyper-V\test.vhdx'.
02/11/2017 14:21:19 13002 Information A new virtual machine 'test' was created. (Virtual machine ID 56728BA4-4F7C-4581-90DA-E1DC131DB2C4)
02/11/2017 14:21:19 18304 Information The virtual machine 'test' was realized. (VMID 56728BA4-4F7C-4581-90DA-E1DC131DB2C4).
0
BIOS 设置自重新安装以来没有改变,所以它们应该是正确的。我已经检查过了,虚拟化已启用。
我已经尝试卸载 Hyper-V 并重新安装它,重新启动了无数次,重置了文件系统权限,但都没有任何帮助。
我该如何修复此问题?
答案1
也许 Hypervisor “忘记”自动启动,您可以尝试在提升的命令提示符中使用以下命令:
BCDEDIT /Set {current} hypervisorlaunchtype auto
答案2
在我的情况下,(Windows 10 Pro 上的 Hyper V)VM 出现故障,因为没有为其分配网络适配器。一旦我为其分配了一个网络适配器,系统就会正常启动。如果您是 Hyper-V 新手,请按照以下步骤进行配置。
- 关闭虚拟机后,转到
Settings
(不是 Hyper-V 设置)。通常可以通过右键单击窗格中的虚拟机来执行此操作Virtual Machines
。 - 选择
Network Adapter
- 在顶部的详细信息窗格中,在
Virtual Switch
下拉菜单中选择Default Switch
。 - 不要忘记单击
Apply
确认您的更改,一切就绪。