gpt4 book ai didi

vagrant 'hostonlyif' 创建不工作

转载 作者:行者123 更新时间:2023-12-02 04:14:30 25 4
gpt4 key购买 nike

我试图在一个盒子上进行 vagrant up,但出现以下错误。

INFO interface: error: There was an error executing the following command with VBoxManage: ["hostonlyif", "create"]

在 VAGRANT_LOG 上执行 INFO 时,我得到

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',但这会给出一条错误消息,指出应将其设置为 '仅主机'。如何修复这个错误?

主机正在运行 archlinux,我使用的是最新版本的 vagrant 和 virtualbox。

最佳答案

试试这个:sudo modprobe vboxnetadp

就我而言,它有效

关于vagrant 'hostonlyif' 创建不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14404777/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com