Vagrant创建虚拟机报网络创建失败
平时在本地喜欢用Vagrant+VirtualBox的方式,快速创建起虚拟机。某天,不幸运的遇到了个报错:
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "bd2ee7ac-e57b-412a-9acf-0e5ea1756d02", "--type", "headless"]
Stderr: VBoxManage.exe: error: Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter' (VERR_INTNET_FLT_IF_NOT_FOUND).
VBoxManage.exe: error: Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole
只好去看看对应的网络适配器了 HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter :
这里对应的就是我本地的以太网9了,看了下ipv4、ipv6的设置都有勾选,那应该正常,把这个适配器禁用之后,在启用就好!
本文作者:笑笑霸
本文链接:https://www.cnblogs.com/xiaoxiaobug/p/16435672.html
期待你的关注、收藏、评论,欢迎转载,请指明原文链接
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步