全幅廣告

2019年8月3日 星期六

Windows 10 無法開啟VT的解法

在使用安卓模擬器時,常常會出現當機或是出現不相容畫面,下載了CPU-V來使檢測也都是紅色XX。(如果是用1.22版檢測,出現二個綠V才是通過;如果是2.2版檢測,就算出現二個大大的綠V,只要下面三個子項目沒有全綠,還是不行執行)
在Windows中關閉了Hyper-v服務,也在Bios中打開了VT、VT-d(for Intel)、SVM(for AMD)但還是都呈現紅XX怎麼辦呢?
小弟也是搞了好久,終於在這個網站找到了答案。
我是用了第18號回文的解法解決的,這個方法實在太PRO了,正常人應該沒人會自己想到這樣做,不過我是做完重開機就解決了。
----以下是節錄解法---
from:https://stackoverflow.com/questions/50053255/virtualbox-raw-mode-is-unavailable-courtesy-of-hyper-v-windows-10/50784403

Disabling Device Guard or Credential Guard fixed for me:
  • click Start > Run, type gpedit.msc, and click Ok. The Local Group Policy Editor opens. Go to Local Computer Policy > Computer Configuration > Administrative Templates > System > Device Guard > Turn on Virtualization Based Security. Select Disabled.
  • Go to Control Panel > Uninstall a Program > Turn Windows features on or off to turn off Hyper-V.
Select. Do not restart.
Delete the related EFI variables by launching a command prompt on the host machine using an Administrator account and run these commands:
mountvol X: /s
copy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Y
bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi"
bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO,DISABLE-VBS 
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} device partition=X:
mountvol X: /d
Note: Ensure X is an unused drive, else change to another drive.
Restart the host. Accept the prompt on the boot screen to disable Device Guard or Credential Guard.
Source: https://kb.vmware.com/s/article/2146361

沒有留言:

張貼留言