Vagrant 错误:缺少 VT-x/AMD-V 硬件加速

2024-01-26

我想“起”一个流浪盒子。但我收到以下错误:

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

我也尝试过盒子Debian squeeze 32 from http://vagrantbox.es http://vagrantbox.es具有相同的错误消息。

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


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

config.vm.provider :virtualbox do |vb| 
  vb.customize ["modifyvm", :id, "--hwvirtex", "off"]
end
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Vagrant 错误:缺少 VT-x/AMD-V 硬件加速 的相关文章

随机推荐