Vagrant 错误:缺少 VT-x/AMD-V 硬件加速 [英] Vagrant error: VT-x/AMD-V hardware acceleration is missing

查看:27
本文介绍了Vagrant 错误:缺少 VT-x/AMD-V 硬件加速的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想打开"一个流浪盒子.但我收到以下错误:

I want to "up" a vagrant box. But I get the following error:

VT-x/AMD-V hardware acceleration is not available on your system. Your 64-bit guest will fail to detect a 64-bit CPU and will not be able to boot.

我的处理器:

# lshw -class processor
  *-cpu                   
       description: CPU
       product: Intel(R) Pentium(R) 4 CPU 3.20GHz
       vendor: Intel Corp.
       physical id: 4
       bus info: cpu@0
       version: Intel(R) Pentium(R) 4 CPU
       slot: U23
       size: 3200MHz
       capacity: 3200MHz
       width: 64 bits
       capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx x86-64 constant_tsc pebs bts nopl pni dtes64 monitor ds_cpl cid cx16 xtpr lahf_lm

我还尝试了 http://vagrantbox.es 中的 Box Debian 挤压 32同样的错误信息.

I also tried the Box Debian squeeze 32 from http://vagrantbox.es with the same error message.

我可以尝试使用 vagrant 做什么?

What can I try to use vagrant?

推荐答案

如果您的 CPU 不支持 VT-x,那么您将无法运行来宾 64 位操作系统.如果 32 位来宾操作系统仍然没有以 vagrant up 启动,那么您应该在 Vagrantfile 中指定以下内容,以便为您的虚拟机关闭硬件虚拟化:

If your CPU does not support VT-x, then you cannot run a guest 64 bit operating system. If a 32 bit guest OS still does not start with vagrant up, then you should specify the following in your Vagrantfile in order to turn hardware virtualization off for your vm:

config.vm.provider :virtualbox do |vb| 
  vb.customize ["modifyvm", :id, "--hwvirtex", "off"]
end

这篇关于Vagrant 错误:缺少 VT-x/AMD-V 硬件加速的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆