-
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
Stuck at "Configuring and enabling network interfaces" with CentOS 6.5 #5940
Comments
@warrenseine This is a base box issue Chef had fixed in their CentOS 6.6 box https://atlas.hashicorp.com/chef/boxes/centos-6.6 Using CentOS 6.5 without yum updating it to CentOS 6.6 means there will be many security issues, as CentOS doesn't support versions other than the latest minor release of each major version. (i.e. 5.11, 6.6, 7.1) |
This was fixed in their build at https://github.com/chef/bento/blob/master/scripts/centos/cleanup.sh#L7-L15 |
@andytson Thanks, I'll try the 6.6 box. I'm unused to Red Hat's release cycle. Is there a difference between 6.6 and 6.5 + |
Hi @warrenseine Did upgrading the box help? This seems to be an upstream issue with the box from Chef, but I want to confirm before closing the issue 😄 |
@warrenseine if you
|
if chef/centos-6.6 doesn't work, I'd recommend downloading Chef's build from their Readme https://github.com/chef/bento/blob/master/README.md They've been known in the past to not update Vagrant Cloud/Atlas frequently |
I've got the exact same issue with |
I'm still wondering about these lines:
or
They still happen with CentOS 6.6. Maybe it's nothing to worry about but it looks the box is setting the network configuration in a file that doesn't exist. Who's responsible for these lines? The box or Vagrant itself? There's also this error when provisioning (the second time):
|
Same problem occurs with |
I went back to Ubuntu without any issue, so I didn't break anything on my side. That's definitely an issue in the way CentOS is handled by Vagrant. I'll try with a minimal |
Hi @warrenseine If you are able to provide us with a minimal Vagrantfile that demonstrates that issue, that would be very helpful in getting this fixed for 1.7.4. Thanks! |
Hum, obviously, a minimal
shows the right command when provisioning:
Still investigating. |
Hi @warrenseine Of course 😄 💻. If you are able to narrow it down to a particular line or stanza in your testing, that would also help us get a fix out faster 😄 |
After bisecting my provisioning code (Ansible-based), I found out what CentOS doesn't like:
I should have thought of this earlier. So, what is happening here? Why would Ubuntu behave differently? Does CentOS read my |
Hi @warrenseine I'm not really sure what that ansible configuration does. What is in the bashrc? |
@sethvargo Sorry I should have detailed. The So if Vagrant reads this file when SSHing into the box as |
This might be related, chef/bento#388 (comment) |
@andytson This looks similar indeed. I ended up using my workaround by removing that part in my provisioning code. I'm not investigating anymore on the issue. It should be reproducible by:
If that's not the case, then I suppose you can close the issue. Thanks for your time. |
The first
vagrant up
works as expected, but when Ivagrant reload
, Vagrant gets stuck at "Configuring and enabling network interfaces".Issue #1842 shows a similar bahavior and issue #997 suggests removing
/etc/udev/rules.d/70-persistent-net.rules
and/etc/sysconfig/network-scripts/ifcfg-eth1
, but none seems to fix my issue.I was wondering why Vagrant would try to hack
/etc/network/interfaces
(see log) while it doesn't exist on CentOS. Maybe that's the problem?I'm using CentOS 6.5 from
chef/centos-6.5
, on OS X 10.10 and Vagrant 1.7.2. Network is host-only. This doesn't happen when using the guest is Ubuntu.My VirtualBox settings are:
Below is the (partial) log of the second connection.
The text was updated successfully, but these errors were encountered: