howNOTto setup and see NFS share from Ubuntu VM

Status
Not open for further replies.

Tim1962

Patron
Joined
Feb 26, 2015
Messages
281
Can someone please correct this into a HOWTO... !

Basic setup FN11 (192.168.0.110), Ubuntu server in a VM (so I can run Docker therein)(192.168.0.123) Whatever I do I can't get the NFS FreeNAS Share visible via the VM (though i seperately got SMB Share working OK)

On the FreeNAS I've set up a dataset "ncnfs" as /mnt/tank/ncnfs, owner nobody/nogroup (though tried every permutation before that!)

Added share to that with NFS, mapall as root,wheel

Tried
mount -t nfs 192.168.0.110:/mnt/tank/ncnfs /mnt/ncnfs
on the VM but that doesn't work

Added
192.168.0.110:/mnt/tank/ncnfs /mnt/ncnfs nfs guest,rw,auto,noatime,nolock,bg,tcp,rsize=8192,wsize=8192,timeo=14,intr 0 0
(latest version of many!)
mount -a works Ok(no errors) but doesn't connect the share

I am sure there is one or many glaring errors but I'm in severe hairpull mode and no longer sure I remember how to breathe! Anyone give me a nudge or two...
 
Last edited by a moderator:

mikensan

Dabbler
Joined
Jan 11, 2016
Messages
16
What error are you getting when you try to mount? Under the NFS share > advanced, did you set MapAll user and MapAll Group?
 

Tim1962

Patron
Joined
Feb 26, 2015
Messages
281
Currently(!) set as root/wheel respectively

On the VM if I type mount -a I get no errors but if I touch testfile on either side (FreenAS or Ubuntu VM), it doesn't show on the other
 

mikensan

Dabbler
Joined
Jan 11, 2016
Messages
16
What error do you get on the vm when you type mount -t nfs 192.168.0.110:/mnt/tank/ncnfs /mnt/ncnfs?
 

Tim1962

Patron
Joined
Feb 26, 2015
Messages
281
After umount /mnt/ncnfs
Then
mount -t nfs 192.168.0.110:/mnt/tank/ncnfs /mnt/ncnfs
No errors, just back to command line...
 

Tim1962

Patron
Joined
Feb 26, 2015
Messages
281
actually dataset owner is currently root/wheel (same as mappall) 777 with unix permissions type
 

Tim1962

Patron
Joined
Feb 26, 2015
Messages
281
Just set user to nobody, and share mapall to nobody and permissions type to windows and suddenly... Fingers crossed...
Not sure which actually made the difference but at this juncture I don't really care!
Thanks for the support, it really made a difference...
 
Status
Not open for further replies.
Top