VBoxManage: error: Nonexistent host networking interface, name 'vboxnet0' (VERR_INTERNAL_ERROR)

来源:互联网 发布:ual研究生 留学 知乎 编辑:程序博客网 时间:2024/06/16 06:13

错误:

VBoxManage: error: Nonexistent host networking interface, name 'vboxnet0' (VERR_INTERNAL_ERROR)


原因:

原来配置的网卡发生了变更,找不到了,启动失败。


解决方法:

第一步,命令:

VBoxManage showvminfo 虚拟机名 -details -machinereadable


第二步:

在里面找关键字“vboxnet0



hostonlyadapter2="vboxnet0"

问题就是 hostonlyadapter2 设置的网卡找不到了。

修改它就好了。


第三步:

查看宿主机的网卡

ifconfig -a

选择正在使用的网卡


第四步:

修改:VBoxManage modifyvm 虚拟机名 --出错的属性 正在使用的网卡


VBoxManage modifyvm slaver1-51 --hostonlyadapter2 bond0


参考文献:https://lists.opensuse.org/opensuse/2011-12/msg01661.html