流浪汉'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
在我看来,它可行
这篇关于流浪汉'hostonlyif'创建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!