-
Notifications
You must be signed in to change notification settings - Fork 776
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
Centos 7: Error "Device eth1 does not seem to be present" with private network #970
Comments
Lots of discussion here on similar issues but nothing helps for Centos 7 |
Eventually managed to get it to work by changing the Vagrantfile line to
Would be nice if this could work straight out of the box though! |
should we update docs for this? |
See also mitchell/vagrant#4195 |
so does updating vagrant to latest version help with this problem? - always update your software :) |
Tried to reproduce with latest vagrant version but having issues with Guest Additions and can't get anything to work at the moment. Will let you know if I make progress. |
I can confirm that upgrading to vagrant >=1.6.5 fixes the issue. |
thanks for confirming |
Another confirmation that simply upgrading to 1.6.5+ fixed the issue (I was running 1.6.3). |
I am running 1.7.1 and I am getting this issue. Was this reintroduced with all the issues in 1.7.0? |
@monomidev please test with version lower then 1.7.0 to be sure - if it fails again please comment on hashicorp/vagrant#4195 or hashicorp/vagrant#1777 - whichever looks more similar |
Sorry for the confusion but it looks like this is not caused by Vagrant. I was running into a couple of issues. When I first encountered this, I was getting an error with device eth1. I noticed there was a ifcfg-eth1 file but eth2 was the device vagrant was adding. It would then error on eth1 with the error mentioned in this thread. I found the following article on a similar issue with ubuntu and vagrant: http://able.cd/b/2012/04/09/vagrant-broken-networking-when-packaging-ubuntu-boxes/ Quite old but was the case me. When I remove the rules file, vagrant was having the same error for eth2 and then eth3 was the actual device. I noticed the ifcfg-eth1 file was still present. The fix I did:
Now vagrant attempts to create device eth1 and writes a config file for eth1 when setting a private_network. |
are you saying that automated removal of |
Removing /etc/udev/rules.d/70-persistent-net.rules |
@mpapis sorry for the delay, I think it is a combination of bad base box configuration (causing the extra ifcfg file) and the rules file. I will see what I can put together. |
I have vagrant 1.7.2 and I am encoutering this issue too. As far as I can tell, the problem is that Vagrant expects the second network interface to be called The solution would be to explicitly specify the interface name in Vagrantfile - which I don't know how to do, but maybe somebody else does. A possible workaround which I used is to disable interface renaming by adding |
I think |
So I have this issue (I think) with RHEL7.
When i log onto a box there is a random file....
Karl |
You will have to debug this process yourself, I'm stepping down to only advise on fixing the issues (see: http://niczsoft.com/2015/02/changes-in-my-open-source-life/) |
I was able to fix this issue by upgrading to Vagrant v1.7.2. |
This still happens to me on Vagrant v1.7.2 |
the problem happens on Vagrant v1.7.2 !!! |
Same problem here following this tutorial: |
Trying to use a private network with the new Centos 7 config doesn't work and results in the error below:
Steps to reproduce:
Now edit the Vagrantfile and uncomment the line:
Then run:
This results in the following error:
The text was updated successfully, but these errors were encountered: