NFS fails on El Capitan

239 views
Skip to first unread message

Andreas H Meier

unread,
Apr 8, 2016, 12:53:55 PM4/8/16
to Vagrant
Host: MacOsX 10.11.4, tried both on MacPro1,1 and newest MacBookPro Retina
Vagrant: 1.8.1
VirtualBox: 5.0.16 r105871

Guest: tried multiple versions of ubuntu, both base boxes (ubuntu-trusty64) as well as provisioned boxes like Homestead/Laravel

Issue: guest works fine as long as shared volumes are not mounted via nfs. When declaring type: 'nfs' the "vagrant up" command hangs for minutes while trying to mount the volume and then fails to mount with the following error message:

The following SSH command responded with a non-zero exit status.

Vagrant assumes that this means the command failed!


mount -o 'rw,vers=3,tcp,fsc,actimeo=2' 192.168.10.1:'/Volumes/Files/Users/username' /home/vagrant/username


Stdout from the command:




Stderr from the command:


mount.nfs: Connection timed out


The VM is running, but the shared folders are not there.


I have tried with and without nfs mount_options, the problem persists.


I have turned SIP off and on, the problem persists.


etc/hosts contains localhost 127.0.0.1 (was brought up as a possible cause)


no firewall active (was brought up as a possible cause)


Apple console does not provide an error message, the mount.nfs command just idles.


Has anybody figured out how to fix this?

Alvaro Miranda Aguilera

unread,
Apr 8, 2016, 11:00:09 PM4/8/16
to vagra...@googlegroups.com
hello,

Apple have some security issues

ie. not share your home
not share nested folder ie  /folder /folder/this /folder/this/too


So, try to share a different folder than your home.

Alvaro.


--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/9fdb235a-9713-41cd-8828-e6a906668023%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andreas H Meier

unread,
Apr 9, 2016, 9:51:59 AM4/9/16
to vagra...@googlegroups.com
Good thought, Alvaro,

but I have tried multiple sub folders within my home directory, and I get the same problem. I will give it a try with a different volume and see what happens.

Andreas

You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/WxQJajTsWLc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0eyZ5480z54-6BYq2kq%3Dx2iZQPK16%3DYBMsjqC1Fcp3r0GQ%40mail.gmail.com.

Alvaro Miranda Aguilera

unread,
Apr 10, 2016, 2:38:58 AM4/10/16
to vagra...@googlegroups.com
Hello,

Try to mount 1 folder first, that is not your home directory.

Then move 2 folders that are not your home and are not nested.

Alvaro

Andreas H Meier

unread,
Apr 10, 2016, 12:53:23 PM4/10/16
to vagra...@googlegroups.com
Tried it. Loaded non-home directory folder. Same problem. Hangs at the "==> default: Mounting NFS shared folders “ prompt.

Andreas

Joaquin Menchaca

unread,
May 3, 2016, 1:01:32 AM5/3/16
to Vagrant
There's some other option, forgot.  NFS has sort of not worked well since Lion or before Lion.  Apple never cared, and still don't care.

When I mounted using NFS post Lion, I think had to add the reerved port, i.e. resvport, option.


Reply all
Reply to author
Forward
0 new messages