2015-12-07 70 views
8

在最近的Windows 10更新之后,我的流浪虚拟机停止工作,拒绝从vagrant up开始。该问题似乎与我用于虚拟机的Virtualbox提供程序相关联,并且只有在Vagrantfile中配置了private_network时才会出现此问题,而端口转发和public_network似乎都可以正常工作。在Windows 10更新后,vagrant up停止工作

我第一次将我的操作系统从Windows 7更新到Windows 10时,我已经遇到过类似的问题。在那种情况下,我解决了Virtualbox的ticket 14040上的补丁问题;但是,在应用新的Windows更新后,补丁解决方案不再有效。

我也尝试更新VirtualBox和Vagrant到他们的最新版本,但这并没有改变任何东西。

这里是我的Windows/VirtualBox虚拟/流浪版本:

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中显示的错误从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 

回答

13

我有完全相同的问题。在这个博客上找到解决方案帮助: http://codeworks.it/blog/?p=329

基本上,在更新后,Windows的“神奇”从VirtualBox虚拟主机唯一的网络关闭VirtualBox的NDIS6桥接网络驱动程序

要解决它,你应该检查你的网络接口,在Windows中:

  • 在VirtualBox虚拟主机的唯一的网络性能,请检查是否VirtualBox的 NDIS6桥接网络驱动程序被选中。
  • 如果没有 - 打勾:)

去检查是否有所帮助,我敢打赌,它会;)

+1

您可以通过按下回答(问题)下方的编辑按钮来编辑答案(和问题)。请编辑那里的信息。 – Adriaan

+0

它的工作!非常感谢Belegus! – chrx

+0

谢谢。由于这个问题,我失去了24小时的开发时间。 –

2

进入 “控制面板” - > “网络和Internet” - >“网络连接“

右键单击”VirtualBox主机专用网络#4“ - >属性。

这是您将看到的窗口。

enter image description here

现在有2个选择,要么 “VirtualBox的NDIS6桥接网络驱动器” 被选中与否。
如果不是,你可以检查它,它会做的伎俩。
但是,如果它被检查,你需要重新安装你的VirtualBox版本。

相关问题