第一次配置,vagrant up 出错

第一次配置,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

 

问题解决

 

 

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值