-
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
Enterprise Linux 7 Dynamic network cards fix (ref #4171) #4195
Conversation
Uses fedora's network configuration for RedHat and CentOS 7. Possibly fixes hashicorp#4171 but I doubt this is the 'cleanest' way. Pointers welcome.
@vStone Hi, thanks for your fix! No comment for a cleaner way for 20 days. How about merging this pull request now? I myself downloaded https://github.com/vStone/vagrant-centos7_fix and am happy with it (Thanks for the fix too!). |
Hm. I like that this fixes it but wonder if there is a cleaner way. I'm going to hold this open for now as the issue-fixer but I'm going to play around and see if I can get a cleaner fix in. Thanks! |
@mitchellh We cannot use CentOS7 boxes because of this. So we would really appreciate this fix or any other in production. Thanks! |
@bemeyert use
while mitchellh figures this out :) |
Thx, that did the trick. I'm happy that the plugin exists. But this code should be in Vagrant. |
OK, it worked on my Linux box. But on my colleagues Mac came this:
And he is using the official DMG 1.6.3 from the download site. A lot of people will use our CentOS 7 box. It would have been ok to upgrade Vagrant or even to install above plugin. But fixing things like the above is too much. @mitchellh Can you please figure this out a bit faster? ;) |
@bemeyert: its unclear if you are having problems with my temporary centos7 fix. If so, please file a bug here: https://github.com/vStone/vagrant-centos7_fix/issues although I'm not clear on why this dependency is pulled in since I dont list any. |
@vStone Thanks a lot, I will forward this to my colleague. |
the installation problems, which @bemeyert has mentioned, seem to be the same issue like sparklemotion/nokogiri#1140. it works on one mac but doesn't on another with the same OS version. most likely the reason is not within the centos7-fix-plugin. |
Hi. Is this fix going to be merged ? |
vagrant plugin install vagrant-centos7_fix Vagrant 1.6.3 has fix the bug The following SSH command responded with a non-zero exit status. ARPCHECK=no /sbin/ifup eth1 2> /dev/null Stdout from the command: Stderr from the command: it work good! ths! |
The only way I see this can be cleaner is if capabilities are separated from their guests and included |
e.g. the reason this capability needs to be implemented is because either:
so we have a folder plugins/guest-capabilities/systemd/cap/configure_networks, systemd/plugin checks for systemd in use on guest, and adds it's configure_networks capability to the guest |
Fixed. @andytson I agree the whole RedHat/Fedora guests could be handled a lot better. They're all so similar they should really fall under the same guest. Notice the "flavor" switch I do now. I think this is a better approach for now. For things such as consistent network device naming, extracting helpers out would be helpful for multiple guests. |
Yikes! Cute patch... Anyways, can someone confirm that the "rhel_7" machine.guest.capability("flavor") is also returned for centos 7... ? |
@purpleidea It should be, I copied the same regex used in this PR. |
@mitchellh cool, thanks. but without any testing makes me think this might need patching too... Keep in mind that newer fedora ~19/20 work quite differently network wise from early fedora... |
Let me know. I just copied this patch to make it work, which others are saying work. |
I don't think this works - at least not for CentOS 7. I'm using the image 'box-cutter/centos7' on vagrantcloud. No issues with VirtualBox and public networks, only with VMware Fusion. Though my image is using the new-style network addresses. Here' s the output of
No eth0 or eth1, but again, this works fine on VirtualBox. |
This works for me on CentOS-7 and vagrant-libvirt. On Wed, Sep 10, 2014 at 4:28 PM, Mischa Taylor notifications@github.com
|
Libvirt seems to assign eth0, 1... as interface names, so the issue would not occur there. |
I ran into this issue this issue today and did some testing around it. I believe it may provide some insight in tracking it down. I'm using Vagrant 1.6.5 on Windows with VirtualBox. If I vagrant up a box with NO private networking using a CentOS-6.3-x86_64-minimal.box from vagrant boxes. If I then Now, if I vagrant up a box WITH private networking using the same CentOS-6.3-x86_64-minimal.box. If I then So basically if I have private networking enabled when I package the box I permanently get the |
I'm having exactly the same issue as @owenallenaz . Not sure why. |
Seems like this has duplicate effects on Oracle boxes as well, what was the root cause of this so I can implement a fix on Oracles side? |
@ehime Its because RHEL 7 derivatives are the first to change from SysVInit to systemd out of all RHEL derivatives Vagrant has supported. Each has their own /etc/redhat-release text that needs to be checked by the flavours.rb regex. Oracle linux can be fixed by updating the regex to include a match Oracle linux's release 7 text |
I'm seeing exact same error on my CentOS v5 Virtualbox VM boxes. |
Uses fedora's network configuration for RedHat and CentOS 7.
Possibly fixes #4171 but I doubt this is the 'cleanest' way. Pointers
welcome.