-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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 1.2.2 / VirtualBox 4.2.12 / RedHat 6.4 : The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! /sbin/ifup eth1 2> /dev/null #1693
Comments
i'm probably biased, but this looks like #1577 to me |
Many people still have this issue. See the latest comments in #921 as well. I can also reproduce this issue. Using VirtualBox 4.2.12, Vagrant 1.2.2 (from deb package) and this box http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box which gets new guest tools using vagrant-vbguest plugin. My Vagrantfile:
end Little bit of debug logging:
I've tried the above mentioned workarounds as well, with no luck. |
i have this issue too. is there an easy workaround? |
Try a vagrant version < 1.2.0 I've found the commit My ifcfg-eth1 looks like the redhat template and Please make a solution for SLES and Open Suse guests. |
Why don't you revert the [https://github.com/mitchellh/vagrant/commit/7ed406629b38ecbb90ff29d57083e41ed5d508d0] BOOTPROTO changes? The commit doesn't fix any issue but creates some. |
Same problem here. For me it happens whenever I change the private network IP address on a box that I packaged, and the original box had eth1 configured. As an example, if I had the following ifcfg-eth1 initially
Then I exit, vagrant halt, vi Vagrantfile to change IP to 172.16.100.12, vagrant up, I get
vagrant ssh, and look at ifcfg-eth1 again, I get 3x the config for the price of 1
Even if I manually remove the 2 additional sections and then vagrant halt;vagrant up again, somehow the same config comes back. rm ifcfg-eth1 and then halt/up again, same problem. |
Having the same problem as zhenjl, including the I have this issue on initial boot—that is, The relevant (I believe) portion of my Vagrantfile is
If I
This leads me to believe that the root cause of the problem may actually be the repeated config parameters rather than the BOOTPROTO value. |
@pauljm, I was able to make it work by running these commands rm /etc/sysconfig/network-scripts/ifcfg-eth1 Before packaging the box. |
Thanks @zhenjl. I gave that a shot. First I deleted both files, halted and re-upped. When that didn't work, I tried deleting them and repackaging, all to no avail. I did a little more poking around and found that removing the duplicate config params from
Changing the IPADDR parameter in As a sanity check, I ran
I changed the IPADDR back to the original 10.0.99.1 and
Whatever is going wrong affects only the IP address specified in the Vagrantfile. So the issue isn't I now suspect the culprit is VirtualBox's network interface on the host:
Sure enough, Gonna have to dig into VBox networking details a little. |
The problem here is VirtualBox's host only network interface, Normally, On startup, the Vagrant box's That One solution might be to bring the private network up on In my case, I don't need the host to be able to access the box at its private IP (
This causes VBox to switch
Strangely, the |
Some of these could be an instance of the problem that I ask be fixed with #2519, maybe? |
Hi @pauljm , I think @zhenjl solution should work for rhel6.4 boxing. I did like that, not rm but deleted the line of eth1. The key is that after you delete the udev rule for eth1, you should just shutdown the vm and package it, instead of up it again. Udev rules for eth1 will be generated automatically when vm upped. |
Sorry to do this, but I need a fresher repro case with a newer version of Vagrant to test this. I'm actually unsure anymore if this still exists or if it is exists in the same form, since a lot of updates have gone into the RHEL code. |
So guys, anyone found out how to fix it? since @zhenjl solution works after box is created. So if you base box I remove eth1 configure and create from it new box - new box for some reason comes with eth1 error :( |
so it looks like error happened only on machine where box was build. so you should fix it only for your self with @zhenjl solution. |
vagrant 1.2.2 / virtualbox 4.2.12 on win7, trying to build and spin up RedHat 6.4 base box
Tried numerous things I've seen related to ifcfg-eth0 options (onboot, hwaddr, etc.) and the 70-persistent-net.rules with no luck.
Here's a vagrant up with logging on: https://gist.github.com/dougmcclure/5521997
It looks very similar to other problems in this area related to eth0 / eth1 race conditions, etc. There isn't an eth1 set up in the base box I'm exporting from Virtualbox but it's being created during vagrant up.
I have this in ifcfg-eth1 after vagrant up but can't connect to that IP address.
The text was updated successfully, but these errors were encountered: