Skip to content

Instantly share code, notes, and snippets.

@lslucas
Created October 2, 2012 16:27
Show Gist options
  • Save lslucas/3820715 to your computer and use it in GitHub Desktop.
Save lslucas/3820715 to your computer and use it in GitHub Desktop.
Vagrant ssh fails with VirtualBox
Problem:
$ vagrant up
[default] VM already created. Booting if its not already running...
[default] Running any VM customizations...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- ssh: 22 => 2222 (adapter 1)
[default] -- db2: 30003 => 30003 (adapter 1)
[default] Cleaning previously set shared folders...
[default] Creating shared folders metadata...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] Failed to connect to VM!
Failed to connect to VM via SSH. Please verify the VM successfully booted
by looking at the VirtualBox GUI.
Solution:
In the VagrantFile, add the gui mode : config.vm.boot_mode = :gui
Then, after login just enter with:
$ sudo /etc/init.d/networking restart
Close and $ vagrant up again
source: http://superuser.com/questions/342473/vagrant-ssh-fails-with-virtualbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment