第一次配置,vagrant up 出错,具体错误以下
C:\Users\Administrator>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'centos/7' version '2004.01' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "3ee0ca4d-8f34-4107-9dbb-10c2f329704c", "--type", "headless"]
Stderr: VBoxManage.exe: error: Not in a hypervisor partition (HVP=0) (VERR_NEM_NOT_AVAILABLE).
VBoxManage.exe: error: VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole
C:\Users\Administrator>
1.解决方式一
把360卸载,在重装virtual box,无法解决
2.解决方式二
配置环境变量,无法解决
3.解决方式三
用管理员打开cmd,无法解决
4.最后,把VirtualBox-6.1.20和vagrant_2.2.15(这两个版本都是在官网下载最新的,用迅雷下载比较快)都卸载了,
换了两个旧版本
vagrant_2.2.5_x86_64
VirtualBox-6.0.12-133076-Win
问题解决