VirtualBox启动报错(VERR_NEM_MISSING_KERNEL_API_2)和Docker启动报错(Hardware assisted virtualization and data execution protection must be enabled in the BIOS)

1.VirtualBox中新建的虚拟机无法启动,报一下错误:

VMMRO_DO_NEM_INIT_VM failed:

VERR_NEM_MISSING_KERNEL_API_2

VT-x is not available (VERR_VMX_NO_VMX).

2.解决办法 

使用管理员打开cmd  输入命令:bcdedit

查看hypervisorlaunchtype是否为auto,如果是则执行命令:bcdedit /set hypervisorlaunchtype off

重启电脑

3.执行上面命令后虚拟机可以正常启动,后来发下Docker启动报错:

Hardware assisted virtualization and data execution protection must be enabled in the BIOS

  

说明Docker和Virtual Box虚拟机之间的设置有冲突。只能根据实际情况切换hypervisorlaunchtype的值为auto或者off

 

posted @ 2022-04-11 18:18  广林  阅读(267)  评论(0编辑  收藏  举报