在vagrant搭建环境的时候遇到了一个错误,我在vagrant up的时候出现了一个错误
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
_Command: ["startvm" , "1eebb5c1-fba9-4940-bceb-1a90e97fb9a9", "--type","headless"]
Stderr: VBoxManage.exe: error: Not in a hypervisor partition (HVP=0)(VERR_NEM_NOT_AVAILABLE).
VBaxlManage.eXe:
error: VT-x is disabled in the BIOS for al1 CFPU modes (VERR _VTIX_ISR _ALL_YILX_DISABLED)BOxManage.exe: error: Details: code E_FAIL(0x80004005),component Conso1elrap,interface IConsole
解决方法:
注意到
意思是我在BIOS中没有开启VMX,所以我重启电脑,进入BIOS中,打开了()VMX,重启后,再次vagrant up,就一切正常了~