-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vagrant: Failed to connect to VM! Failed to boot? #63
Comments
Can you try with the "base" box? http://files.vagrantup.com/base.box Another thing you can try is setting The lucid box has caused trouble before on ubuntu-based hosts, so I have a feeling this is what is causing it. Thanks. |
I was having the same issue, and after using the gui mode i saw that the box vm was booting correctly. I narrowed it down to an issue of too many failures whilst trying to login using my existing ssh keys. (by running vagrant ssh to see what the ssh errors might be). My issue was some weird conflict with the built in gnome-ssh agent on the host OS (Lucid). I managed to resolve it by turning off the "ssh key agent" program in startup applications. Can I suggest that we set ForwardAgent no in the ssh-config and also the switch -a in the ssh kernel.exec line. This is my tuppence, but hope it resolves it for you. |
jasherai, Interesting, I don't see any reason why we can't disable agent forwarding. Are you certain that this is what fixed the issue? Additionally, can you verify that your Mitchell |
I've been looking at the issue for a couple of days, and my problems seem to be caused by VirtualBox DHCP server is not allocating an IP address to the VM. So even though this doesn't seem to be occurring for other, non-Vagrant VMs I'm using, the root of the problem seems unrelated to Vagrant. I will keep looking into it though and post whatever I find. Snippet from healthy log file:
Snippet from unhealthy log file:
|
Strange! I've never heard of this issue occurring and of course I can't reproduce it so I can't offer much help here. And I may have asked this before but you've tried with more than one base box correct? I just want to make sure this isn't something isolated to the "base_lucid" box somehow. |
using 'getting_started' base box. seeing the 10 failed connections as well. booted with config.vm.boot_mode = "gui" and confirmed box starts. not very familiar with virtualbox network troubleshooting but i can tell you i can't ping anything from inside the vm. |
eignerchris, You're probably getting the same issue with the DHCP or something or another. I haven't figured out what is causing this yet. In the meantime could you please post your OS, ruby version (ruby -v), and vagrant version (vagrant -v)? Thanks |
OS: Darwin host-246-74.pubnet.pdx.edu 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386 ruby: ruby 1.8.6 (2010-01-11 patchlevel 388) [i686-darwin10.2.0] vagrant: 0.3.4 |
Is this issue still occurring? Sorry its been awhile since an update and I wanted to verify whats going on here. |
not seeing this behavior anymore. now just seeing any exception about json...
|
Ah, this is caused by conflicting versions of json. Do a |
thanks! working now. successfully booted a test vm. |
Great, closing this ancient issue :) |
I tested this against my previous Lucid box, and it was still failing at least some of the time, even after updating the Vagrant gem. I rolled a new base box last night (again Ubuntu Lucid) and after running about a dozen or so startup tests, I've not seen the same problem yet, so it could have been a combination of the version and the box itself. In any case, thanks for the support! |
At times it seems to be impossible to bring up a Vagrant box using what should be a relatively vanilla Vagrantfile. Is this a problem that other people are also having? Is it a solved problem?
Base OS: Ubuntu Lucid Desktop
Box OS: Ubuntu Lucid Server
VirtualBox 3.1.6 r59338
Vagrantfile:
Vagrant::Config.run do |config|
config.vm.box = "base_lucid"
end
Output from "vagrant up":
[INFO 05-12-2010 06:16:24] Vagrant: Provisioning enabled with Vagrant::Provisioners::ChefSolo
[INFO 05-12-2010 06:16:24] Vagrant: Importing base VM (/home/ck1/.vagrant/boxes/base_lucid/box.ovf)...
[INFO 05-12-2010 06:18:11] Vagrant: Persisting the VM UUID (dc164fff-eeb8-40a8-84c6-5b76f7b3ba44)...
[INFO 05-12-2010 06:18:12] Vagrant: Matching MAC addresses...
[INFO 05-12-2010 06:18:12] Vagrant: Running any VM customizations...
[INFO 05-12-2010 06:18:13] Vagrant: Deleting any previously set forwarded ports...
[INFO 05-12-2010 06:18:13] Vagrant: Forwarding ports...
[INFO 05-12-2010 06:18:13] Vagrant: Forwarding "ssh": 22 => 2222
[INFO 05-12-2010 06:18:13] Vagrant: Forwarding "web": 80 => 4567
[INFO 05-12-2010 06:18:13] Vagrant: Clearing previously set shared folders...
[INFO 05-12-2010 06:18:14] Vagrant: Creating shared folders metadata...
[INFO 05-12-2010 06:18:14] Vagrant: Booting VM...
[INFO 05-12-2010 06:18:15] Vagrant: Waiting for VM to boot...
[INFO 05-12-2010 06:18:15] Vagrant: Trying to connect (attempt #1 of 10)...
[INFO 05-12-2010 06:18:20] Vagrant: Trying to connect (attempt #2 of 10)...
[INFO 05-12-2010 06:18:55] Vagrant: Trying to connect (attempt #3 of 10)...
[INFO 05-12-2010 06:19:30] Vagrant: Trying to connect (attempt #4 of 10)...
[INFO 05-12-2010 06:20:05] Vagrant: Trying to connect (attempt #5 of 10)...
[INFO 05-12-2010 06:20:40] Vagrant: Trying to connect (attempt #6 of 10)...
[INFO 05-12-2010 06:21:15] Vagrant: Trying to connect (attempt #7 of 10)...
[INFO 05-12-2010 06:21:50] Vagrant: Trying to connect (attempt #8 of 10)...
[INFO 05-12-2010 06:22:25] Vagrant: Trying to connect (attempt #9 of 10)...
[INFO 05-12-2010 06:23:00] Vagrant: Trying to connect (attempt #10 of 10)...
[INFO 05-12-2010 06:23:35] Vagrant: Failed to connect to VM! Failed to boot?
=====================================================================
Vagrant experienced an error!
The text was updated successfully, but these errors were encountered: