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,all_squash,insecure,anonuid=0,anongid=0)
      4. # NFSv4 - pseudo filesystem root
      5. /export,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 /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=,clientaddr='
      4. mount.nfs: mount(2): Permission denied
      5. mount.nfs: access denied by server while mounting

      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 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 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: Bcast: Mask:
      4. inet6 addr: fe80::94aa:e9ff:feb8:9251/64 Scope:Link
      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: Mask:
      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 /mnt/nfs/unsorted
      2. mount.nfs: access denied by server while mounting
      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.