我昨天把我的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和扩展包, 重新配置主机以太网适配器,但总是相同的错误…

什么好主意吗?


当前回答

打开网络和共享中心,转到侧栏中的更改适配器设置。 在适配器列表中右键单击主机专用适配器,然后配置按钮->驱动程序选项卡->更新驱动程序按钮。 选择浏览我的电脑…在下一个对话框中选择Let me pick ....您应该看到其中只有主机驱动程序的列表。 选择它并单击下一步。驱动更新后,请重新尝试在虚拟机中使用主机网络。

其他回答

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/

我尝试了这个页面上的每一种方法(谢谢大家!)。毫无效果。几个小时后,我终于让它工作了。

我的问题是,我没有在“步骤出错'检查默认状态'”之前出现错误。

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

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

在命令提示符中运行下面的行,并返回“Running”。

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

所以我开始跟踪Github链接中的所有修复程序,并找到了修复程序。

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

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

to

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

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

此外,网络连接中的虚拟适配器有“桥接网络驱动程序”选项未选中,这对我来说很好

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

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

我有Windows 8.1, VirtualBox 5.0.16.105871有这个问题。我尝试了我在这里找到的所有建议,虚拟盒子网站和其他论坛。没有一个对我有效。当我试图启动一个只使用主机接口的虚拟机时,出现了这个错误:

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}

最后,唯一适合我的解决方案是:

卸载5.0.16 安装版本4.3.36没有这个问题(至少在我的PC上) 在不卸载4.3.36的情况下,按照默认方式安装5.0.16版本

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

在尝试了几天不同的解决方案后,这对我来说很有效。