开启和禁用hyper-v

开启和禁用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

转载

https://blog.csdn.net/ai_xm/article/details/104874220

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×