-
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
No guest IP was given to the Vagrant core NFS helper with virtualbox 5.0.16 and dhcp #7138
Comments
If you are trying to make a brand new VM when you run your first "vagrant up" the VirtualBox DHCP server does not know about your VM's MAC address and does not know what IP it will give it. On your 2nd vagrant up, NFS should work fine with DHCP and no need to set a static IP. |
I'm seeing this with a new Debian 9 Stretch base box that I'm using for Drupal VM. Steps to reproduce:
Tested with Vagrant 1.9.3 and 1.9.5 and I can't get NFS shared folders to work. I have them working with my Ubuntu base boxes (tested recently), and also with my CentOS boxes. Could be something in the Packer config that builds the box, too... I'm not ruling that out (https://github.com/geerlingguy/packer-debian-9). |
I was about to say I got the same thing, where it didn't work the first time but worked manually after:
...but then I read through the logs a little more closely, and found that Vagrant was actually getting a value later:
But then NFS keeps timing out still:
If I run the |
Ah, so the rabbit hole was a little deeper. A couple days ago, I had been testing some local Docker networking tricks to get some Docker containers accessible on certain IP addresses so I could access by hostname. As part of that process, I had added a loopback alias on the same IP address I was using for the VM:
So finally I remembered that, and deleted the alias ( |
@geerlingguy @gdelpierre - I've been trying to reproduce this and I can't seem to do so. If you update your Virtualbox and Vagrant tools to the latest versions, do you still get this error? Thank you! Here are the versions of my tools:
|
@briancain - I am not having any issues anymore (see previous comment about Docker networking interference). |
@geerlingguy Thanks for the confirmation! Going to close this up now 😃 |
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.8.1
Host operating system
Darwin Kernel Version 15.3.0
Guest operating system
Ubuntu 14.04.4 4.2.0-27-generic
Vagrantfiles
Debug output
but it actually works:
Actual behavior
No guest IP was given to the Vagrant core NFS helper. This is an internal error that should be reported as a bug.
It works by allocating a static IP.
Thank you.
Best regards.
The text was updated successfully, but these errors were encountered: