PDA

View Full Version : [VU+ Solo2] Cannot connect to NFS server running on OpenViX 4.0



echnaton
26-03-16, 12:57
Hello all,

I have enabled the NFS server on my Solo2 running OpenViX 4.0 003. Unfortunately I am not able to mount any NFS shares from Kodi or Ubuntu.
my etc/exports looks like this:



/media/hdd 192.168.123.0/24(ro,async,no_subtree_check)

...and I am connecting from 192.168.123.26. My Solo2 has the IP 192.168.123.25.

When I try to mount /media/hdd from Ubuntu, I am getting the following error:


sudo mount -t nfs 192.168.123.25:/media/hdd /mnt

mount.nfs: access denied by server while mounting 192.168.123.25:/media/hdd

The NFS share seems to exist though:


showmount -e 192.168.123.25

Export list for 192.168.123.25:
/media/hdd 192.168.123.0/24

:confused:

Any idea what I am doing wrong? Am I missing something?

Thank you!

DaMacFunkin
26-03-16, 14:58
I too couldn't mount a NFS share from my NAS to vix or kodi even though it was enabled, I had to telnet into the NAS and enable certain permissions, don't know if this your problem but if it is there is a full section on wiki about NFS permissions.

echnaton
27-03-16, 18:55
You are right, the permissions were incorrect. Thank you for the hint. For those who run into the same problem, here is what I did to fix it:

1. added the all_squash option to etc/export to map all accesses uid 1025 (anonuid):


/media/hdd/music 192.168.123.0/24(ro,all_squash,insecure,no_subtree_check)

2. chown all files and folders in the export to uid 1025


chown -R 1025 /media/hdd/music/