-
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
Ubuntu Wily (15.10) vagrant ssh times out #6683
Comments
I can duplicate this issue on OS X 10.11.2, Vagrant 1.7.4, vbox 5.0.10 r104061 |
no time to check this right now, but could it be connected to the following issue on ubuntu/wily64: apparently the enumeration of network devices was changed drastically in wily64 |
@Perni1984 you're brilliant. That was the problem. The fix worked at the bottom of the gist you posted:
Any ideas about how to permanently fix this in the Vagrant Wily box? |
@lukehoersten: glad I could help. Apparently this should be fixed in Vagrant 1.8, see #6653 |
boot up a vagrant machine with gui: config.vm.provider "virtualbox" do |v| |
Yes that's right. Logged in via the virtualbox GUI console.
|
@lukehoersten and @Perni1984 Thanks! For some reason only the first option posted by @Perni1984 worked for me. I'm not sure why. My attempt at the second option looked like the following: Running
I then ran, |
I've created this box using the first suggested fix: https://atlas.hashicorp.com/sgallen/boxes/wily64/ |
I am being affected by this also. I still have the problem with 1.8. The workaround of adding the correct file to interfaces.d does work. |
I can confirm this issue still occurs with vagrant 1.8 & virtual box 5.0.10. We were previously using v20151120.0.0 with no problems, we use We've been running on the version from the 20th since then but would prefer to run up to date. I notice the issue is considered fixed via #4468 (according to release notes of 1.8) and #6653 but this doesn't appear to be the case for my teammates and I. Perhaps when @sethvargo looked into #6653 he had v20151120.0.0 or earlier an update would reproduce the issue. Reference to versions: https://atlas.hashicorp.com/ubuntu/boxes/wily64 EDIT: Tried with @sgallen version and it's working ok but would prefer to run on official versions (no offence) |
I can further confirm that the issue remains (I'm also using Vagrant 1.8 and Virtualbox 5.0.10). Unlike @james-bright-helix, I can't get this to work, even when using the wily64 v20151120.0.0 box. I did successfully update a running v20151127.0.0 box using the second solution in @brbsix's gist. EDIT: I can |
@sgallen After creating Just a cursory look would seem to indicate the trouble is within https://github.com/mitchellh/vagrant/blob/master/plugins/guests/debian/cap/configure_networks.rb Unlike the Arch-specific networking code here https://github.com/mitchellh/vagrant/blob/master/plugins/guests/arch/cap/configure_networks.rb, you'll notice interface operations for Debian/Ubuntu boxes are hardcoded |
I just submitted a pull request about that (#6724). That setup is for when you add custom networking like |
@briandant Someone here had a similar issue to you with that version and when we checked the packages had a different hash. I'm not sure if something changed on the central repo or if someone here fiddled with our cache and it's actually a version earlier that was working.... as it's been Christmas it's not so easy to figure out with everyone off. |
@sgallen: I have seen your box on atlas and I am trying to apply the suggested fix with this:
Unfortunately, I still get stuck on "Waiting for ssh...". Would you mind sharing your packer template and supporting files? |
This is still an problem affecting latest wily images. Any plans on fixing this? edit: so the ubuntu/wily64 on atlas is fixed but not the vagrant image ubuntu ships from: Not sure if that's still a Vagrant or Ubuntu problem at this point then. Maybe we can close the issue. |
@lukehoersten during some combination of upgrading vagrant, virtual box and getting the latest from atlas it started working for us so I don't believe it's a vagrant issue any more. I haven't tried with the cloud-images version. |
Here's a fix I used in building my own minimal Xenial (16.04) base box using Packer: geerlingguy/packer-boxes#1 (comment) — still testing, but it looks like there's a PR and an already-committed-but-not-in-stable-release bugfix needed before this hacky workaround will not be needed. |
Hi there, I would recommend y'all try the |
Summary
Ubuntu Wily vagrant box times out when trying to
vagrant ssh
into it. Works fine withubuntu/vivid64
and before.Versions
Vagrantfile
vagrant up --debug
output available in this pastebin.Investigation
My suspicion is that in Wily, Ubuntu started defaulting to a network bridge to linux container and this is overriding the necessary vagrant routing.
I've confirmed the VirtualBox port forwarding from Host port 2222 to Guest port 22 is configured correctly.
Vivid routing tables
Wily routing tables
This prevents the
sshd
form even seeing the connection attempt.Other issues with ssh timeout symptoms
This is different than another issue people were seeing with the same symptom of ssh connection timeouts. That issue was specific to 64bit virtualization being disabled at the BIOS level. This is not the issue here because
ubuntu/vivid64
box works just fine.Thanks to
ada
on IRC for helping debug this issue.The text was updated successfully, but these errors were encountered: