開啓和禁用hyper-v

Hyper-V會和Vmware,VirtualBox產生衝突,hyper-v和Vmware等只能開啓一個。使用vmware產品時必須禁用hyper-v,使用hyper-v時必須開啓hyper-v,否則在bios裏已經啓用了虛擬硬件並開啓了hyper-v組件啓動Docker時也會提示:Hardware assisted virtualization and data execution protection must be enabled in the BIOS

禁掉 Hyper-V

管理員模式運行 CMD:

//To disable:
bcdedit /set hypervisorlaunchtype off

開啓Hyper-V

//To enable:
bcdedit /set hypervisorlaunchtype auto

附贈一條開啓hyper-v組件的命令:

dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All

參考文章
docker desktop : Hardware assisted virtualization and data execution protection must be enabled
如何 禁掉 Hyper-V && 如何解決禁不掉 Hyper-V 的問題

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章