2015-01-26 10 views
5

Vagrant si rifiuta di avviare dopo aver apportato alcune modifiche al networking, stavo ottenendo quanto segue;Vagrant che rifiuta di iniziare (disconnessione dalla connessione remota)

$ vagrant up 
default: Warning: Connection timeout. Retrying... 
default: Warning: Remote connection disconnect. Retrying... 
default: Warning: Remote connection disconnect. Retrying... 
default: Warning: Remote connection disconnect. Retrying... 
default: Warning: Remote connection disconnect. Retrying... 

Ho provato a risolvere il problema riavviando il servizio (che non è riuscito), che ha provocato questo;

$ vagrant up 
Bringing machine 'default' up with 'virtualbox' provider... 
==> default: Checking if box 'ubuntu/trusty64' is up to date... 
==> default: Clearing any previously set network interfaces... 
There was an error while executing `VBoxManage`, a CLI used by Vagrant 
for controlling VirtualBox. The command and stderr is shown below. 

Command: ["hostonlyif", "create"] 

Stderr: 0%... 
Progress state: NS_ERROR_FAILURE 
VBoxManage: error: Failed to create the host-only adapter 
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory 
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterface, interface IHostNetworkInterface 
VBoxManage: error: Context: "int handleCreate(HandlerArg*, int, int*)" at line 66 of file VBoxManageHostonly.cpp 

Altri hanno consigliato di riavviare il servizio VirtualBox, ma anche questo non è riuscito;

✗ sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart 
Unloading VBoxDrv.kext 
(kernel) Can't remove kext org.virtualbox.kext.VBoxDrv; services failed to terminate - 0xe00002c7. 
Failed to unload org.virtualbox.kext.VBoxDrv - (iokit/common) unsupported function. 
Error: Failed to unload VBoxDrv.kext 
Fatal error: VirtualBox 

risposta

8

Dopo molte scavo, sembra che il comando restart stava venendo a mancare a causa di VirtualBox processi holding locks.

Questo è stato risolto facendo;

# kill all virtualbox related processes 
$ ps aux | grep vbox -i | awk -F ' ' '{print $2}' | xargs 

# restart virtualbox service 
$ sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart 

# try again 
$ vagrant up 
+0

nop, ho provato questa soluzione su Mac e ancora lo stesso. –

1

questo ha lavorato per me .. assicuratevi di avere abilitare adattatore 2 su VirtualBox

enter image description here

+1

Questo dovrebbe essere piuttosto un commento che una risposta. – KeyWeeUsr

Problemi correlati