当我跑 vagrant up
我收到这个错误
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "3ae7b70c-8ea1-417a-ab67-99aef96624f8", "--type", "headless"]
Stderr: VBoxManage.exe: error: Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #2' (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
我在这里找到了解决方案:https://www.howtoforge.com/setup-a-local-wordpress-development-environment-with-vagrant/也就是更新
VirtualBox Host-Only Ethernet Adapter
的驱动但问题是我远程连接到机器。所以我担心网络设置可能会丢失我的远程连接。另外,我无法重新启动机器。
按照上面链接中提到的不会断开连接的步骤操作是否安全?如果没有,有什么替代方法吗?
最佳答案
最近我一直在努力解决这个问题。我尝试了很多次来解决这个问题。有时我能够成功运行我的 Vagrant 机器,但我不确定我是怎么做的,因为我尝试了很多选择。但最后,我找到了解决它的方法。这非常简单和棘手。
解决方案:
一旦您的终端出现此错误,只需从控制面板打开您的计算机网络适配器。选择为该虚拟框创建的适配器。只需禁用一次并再次启用。然后运行 vagrant up 命令。就是这样。问题消失了。
- Start --> Network status --> Change adaptor options --> (select the Ethernet adaptor - In my case it is Ethernet4)
- Right click --> Disable and right click --> Enable
- vagrant up
关于windows-10 - Virtual-box 无法启动 VM VERR_INTNET_FLT_IF_NOT_FOUND,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61213871/