-
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
opscode-centos-7.1 Virtualbox box not able to NFS mount #388
Comments
I believe this is similar to a problem I am having with private_network using chef/centos-7.1. When my machine first boots, it get it's private network interface (enp0s8, in my case) configured as expected:
A few seconds later, however, the i/f's ipv4 config is gone:
I believe this is something to do with the way vagrant configures the private_network dynamically, when it first brings the box up, not being compatible with NetworkManager. Even though the static config created by vagrant (/etc/sysconfig/network-scripts/ifcfg-enp0s8) contains the line "NM_CONTROLLED=no", NetworkManager seems to be aware of the interface:
journalctl shows that NetworkManager trying to do DHCP on the interface, which of course fails. Eventually NetworkManager marks the interface disconnected. Restarting NetworkManager and the network makes everything ok, presumably because configs are loaded from /etc/sysconfig/network-scripts. Likewise a reboot clears it. I don't think this is a problem with the box, rather it's a shortcoming of vagrant's approach to dynamic configuration of a network i/f when NetworkManager is active. |
Does this condition still exist with the latest (2.2.2) release? Also is this a bento specific issue or a general vagrant issue? |
Can't reproduce this with bento/centos-7.1 (v2.2.2) and Vagrant 1.7.4. |
In that case closing for now, feel free to re-open should the condition arise again. |
@cheeseplus @rickard-von-essen It seems like we have a similar issue with It was fixed in Boxcutter by boxcutter/centos@be4174e. I'll send a PR soon. Could be reproduced with Vagrant.configure("2") do |config|
config.vm.box = "bento/centos-7.2"
config.vm.network "private_network", ip: "10.37.132.10"
config.vm.network "private_network", ip: "10.37.132.20"
end
|
It seems a change has been done in a build of opscode-centos-7.1 that is causing for some reason, the private network static ip to not be assigned before vagrant mounts nfs. This causes nfs to fail.
Checking the ip address assignment after the failure shows the static ip isn't assigned. An ifdown and ifup of the private network adapter introduces the static IP.
This wasn't an issue in an earlier opscode-centos-7.1 build (if you did one before that, or it was just me manually building the working one before you released it), nor opscode-centos-7.0.
Using vboxsf, the static ip is assigned to the private network adapter after boot.
Steps to recreate
causes:
The text was updated successfully, but these errors were encountered: