-
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
Vagrant 1.9.1 private networking configures unreachable VirtualBox VM #8115
Comments
@Nezteb I just started observing this myself (according to GitHub, you beat me to the bug report by 2m). For you, is this limited to CentOS/RedHat/Fedora? |
@Dispader Just tried it on Ubuntu 16.04 and the nginx page works as expected. I had not previously tried it on Ubuntu, as this project requires CentOS. So the issue does seem to be confined to CentOS. Ubuntu works fine. As mentioned in the semi-related issue I linked earlier, I'm willing to bet this NetworkManager config is part of the problem. |
I'm also seeing this bug on Vagrant 1.9.1 (but not Vagrant 1.9.0) using a guest CentOS 7.2 VM on VirtualBox 5.1.10. The symptom seems to be that the hostonly inet is completely missing when you run Based on that, it sound related to this #7876 (a 1.8.6 bug) which was fixed by #7866. That makes me think that it was caused by recent changes to https://github.com/mitchellh/vagrant/blob/master/plugins/guests/linux/cap/network_interfaces.rb made in 5482692 |
Monkey patching to revert 5482692 does not fix the problem. So that's not the issue. |
Confirmed that |
Verified that #8052 is the problem. Reverting it with a monkey patch causes my VMs to come up with both |
@karlkfi As mentioned in this comment on #8052, I think the solution will involve allowing an argument for |
Do you actually want the host-only static interface to be NetworkManager controlled? What if there are other interfaces that aren't? |
Good point. I saw your comment here and agree with you. Perhaps running |
I'm also affected by this. I'm currently using CentOS 7.1 with NFS mount and got this error while Vagrant trying to mount NFS shared folders (posting the error just in case anyone else is having the same problem):
Manually reverting the #8052 mentioned in the above comment in local installation make everything works again. |
Closing as dup of #8096 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Vagrant version
1.9.1
Using VirtualBox 5.1.10.
Using plugin
vagrant-hostsupdater (1.0.2)
Host operating system
Windows 10
Mac OS X 10.11
Guest operating system
CentOS 7.2
Running nginx
Vagrantfile
We're using KitchenCI along with Chef.
Our
.kitchen.yml
config generates this Vagrantfile:Debug output
None of the tools involved give any error output. All tests pass, nginx is running on the right ports. Verified that VirtualBox networking is configured correctly by Vagrant.
Expected behavior
Should be able to visit
tools-dev.mycompany.com
in the host browser and get a 404 nginx page.Actual behavior
Can't reach
tools-dev.mycompany.com
or172.28.128.138
.If we
kitchen login
(which is the equivalent ofvagrant ssh
) into the box and runcurl localhost
we get the expected HTML dump, but somehow VirtualBox networking isn't working. Same results on two different host machines (Windows & Mac).To get around this (temporarily) we had to set up the above port forwards. Then we can just navigate to
localhost:80
and receive the expected 404 page.Reason for submitting issue: Reverting to Vagrant 1.8.7 (and changing nothing else) gives expected behavior.
Steps to reproduce
vagrant-hostsupdater
or edit yourhosts
file manually.References
I searched through other issues and didn't find anything that matched this issue. This was the closest one I could find, but our CentOS guest does get an IPv4 address: #8096
The text was updated successfully, but these errors were encountered: