Windows 10 周年更新后出现 Vagrant up 错误

Vagrant up error after Windows 10 Anniversary Update

我在 windows 10 周年更新后尝试 vagrant up,但出现错误:

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'scotch/box' is up to date...
==> default: Resuming suspended VM...
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "5c441fcf-c08f-4adb-8318-532107a81da3", "--type",     "headless"]

Stderr: VBoxManage.exe: error: Nonexistent host networking interface, name 'VirtualBox Host-Only Ethernet Adapter #2' (VERR_INTERNAL_ERROR)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

更新之前一切正常。我也尝试重新安装最新版本的 VirtualBox 和 Vagrant,但没有帮助。

感谢任何帮助。

我也遇到了同样的问题,重新安装 virtualbox 5.0 效果很好。

就像@RusalBes 一样,很遗憾没有找到 #2 适配器。因此,当适配器名称不是“#2”而不是正常的 "VirtualBox Host-Only Ethernet Adapter" 时,我在那台机器上的 VirtualBox 中进行了网络适配器设置。比我刚刚点击确定,一切正常。 :) 希望这对其他人有所帮助。

我在安装以下版本的 VirtualBox 和 Vagrant 时解决了我的问题。

  • VirtualBox 5.0.26(我有 5.0.18)
  • Vagrant 1.8.5(我保留了相同的版本)

如您所见,我只是卸载了 VirtualBox 并安装了 5.0.26,因为 Vagrant 不能与 Virtualbox 5 一起使用。1.x

此致!

我遇到了同样的问题。我尝试升级 VirtualBox 和 Vagrant。然后降级到VirtualBox 5.0,还是不行。幸运的是,我发现了 this post,这基本上表明在网络设置的 "VirtualBox Host-Only Network" 适配器属性中启用 "VirtualBoxNDIS6 Bridged Network Driver" 选项可以解决问题。之后,一切都按预期重新开始工作。

这是来自 post 的图像:

我遇到了这个问题。接受的解决方案不起作用,因为 'Host Only Adapter' 在 'Name:' 下拉列表中没有任何选项。

我通过在 vbox 网络设置中选择 'Attach to': 'Bridged Adapter' 解决了这个问题,然后 'Name:' 下拉菜单提供了 'Ethernet Adapter #2' ....