-
Notifications
You must be signed in to change notification settings - Fork 47
Running vagrant up
hangs on NFS mounting (Vagrant 1.4.3)
#4
Comments
I had the same problem, ended up just updating my Vagrant to 1.5.4 and it works perfectly. |
I fixed the problem by adding |
This is a vagrant related problem, not something we can fix, but can document. Thanks for the tip @Kaamaru. |
FWIW, I have this problem, too, with the @Kaamaru fix and vagrant 1.6.3 on virtual box 4.3.14. |
Re-tested with vagrant 1.6.5, both with and without @Kaamaru mount_options. Same behavior, hangs at 'default: Mounting NFS shared folders.' Logs included;
|
On further digging, and using VAGRANT_LOG=debug, I see that the guest FreeBSD system is trying to mount the nfs share from 10.0.1.1, which is unreachable.
When I log into the guest freebsd box using vagrant ssh, I can see that I'm connected from 10.0.2.2, and interrogating 10.0.2.2 with rpcinfo, or namp, shows that rpcbind, nfs and ici? are all listening there. By trying to manually run So, it appears that IP addresses are being confused. I have a wireless network card (has had problems running virtaualbox in bridged mode in the past, and I have some docker[0,1] network interfaces too, but I don't think they play a role. I shall continue digging. |
@jevonearth I was able to move past the NFS mount problem by switching to another box ( |
I've had a problem with this and it turned out that I had duplicate entries in my /etc/exports file. After commenting one of them out it worked. Hope this helps someone. |
My problem appears to be my host system, arch linux not supporting nfs over udp. I removed udp from the mount_options, and now the nfs synced_folders work just fine. Related: hashicorp/vagrant#2989 |
I've tried everything suggested here and my box still hangs on
|
@FractalizeR Are you able to start it in gui mode? I can't remember the setting to add to your Vagrant file but it could be that your box is waiting for input. You would be able to see this in gui mode. I'll try and find you a link. |
@FractalizeR maybe something like this: http://stackoverflow.com/questions/19013851/enabling-gui-in-vagrantfile-settings |
The problem was in starting vagrant command from inside PHPStorm. I just started it from pure shell and got password request for modifying /etc/exports on host machine. After that all went fine. |
Hi, I tumbled upon this thread while looking for a solution (had the same problem on Mint 17.1). I could fix it by installing the missing package ;) sudo apt-get install nfs-kernel-server more on this here: Hope this helps |
I had this problem with Test Kitchen on CentOS 7. I fixed it by giving sudo privileges to the user running Test Kitchen (I have no idea why it just hung rather then giving me some sort of permission denied error). |
@gfauredumont Thanks, your comment above helped me get it working on Linux Mint 17.1. nfs-kernel-server package was not installed. |
I am having the same problem, taking out udp from mount_options did not work for me, both my guest and hosts are 14.04 LTS |
apparently it was my Firewall on Ubuntu Host blocking NFS and rpcbind ports |
I'm getting this as well. Does anyone know a way to manually run the NFS mount? |
Thanks @aftabnaveed! Your comment made me solve my issue. I had a firewall that was blocking incoming requests and prevented nfs to mount the folder. After disabling the firewall everything was fine. |
In my case it was the firewall, I'm using Fedora 21 and we know that all RH based distros come with a very restrict firewall! Maybe Vagrant should test with a simple netcat if the door is opened, this would made things easier to deduce! |
This config works for me:
|
Hi there, I have the same problem but I found a simple workaround. In fact, as soon
Then I kill and execute it:
And everything works fine. If you have a firewall enable on host side make sure to add the proper rules. As example, with Little Snitch for OS X you can temporary disable it to run the mount command and the re-enable it (at least while trying this workaround). Now, this is really boring and it should work out of the box with Vagrant. Anyone can figure out why the command executed by Vagrant fails? It's something wrong in FreeBSD or it's really a Vagrant bug? Thanks for your help! Regards, Nicholas Host: OS X 10.9.5
/etc/exports:
|
another hint: i needed to restart the nfs-kernel-server after doing a delete and fresh checkout of a project from git. nfs server was probably looking at the old inode. |
I have also had this problem and what is causing this is McAfee. Had to change desktop firewall to adaptive mode. If this is not your case, check your anti-virus settings. |
For Linux (Ubuntu/Debian) make sure you either stop the firewall or add exception.
|
@fdemmer, same here; thank you for the hint! Apparently, this issue can have very many causes. Better diagnostics would be very helpful. |
In my case this issue was solved just installing the |
Moving this to documentation soon. |
@rafaeltuelho thx, installing the |
For anyone on OSX check your Firewall preferences Otherwise just disable the OSX Firewall altogether if you don't need it. |
@bradleyflood Actually, I don't have that option enabled and it works fine. In fact I don't think is a good security suggestion. Please look at your settings, it's not necessary to disable the firewall to make NFS working properly with Vagrant. |
Work for me - VAGRANT_USE_VBOXFS=true vagrant up |
It was a firewall in my case. |
Thank you @bradleyflood! |
Thanks, @bradleyflood! |
@bradleyflood THANK YOU!!! |
We had a similar issue; turns out it was McAfee firewall blocking it all along. |
My case is that the nfs directory from the host server is not visible on guest. Hope that helps someone. |
It was McAfee that was blocking the NFS share on Vagrant. Anyone know what rule to put into McAfee to enable this to work as kinda would like the firewall on! |
+1 firewall issue. Had to disable suse's default firewall. Not ideal, will have to add a rule at somepoint |
For Debian users. If you've configured a private IP for your Vagrant machine, similar to this: config.vm.network "private_network", ip: "192.168.50.50" You just need to add as firewall exception for that specific IP: $ sudo ufw allow from 192.168.50.50
$ sudo service ufw restart |
for SuSE users: edit find i.e. then re-issue the firewall command to reload rules:
|
I had a similar problem in Ubuntu, Vagrant version 1.9.3, VB version 5.1.22 The problem was that my host's OS has changed the I had to run:
There were many other things I tried: starting/stopping the firewall (ufw, iptables, both, neither); adding specific rules to the firewall to allow all traffic to this IP; It wasn't until I made sure my vboxnet0 had an IP on the host machine that everything worked. EDIT: DON'T FORGET TO LINK YOUR INTERFACE! |
Ubuntu 16.04.2 Similar to @chadfurman , Not exactly sure why but i'll be keeping an eye out on reboot, I believe i just updated virtualbox versions. UPDATE So yes my host only network will not come up when vagrant starts anymore, very interesting. My vagrant file line for the private network is: Also it looks like the real source of the issue is being discussed here: hashicorp/vagrant#8166 |
Docker had added a similar entity for me at So Vagrant was unable to share the NFS Fixed by commentating out the docker line |
Vagrant hangs when booting this image while attempting to mount the NFS path. I'm not positive, but I believe Vagrant is failing at OS detection and executing
/etc/init.d/nfs-kernel-server
on the client. Running Linux Mint (Debian / Ubuntu) on the host.I can, however, kill the boot process, then
vagrant ssh
to get in (the filesystem of course isn't mounted):The text was updated successfully, but these errors were encountered: