NFS mount permission denied - Which configuration options for NFS shares?

    • OMV 2.x
    • Resolved

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • NFS mount permission denied - Which configuration options for NFS shares?

      Hello, I am struggling with setting up an NFS share on OMV. I have OMV running on Proxmox and am trying to share a folder to a stock Ubuntu container. Here is my /etc/exports :

      Source Code

      1. # /etc/exports: the access control list for filesystems which may be exported
      2. # to NFS clients. See exports(5).
      3. /export/unsorted 10.10.0.0/24(rw,all_squash,insecure,anonuid=0,anongid=0)
      4. # NFSv4 - pseudo filesystem root
      5. /export 10.10.0.0/24(ro,fsid=0,root_squash,no_subtree_check,hide)


      I selected the settings according to various forums posts. However, I get this error message when trying to mount the share on the client:

      Source Code

      1. root@beets:~# mount -v -t nfs 10.10.0.110:/export/unsorted /mnt/nfs/unsorted
      2. mount.nfs: timeout set for Sat Oct 17 21:12:18 2015
      3. mount.nfs: trying text-based options 'vers=4,addr=10.10.0.110,clientaddr=10.10.0.201'
      4. mount.nfs: mount(2): Permission denied
      5. mount.nfs: access denied by server while mounting 10.10.0.110:/export/unsorted


      How do I solve this problem?
    • It won't work because you need to setup the container in host mode. So the ip the server sees is 10.10.x

      try and change the nfs server network host allow to 172.20.0.0/24 which is the docker0 adapter ip. Double check that anyway with ifconfig.

      i submitted a feature request to allow
      muliple host per share, hasn't been
      looked yet.
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • Hmm, I am not actually using Docker, but a Proxmox LXC Container. Ifconfig of the Container gives me this output:

      Source Code

      1. root@beets:~# ifconfig
      2. eth10 Link encap:Ethernet HWaddr 96:aa:e9:b8:92:51
      3. inet addr:10.10.0.201 Bcast:10.10.255.255 Mask:255.255.0.0
      4. inet6 addr: fe80::94aa:e9ff:feb8:9251/64 Scope:Link
      5. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
      6. RX packets:1709 errors:0 dropped:0 overruns:0 frame:0
      7. TX packets:891 errors:0 dropped:0 overruns:0 carrier:0
      8. collisions:0 txqueuelen:1000
      9. RX bytes:636592 (636.5 KB) TX bytes:100215 (100.2 KB)
      10. lo Link encap:Local Loopback
      11. inet addr:127.0.0.1 Mask:255.0.0.0
      12. inet6 addr: ::1/128 Scope:Host
      13. UP LOOPBACK RUNNING MTU:65536 Metric:1
      14. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      15. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
      16. collisions:0 txqueuelen:0
      17. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
      Display All


      Showmount -e on the client and host work fine too, the shares are visible from both ends.
    • Source Code

      1. root@beets:~# mount 10.10.0.110:/export/unsorted /mnt/nfs/unsorted
      2. mount.nfs: access denied by server while mounting 10.10.0.110:/export/unsorted
      3. root@beets:~#


      Mounting without any arguments also does not result in success :( I am hanging out in the IRC today, if anyone is available.