vagrant 'hostonlyif' 创建不起作用 [英] vagrant 'hostonlyif' create not working
问题描述
我试图在一个盒子上做一个流浪汉,但出现以下错误.
I'm trying to do a vagrant up on a box, and I get the following error.
INFO 界面:错误:使用 VBoxManage 执行以下命令时出错:["hostonlyif", "创建"]
INFO interface: error: There was an error executing the following command with VBoxManage: ["hostonlyif", "create"]
在 VAGRANT_LOG 上做 INFO 时,我得到
When doing an INFO on the VAGRANT_LOG, I get
ERROR vagrant: /opt/vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/driver/virtualbox_base.rb:278:in `block in execute'
/opt/vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/util/retryable.rb:14:in `retryable'
/opt/vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/driver/virtualbox_base.rb:268:in `execute'
/opt/vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/driver/virtualbox_4_2.rb:61:in `create_host_only_network'
/opt/vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/action/vm/network.rb:276:in `create_hostonly_network'
/opt/vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/action/vm/network.rb:229:in `hostonly_adapter'
/opt/vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/action/vm/network.rb:36:in `block in call'
/opt/vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/action/vm/network.rb:31:in `each'
/opt/vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/action/vm/network.rb:31:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/action/warden.rb:33:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/action/vm/clear_network_interfaces.rb:26:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/action/warden.rb:33:in `call'
我已经尝试将 vagrantfile 中的 'hostonly'
替换为 'hostonlyif'
,但这给出了一条错误消息,指出它应该设置为 'hostonly'
.我该如何解决这个错误?
I've tried putting replacing the 'hostonly'
in the vagrantfile to 'hostonlyif'
, but that gives an error message saying that it should be set to 'hostonly'
. How do I fix this erro?
主机运行的是archlinux,我使用的是最新版本的vagrant和virtualbox.
The host machine is running archlinux, and I'm using the latest versions of vagrant and virtualbox.
推荐答案
试试这个:须藤 modprobe vboxnetadp
try with this: sudo modprobe vboxnetadp
在我的情况下它有效
这篇关于vagrant 'hostonlyif' 创建不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!