-
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 guest and host cannot communicate (Ubuntu 17.04) #8626
Comments
Solved. I had ran:
but I did not run
|
I had the same problem with all vagrant boxes and found the solution to be: removing the second line in the /etc/hosts file
Installing net-tools: So installing them via
and it should work again. |
I'm having this problem on Ubuntu 17.04, and no combination of solutions mentioned in this thread has helped (I'm not able to ping the guest from the host or vice versa). Is there anything else that can be done to troubleshoot it? |
@danepowell - If you can, please share your version of vagrant, Vagrantfile, a log of debug output from vagrant, and maybe version of virtualbox that you're using. Thanks! |
I figured out the issue and posted it here: geerlingguy/drupal-vm#1480 Essentially, I needed to install the virtualbox-dkms package. I had installed Virtualbox 5.1.24 by downloading the package directly from virtualbox.org, but this package did not have a dependency on virtualbox-dkms like the version in the zesty repos does. |
@danepowell installing virtualbox-dkms package for Debian Jessie VirtualBox 5.1.24 equivalent package did not solve the issue for me. There is a known bug in VirtualBox 5.1.24 filed here. Apparently, you need to manually bring up the vboxnet interface used by your guest OS. Assuming your NIC interface used by your VM brought up by 'vagrant' is vboxnet0, just run the following to make the nfs mount go through w/o issues: |
This issue needs opening: |
@chadfurman you ran |
Try switching off the ubuntu UFW temporarily |
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
Vagrant 1.9.5
VirtualBox Graphical User Interface Version 5.1.22_Ubuntu r115126
Host operating system
Ubuntu 17.04
Guest operating system
Ubuntu 14.04
Vagrantfile
Debug output
https://gist.github.com/chadfurman/4ddfdf0e5d5203ef8353db1a4955b16f
Expected behavior
Guest and Host should be able to ping back and forth. Guest should be able to mount NFS
Actual behavior
Guest and Host cannot communicate. Both are on vboxnet0 with 192.168.33.* ip addresses. Neither has a firewall.
Steps to reproduce
vagrant up
vagrant ssh
into the box and then try to ping the host w/ping 192.168.33.1
-- ping will failping 192.168.33.99
-- ping will failReferences
#8177
#8140
#5802
wunki/vagrant-freebsd#4
geerlingguy/drupal-vm#245
scotch-io/scotch-box#92
The text was updated successfully, but these errors were encountered: