Virtual-box 无法启动 VM VERR_INTNET_FLT_IF_NOT_FOUND

ani*_*777 3 virtualbox remote-desktop vagrant windows-10

当我运行时出现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
Run Code Online (Sandbox Code Playgroud)

我在这里找到了解决方案:https : //www.howtoforge.com/setup-a-local-wordpress-development-environment-with-vagrant/这是更新驱动程序VirtualBox Host-Only Ethernet Adapter

但问题是我远程连接到机器。所以我担心网络设置可能会丢失我的远程连接。另外,我无法重新启动机器。

按照上面链接中提到的不应该断开连接的步骤进行操作是否安全?如果没有,有什么替代方法吗?

小智 14

最近我一直在努力解决这个问题。我尝试了很多次来解决这个问题。有时我能够成功运行我的流浪机器,但我不确定我是怎么做的,因为我尝试了很多选择。但最后,我找到了解决它的方法。这非常简单和棘手。解决方案:

一旦您的终端出现此错误,只需从控制面板打开您的计算机网络适配器。选择为该虚拟框创建的适配器。只需禁用一次并再次启用。然后运行 ​​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
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明