open/create Windows10 上的内部网络 Vagrant 失败

Failed to open/create the internal network Vagrant on Windows10

我昨天将 Windows 10 升级到最后一次更新,现在,当我启动 vagrant up 命令时,出现此错误:

==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'poweroff' state. Please verify everything is configured
properly and try again.

If the provider you're using has a GUI that comes with it,
it is often helpful to open that and watch the machine, since the
GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run `vagrant up` while the
VirtualBox GUI is open.

The primary issue for this error is that the provider you're using
is not properly configured. This is very rarely a Vagrant issue.

当我尝试使用 GUI 时出现此错误:

Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter' (VERR_INTNET_FLT_IF_NOT_FOUND).
Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND).

我已经重新安装了 VirtualBox 5.0.10 和扩展包, 重新配置 Host-Only 以太网适配器,但总是出现相同的错误...

有什么想法吗?

我找到了解决方案

  1. 打开Windows网络连接
  2. 右键单击创建的 VirtualBox Host only 适配器
  3. 选择属性
  4. 勾选"VirtualBox NDIS6 Bridged Networking driver"
  5. 禁用和启用适配器

新的 NDIS6 驱动程序存在一个已知问题,您可以安装它以使用 NDIS5 驱动程序

尝试使用参数重新安装它(运行 以管理员身份

> VirtualBox-5.0.11-104101-Win.exe -msiparams NETWORKTYPE=NDIS5

这对我有用。

更新:较新的版本使得从安装向导中选择 NDIS 驱动程序变得更加容易 - 只需在询问时选择 NDIS5

参考:https://www.virtualbox.org/manual/ch02.html#install-win-performing

这两个答案并没有解决我的问题,但是结合它们,我能够解决问题。 我的情况是我试图在 Windows 7 电脑上安装 运行 Docker 并不断收到错误消息: "Looks like something went wrong... Press any key to continue..."

经过大量挖掘,我能够将问题与 Docker 创建的主机网络适配器联系起来。 我安装了 NDIS6 驱动程序,但它已启用。我尝试取消选中、禁用、重新选中、启用等,但没有帮助。

然后我卸载了 VB 并按照第一个答案重新安装以获取 NDIS5 驱动程序。 这是未经检查的,所以检查它我能够解决这个问题。

卸载 Virtualbox 并安装最新版本,在回答这个问题时它是 5.12。我安装了自动安装 Virtualbox 5.10 的 Vag运行t。我 运行 在安装 Windows 1511 更新、卸载 Vag运行t 提供的 Virtualbox 并安装最新版本后解决了这个问题。

我有 Windows 8.1 并且在使用 VirtualBox 5.0.16.105871 时遇到了这个问题。我尝试了在这里、虚拟盒子网站和其他论坛上找到的所有建议。 None 对我有用。尝试使用仅主机接口启动 VM 时出现此错误:

Failed to open a session for the virtual machine LinuxVMDev0.

Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter' (VERR_INTNET_FLT_IF_NOT_FOUND).

Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND).

Result Code: E_FAIL (0x80004005)
Component: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

最后唯一对我有用的解决方案是:

  1. 卸载 5.0.16
  2. 安装没有这个问题的 4.3.36 版本(至少在我的电脑上)
  3. 不卸载4.3.36,默认安装5.0.16版本

(始终以管理员身份安装,即 运行 安装程序以管理员身份)。

在几天内尝试不同的解决方案后,这对我有用。

我尝试了以上选项,但没有成功。最终我卸载了 docker-toolbox (1.11.x) 和 virtualbox(5.16.x) 并检查了 docker-toolbox 安装程序 GUI 中的以下选项(默认情况下NDIS5 选项未选中)

网络连接中的虚拟适配器也有 "Bridge Networking Driver" 未选中选项,这对我来说很好用

我折腾了一段时间,你只要打开VirtualBox,

文件 > 首选项 / 网络 > 仅主机网络

您将看到 VirtualBox Host-Only 以太网适配器

点击它,然后编辑。

我的 vagrant VM 的 IP 设置是 192.168.10.10,你应该编辑到你的 VM IP

这是我的适配器设置;

Adapter Settings

DHCP Server Settings

我刚刚 运行 在 Windows 8 上遇到了 VirtualBox 5.1 的这个问题。原来问题出在我安装的卡巴斯基病毒防护上。它在 windows 端的仅主机适配器上添加了 "Kaspersky Anti-Virus NDIS 6 Filter"。当我禁用该过滤器时,虚拟机正常启动:

  • 打开网络和共享中心并转到边栏中的更​​改适配器设置。

  • 右键单击适配器列表中的仅主机适配器,然后单击“配置”按钮 ->“驱动程序”选项卡 ->“更新驱动程序”按钮。

  • Select Browse my computer ... 并在下一个对话框中 select Let me pick .... 您应该会看到仅包含主机驱动程序的列表它。

  • Select 然后点击下一步。更新驱动程序后,请再次尝试在 VM 中使用仅主机网络。

我的解决方案是更新 VirtualBox。

在 Windows 8.1 上全新安装 Docker 工具箱 (v1.12.5) 后,我首先 运行 解决了这个问题。对我有用的是 VirtualBox 的更新。然后我在一些 Windows 更新后遇到了同样的问题,更新 V​​irtualBox 再次解决了这个问题。

对我来说,禁用和启用网络连接不足以使其正常工作。 我必须删除家庭用户 (c:/Users/your_user/.docker/) 中 .docker 存储库的内容。 这样做之后,我重新安装 Docker Toolbox 和 VitualBox 并使用 machzqcq 提示检查安装了带有 NDIS5 驱动程序的 virtualbox。

我在这里找到了答案:https://github.com/docker/toolbox/issues/473

对我来说,将 VirtualBox 更新到 5.1.23 解决了这个问题。您可以从 official website.

下载此版本 Windows

在尝试再次创建 VirtualBox host-only 适配器之前,您可以尝试禁用除实际物理网络适配器之外的所有适配器。

this answer

在 Windows 10 更新后,我的 VirtualBox Host-Only Ethernet Adapter 实际上从 OS' 网络适配器中消失了(在 控制面板 -> 网络和共享中心 -> 更改适配器设置)。必须重新安装 VirtualBox 才能将其带回 OS。

然后在较新版本的 VirtualBox 中,仅主机适配器位于 全局工具(右上)-> 主机网络管理器 下。确保为适配器启用了 DHCP 服务器。

示例配置:

重启电脑


遗憾的是, 在 Windows 10 x64 和 VirtualBox 5.2.6

中对我不起作用

该框已被选中,只需重新启动即可修复它。

在多年告诉人们尝试重新启动之后,我未能遵循自己的黄金建议;脸,遇见手掌。

我尝试了此页面上的所有内容(感谢大家!)。没有任何效果。几个小时后,我终于让它工作了。

我的问题是我在 "something went wrong in step ´Checking status on default´" 之前没有错误。

start.sh 脚本中的这一行失败。

VM_STATUS="$( set +e ; "${DOCKER_MACHINE}" status "${VM}" )"

运行 命令提示符中的以下行有效并返回 "Running"。

D:\Dev\DockerToolbox\docker-machine.exe status default

所以我开始关注 Github link 中的所有修复并找到了修复。

在 start.sh 脚本中,我更改了行

VM_STATUS="$( set +e ; "${DOCKER_MACHINE}" status "${VM}" )"

VM_STATUS="$(${DOCKER_MACHINE} status ${VM})"

我从 Windows 7 升级到 Windows 10 后遇到了同样的问题。尝试了所有无效的流行答案。最后,我明白了 Windows 更改了适配器的名称。 Virtual Box 被配置为使用 Realtek PCIe GBE Family Controller,而设备管理器将其配置为 Realtek PCIe GBE Family Controller #2。选择合适的控制器解决了问题。

更新Windows时出现同样的错误。 尝试了一切。没有任何效果。

最后,转到设备管理器-> 网络适配器 禁用和启用 Virtualbox Host only Adapter

成功了!

开启 WINDOWS 10 在花费了 3 个令人沮丧的小时卸载并重新安装 minikube、virtualbox 后并没有解决问题,我看到了我的网络适配器 控制面板-> 网络和 Internet-> 网络连接 window。 有 3 个启用 "VirtualBox Host-Only Ethernet Adapter" 个。 我把它们都禁用了。 然后在服务屏幕 (运行->services.msc) 上找到 Tcp/Ip NetBIOS 助手 并重新启动它。

将创建一个新的网络适配器,其专有名称如 "VirtualBox Host-Only Network #3"。 现在输入: minikube 删除 mnikube 开始 它对我有用。 希望它能帮助别人! 我讨厌这个:)

Open Control Panel >> Network and Sharing Center. Now click on Change Adapter Settings. Right click on the adapter whose Name or the Device Name matches with VirtualBox Host-Only Ethernet Adapter # 3 and click on Properties. Click on the Configure button.

Now click on the Driver tab. Click on Update Driver. Select Browse my computer for drivers. Now choose Let me pick from a list of available drivers on my computer. Select the choice you get and click on Next. Click Close to finish the update. Now go back to your Terminal/Powershell/Command window and repeat the vagrant up command. It should work fine this time.

https://www.howtoforge.com/setup-a-local-wordpress-development-environment-with-vagrant/

我找到了解决问题的方法, 我的网络适配器发生冲突,我简单地禁用了出现在错误消息中的那个,然后再次启动 运行 命令,并且在来自 windows 的许多批准消息之后创建了一个新的适配器。

我希望这个解决方案在某些情况下能有所帮助。

对我来说,我必须删除我的用户目录中的 .virtualbox & .docker 文件夹...效果很好

如果已接受的 对您不起作用,请禁用其他已启用的以太网卡。 在这之后再次尝试 运行 你的 vagrant 脚本,它会为你创建一个新的网卡。对我来说是#3