Created
October 2, 2012 16:27
-
-
Save lslucas/3820715 to your computer and use it in GitHub Desktop.
Vagrant ssh fails with VirtualBox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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