Hyper-V是微軟的一款虛擬化技術,是微軟第一個採用相似Vmware和Citrix開源Xen同樣的基於hypervisor的技術。shell
在Windows 10的powershell命令裏,輸入以下的命令行:Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -Allwindows
遇到以下錯誤信息:命令行
Enable-WindowsOptionalFeature : Enable-WindowsOptionalFeature failed. Error code = 0x800f0831code
Microsoft-Hyper-V Error code = 0x800f0831ci
At line:1 char:1it
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V ...io
CategoryInfo : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMExceptionfile
FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand二維碼
再試試第二個命令行:im
dism /online /enable-feature /featurename:microsoft-hyper-v-all /All
仍是遇到錯誤碼0x800f0831:
The DISM log file can be found at C:WINDOWSLogsDISMdism.log
解決辦法是,進入Windows 10的控制面板,在Turn windows features on or off裏先安裝.NET Framework:
以後就能安裝Hyper-V了。
要獲取更多Jerry的原創技術文章,請關注公衆號"汪子熙"或者掃描下面二維碼: