進入高架模式下運行PowerShell的(以管理員身份運行) 和工作站運行
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All
停止工作站並轉到設置/處理器/虛擬化引擎並設置:
- 首選模式:二進制翻譯自動
- 禁用加速:未選中
- 虛擬化的英特爾VT-x/EPT或AMD-V/RVI:檢查
- 虛擬化CPU性能計數器:檢查
開始工作站並運行lusrmgr.msc
並檢查您的帳戶是否位於Hyper-V Administratiors組中
檢入HV主機服務和Hyper-V虛擬機管理已啓動並正在運行的服務。
如果Error 31: A device attached to the system is not functioning
按照here的步驟操作。
The fix is:
- Shut down Workstation.
- Open the registry (Start > Run > regedit).
- Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\hcmon.
- Create a new key called Parameters.
- In Parameters, create a new DWORD value entry named DisableDriverCheck, and then set the value to 1.
- Reboot
Appears this issue is for Windows 7 host. The fix worked on the few I tried.
如果錯誤31仍然顯示在升高的模式工作站命令提示符下運行(運行作爲管理員),然後鍵入
bcdedit /set "{current}" hypervisorlaunchtype auto
,然後重新啓動工作站。
再次檢查HV主機服務和Hyper-V虛擬機管理已啓動並正在運行的服務。
轉到網絡和共享中心/更改適配器設置以及禁用和重新啓用與名稱的所有適配器:vEthernet(內置以太網端口的Windows Phone模擬器內部開關)
而且現在你應該運行模擬器。 ..;)
是Windows日誌文件給什麼,尋找線索有更多的條目? – lokusking
@lokusking,你的意思是事件日誌?無法看到任何附註 – Benjol
[Some stuff](https://social.technet.microsoft.com/Forums/de-DE/396c882f-2cc8-4bc8-804d-eec75c0b8066/virtual-machine-could-not-be - 因爲管理程序不在運行?forum = winserverhyperv)在你沒有閱讀它的情況下閱讀。和[更多內容](https://technet.microsoft.com/en-us/windows-server-docs/compute/hyper-v/best-practices-analyzer/windows-hypervisor-must-be-running) – lokusking