-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Version 2.3.0 fails to connect network on VirtualBox #688
Comments
VirtualBox had a regression, which is fixed in:
See hashicorp/packer/issues/3757 Solutions (any of):
config.vm.provider 'virtualbox' do |vb|
vb.customize ["modifyvm", :id, "--cableconnected1", "on"]
end |
This also seems to be effecting kitchen (1.13.0) |
@montge Any fixes for kitchen? |
For kitchen, you can use the |
@chris-fa there is no fix for kitchen, kitchen is not broken - this has to do with the virtualbox version more than anything else. Closing this one as it's answered and we've got 3 dupes. |
@rickard-von-essen I believe this doesn't work for a |
@rickard-von-essen I'm using virtual box |
I am also running VB 5.1.6 with the bento/ubuntu-16.04 box and am still running into the hanging on ssh issue. EDIT: After testing again, adding the |
@bgroff what about |
@chris-fa Yes, a |
@bgroff :( I am working with chef, so every |
Should this ticket be reopened? VB 5.1.6 does not fix this issue. Also as @chris-fa stated even if you add |
So the issue is for 2.3.0 but the issues above reference 2.2.9 with 5.1.6 (which flips the problem the other way) - in the interest of sanity if folks could report the complete matrix of what they are considering broken. Basically: If you're seeing that specific permutation fail then I'd like to get a repro case but I'm trying to separate some signal from noise here. |
@cheeseplus I tried with box 2.2.9 too, no luck. I then went back to |
In the interests of separating out precise problem, the condition is only if you're doing a (Trying to stem cross-posting still and get a repro) |
Also what version of Vagrant? |
I have to apologize for the noise. I thought I had upgraded to 5.1.6 which I had not. So please disregard my input for the moment. |
My issue was that on virtualbox 5.0.26 I could not run vagrant up with a clean init using bento/ubuntu-16.04. It had nothing to do with vagrant halt or reload. It was a fresh up. I can confirm that if you upgrade to virtualbox 5.1.8 bento/ubuntu-16.04 will get past the SSH auth method: private key hang. I can also confirm that the problem still exists if you only upgrade Virtual Box to 5.0.28. Is this something that can be fixed in a later version of vagrant or should I put min versions on Virtual Box and Vagrants when people try to run our software? |
As the person building bento I, by necessity have to lock down the versions of everything, because of unexpected regressions like we've seen here. On a fresh up, with no pre-existing vagrant box of the same name, it will fail as vagrant defaults to grabbing the latest off Atlas - this can be mitigated in your Vagrantfile by specifying a version and test-kitchen (via kitchen-vagrant) can do the same. The issue here is trying to deal with upstream errors in several projects. This can't be fixed in Vagrant without HashiCorp testing every single new version of hypervisor and hard coding it in which would be an exercise in madness. So the aforementioned solutions are your best bet here @bradallenfisher - fwiw, 5.1.8 also has some serious regressions so we stuck with 5.1.6 across the board on bento until the situation improves. |
cool. Thanks @cheeseplus |
Hi everyone. I have the same issue on Virtualbox 5.1.8, using the 2.3.0 ubuntu 16.04 image. Thanks EDIT: Vagrant 1.8.6 |
@ferrarimarco what version of Vagrant? We really need more detail on these postings as "me too" follow ups are often not actually the same root issues. |
@cheeseplus I am using Vagrant 1.8.6 on Windows 7 |
@ferrarimarco what is the actual issue here? please gist the detailed log and also make sure to remove any existing vagrant boxes and reimport as the importing function in 5.0.x was where one bug was as well. |
@cheeseplus Here is the log. I followed your procedure. Thanks |
I'm having the same issue on Windows 7 64-bit, Vagrant 1.8.7 and VirtualBox 5.1.8. I was on virtualbox 5.0.something and I upgraded to see if it would resolve the issue. I went with the |
The timeout error, especially lately, has been from Vagrant itself or a buggy version of VirtualBox. I am unable to repro on a Windows 7 machine but the box is coming up normally on Linux and OSX workstations. Is there anything in your Vagrantfile that is messing with the key? When we've seen this in the past it's almost always been something that wasn't installed or for whatever reason needed to be reinstalled wrt Vagrant or Vbox. There is potential it's a Windows specific issue in Vagrant (1.8.7) was just released but I've not heard anything on that front from folks who are using it daily. Also running vagrant with a debug log may reveal more - I know this is frustrating but as bento relies on all the above software we need to be very clear about what exactly is failing as most of the time it's something upstream. |
If I open the Virtualbox console and show the gui I can see that the box is stuck on |
@cheeseplus I tried with a minimal Vagrant file (just the box, CPU and memory configuration) and it happened again. Thanks |
Could you please open a separate issue? This is starting to sound different and more specific than the initial issue which many have reported as solved and this is why I was trying to avoid the pile on posts because the underlying causes are likely different here. |
@cheeseplus are you talking to me about the separate issue? If so, will do. no problem |
Yes @ferrarimarco - this seems uniquely different and given @wstaples comments could be specific to Windows (plus whatever vagrant and vbox bugs exist) |
@cheeseplus done, #719 thanks |
I'm going to close out this thread because we have solved for the initial report and some other issues appear specific to other conditions. |
…grant to be connected to avoid the following issue chef/bento#688
I'm having the issue on |
At this point we don't expect anything 5.0.x to work with bento. |
Had the issue on currently default Virtualbox 5.0.24 version on Ubuntu 16.04. |
Also experiencing this issue on the very latest of everything (Vagrant 1.9.5, VirtualBox 5.1.22, macOS 10.12). Is this another regression in VirtualBox? |
That's a vbox regression @rmccue or you have an old bento box. I am locking this one as with others because most of these are old versions of upstream software I can't do anything about. If folks have similar problems, please open a new issue with all the version information and we can move from there. |
SSH timeouts when
vagrant up
with this version.Network seems not to be configured correctly?
Open VirtualBox -> right click the Box base VM -> Open VM Configuration -> Network -> Adapter 1 -> "Cable connected" is not checked by default.
Reverted back to v2.2.9 solved the problem.
The text was updated successfully, but these errors were encountered: