在最近的Windows 10更新之后,我无业游民的虚拟机停止工作,拒绝从开始vagrant up
。该问题似乎与我用于我的VM的Virtualbox提供程序有关,并且仅在Vagrantfile中配置了private_network的情况下出现,而端口转发和这两个端口public_network
都起作用。
我已经经历了类似的问题,我第一次更新我的操作系统从Windows 7到Windows 10在这种情况下,我解决了问题,与VirtualBox虚拟的补丁票14040 ; 但是,在应用新的Windows更新后,修补程序解决方案将不再起作用。
我还尝试将VirtualBox和Vagrant都更新为最新版本,但这并没有改变。
这是我的Windows / Virtualbox / Vagrant版本:
Microsoft Windows 10 version 1511 (build SO 10586.14)
VirtualBox version 5.0.10 r104061
Vagrant version 1.7.4
这是我启动时遇到的错误vagrant up
:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> 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.
以下是尝试从Virtualbox用户界面启动VM时Virtualbox显示的错误:
Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #15' (VERR_INTNET_FLT_IF_NOT_FOUND).
Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND).
Codice 'uscita:
E_FAIL (0x80004005)
Componente:
ConsoleWrap
Interfaccia:
IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
最后,这里是我的Vagrantfile的相关部分;如前所述,如果我注释该private_network
行,机器将启动:
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu-14.04-amd64-docker"
config.vm.box_url = "https://github.com/jose-lpa/packer-ubuntu_14.04/releases/download/v2.0/ubuntu-14.04.box"
config.vm.hostname = "falcon.staging"
config.vm.network "private_network", ip: "192.168.33.114"
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "2048"
end
...
end
我有同样的问题。在此博客上找到的解决方案有所帮助:http : //codeworks.it/blog/?p=329
基本上,在更新之后,Windows会从VirtualBox仅主机网络“神奇地”关闭VirtualBox NDIS6桥接网络驱动程序。
要修复它,您应该在Windows中检查您的网络接口:
去检查一下是否有帮助,我敢打赌;)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句