emscripten-vagrant icon indicating copy to clipboard operation
emscripten-vagrant copied to clipboard

Failed to connect to VM!

Open hemanth opened this issue 13 years ago • 4 comments

[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.

In the GUI : Changing the VM state from 'RESUMING' to 'RUNNING' It running fine there.

$ /opt/vagrant/bin/vagrant ssh
ssh_exchange_identification: Connection closed by remote host
$ uname -a
generic #65-Ubuntu SMP Tue Jan 24 13:48:14 UTC 2012 i686 GNU/Linux


$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.10
Release:    10.10
Codename:   maverick

Could it be due to :

Guest Additions Version: 4.1.8
VirtualBox Version: 4.1.10

hemanth avatar Jun 18 '12 07:06 hemanth

Try uncommenting this line in Vagrantfile:

config.vm.boot_mode = :gui

Then kill the Virtualbox processes and "vagrant up again". Frequently virtualbox does not report problems in headless mode.

rhelmer avatar Jun 18 '12 17:06 rhelmer

It prints the below and the prompt returns. What next?

[default] VM already created. Booting if it's not already running...

hemanth avatar Jun 19 '12 04:06 hemanth

@hemanth make sure that virtualbox is not running in the background - this is a problem with virtualbox, and you can't easily diagnose in the default (headless) mode.

rhelmer avatar Apr 03 '13 00:04 rhelmer

Okies, will try that!

hemanth avatar Apr 03 '13 04:04 hemanth