Mounting NFS share between OSX and Centos VM

Posted by Adam on Server Fault See other posts from Server Fault or by Adam
Published on 2012-11-26T09:37:06Z Indexed on 2012/11/26 11:08 UTC
Read the original article Hit count: 591

Filed under:
|

I'm having issues mounting an NFS share I've made on my Mac host (server) from a Centos VM (client). I'm getting a permission denied error.

I have this line in /etc/exports on server:

/Users/adam/Sites/ 192.168.1.223(rw)

and in /etc/fstab on client:

192.168.1.186:/Users/adam/Sites/ /home/adam/Sites/ nfs rw 0 0

I'm sure this is a simple configuration issue, but I've never set up NFS properly before.

Extra info:

# mount -v 192.168.1.186:/Users/adam/Sites/ /home/adam/Sites/
mount: no type was given - I'll assume nfs because of the colon
mount.nfs: timeout set for Mon Nov 26 07:31:40 2012
mount.nfs: trying text-based options 'vers=4,addr=192.168.1.186,clientaddr=192.168.1.223'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'addr=192.168.1.186'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.186 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.186 prog 100005 vers 3 prot UDP port 958
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 192.168.1.186:/Users/adam/Sites/

© Server Fault or respective owner

Related posts about nfs-server

Related posts about nfs-client