Dopo un recente aggiornamento di Windows 10 le mie macchine virtuali vagabonde hanno smesso di funzionare, rifiutando di iniziare da vagrant up
. Il problema sembra essere collegato al provider Virtualbox che utilizzo per le mie VM e si verifica solo se una private_network è configurata in Vagrantfile, mentre sia il port forwarding che public_network
sembrano funzionare.vagrant up ha smesso di funzionare dopo l'aggiornamento di Windows 10
Ho già riscontrato un problema simile la prima volta che ho aggiornato il sistema operativo da Windows 7 a Windows 10. In tal caso, ho risolto il problema con la patch su Virtualbox ticket 14040; dopo l'applicazione del nuovo aggiornamento di Windows, tuttavia, la soluzione di patch non funziona più.
Ho anche provato ad aggiornare sia VirtualBox che Vagrant alle loro ultime versioni, ma questo non ha cambiato nulla.
Qui sono le mie versioni di Windows/VirtualBox/Vagrant:
Microsoft Windows 10 version 1511 (build SO 10586.14)
VirtualBox version 5.0.10 r104061
Vagrant version 1.7.4
Questo è l'errore che ottengo quando si avvia 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.
E il seguente è l'errore mostrato da Virtualbox quando si cerca di avviare la VM dall'interfaccia utente di 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}
Infine, qui le parti rilevanti del mio Vagrantfile; come detto, se io commento la linea private_network
, la macchina inizia:
# -*- 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
È possibile modificare le risposte (e le domande) premendo il pulsante 'modifica' sotto la risposta (domanda). Si prega di modificare le informazioni in là. – Adriaan
Ha funzionato! Mille grazie, BelegUS! – chrx
Grazie. Ho perso 24 ore di sviluppo a causa di questo problema. –