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

什么好主意吗?


当前回答

新的NDIS6驱动程序有一个已知的问题,你可以安装它来使用NDIS5驱动程序

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

> virtualbox -5.0.11-104101- win exe -msiparams NETWORKTYPE=NDIS5

这对我很管用。

更新:新版本更容易从安装向导中选择NDIS驱动程序——当被要求时选择NDIS5。

裁判:https://www.virtualbox.org/manual/ch02.html # install-win-performing

其他回答

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

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

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})"

我找到了解决办法

打开Windows网络连接 右键单击已创建的VirtualBox主机专用适配器 选择属性 检查“VirtualBox NDIS6桥接网络驱动程序” 禁用和启用适配器

重启电脑


遗憾的是,在Windows 10 x64和VirtualBox 5.2.6中,https://stackoverflow.com/a/33733454/2191572不能为我工作

这个框已经被选中,一个简单的重新启动就解决了它。

在告诉人们重新开始尝试多年之后,我没能遵循自己的黄金建议;面相,相约掌心。

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/

如果接受的https://stackoverflow.com/a/33733454/8520387不适合你,那么禁用其他启用的以太网卡。 在此之后,尝试再次运行您的流浪脚本,它将为您创建一个新的网卡。对我来说是第三