在VMware Workstation 裡安裝 Windows Server 2012 R2 Datacenter Edition 試用版 虛擬機
安裝完成後,再進行安裝 Hyper-V,會得到
Hyper-V can not be installed: The hypervisor is already running.
這個錯誤訊息。
請先將 VMware Workstation 的 VM Guest 關機,並關掉VMware Workstation,然後找到 VM Guest 目錄中的 .vmx 檔案,內容增加以下三行設定
hypervisor.cpuid.v0 = "FALSE" mce.enable = "TRUE" vhv.enable = "TRUE" |
然後再次執行 VMware Workstation,並在 VM 的 CPU 選項勾選
Virtualize Intel VT-x/EPT or AMD-V/RVI Virtualize CPU performance counters |
並啟動 VM Guest
開機完成後,登入Windows Server ,執行 Powershell
在 PowerShell 裡執行以下命令,即可進行安裝 Hyper-V
Enable-WindowsOptionalFeature –Online -FeatureName Microsoft-Hyper-V –All –NoRestart Install-WindowsFeature RSAT-Hyper-V-Tools –IncludeAllSubFeature Install-WindowsFeature RSAT-Clustering –IncludeAllSubFeature Install-WindowsFeature Multipath-IO Restart-Computer |
重新開機之後,就可以執行 Hyper-V Manager 了