新版Windows 10或者安裝了新的更新以后,VirtualBox虛擬機就不能用了。
原因是WIndows10里面有個叫Virtualization-base security的安全機制打開了。
關掉的步驟如下
1.檢查"Virtualization-base security"是否運行
Run msinfo32 can view the item “Virtualization-base security” is running。
2.禁止Device Guard
gpedit.msc | Administrative templates | system | Device Guard
3.刪除幾個注冊表記錄
If you used Group Policy, disable the Group Policy setting that you used to enable Windows Defender Credential Guard (Computer Configuration -> Administrative Templates -> System -> Device Guard -> Turn on Virtualization Based Security).
Delete the following registry settings:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\LSA\LsaCfgFlags
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceGuard\LsaCfgFlags
If you also wish to disable virtualization-based security delete the following registry settings:
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceGuard\EnableVirtualizationBasedSecurity
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceGuard\RequirePlatformSecurityFeatures
4.PowerShell運行DG_Readiness工具Disable
DG_Readiness_Tool_v3.6.ps1 -Disable -AutoReboot
5.重啟以后會有2次文本界面分別提示按F3關掉“Virtualization-base security” 和 “Device Guard”
按照提示按F3關掉就好了。
主要參考資料