Yunohost server as nfs client

Hi everyone,

I want to mount nfs share (from a nas) to my yunohost server.

My YunoHost server

**Hardware: A virtual machine in LXC proxmox container.
**YunoHost version: 3.5.2.2
**I have access to my server : Through SSH

Description of my issue

I have a nfs share from my nas (192.168.1.207):

/export/Musique 192.168.1.211/24(fsid=2,ro,subtree_check,insecure)

I want to mount this share on my yunohost (192.168.1.211) in /home/yunohost.multimedia/share/Music/nas (drwxrwxr-x+) :

$ sudo mount -v -t nfs -o ro 192.168.1.207:/export/Musique /home/yunohost.multimedia/share/Music/nas
mount.nfs: timeout set for Sun Jun 30 17:42:59 2019
mount.nfs: trying text-based options 'vers=4.2,addr=192.168.1.207,clientaddr=192.168.1.211'
mount.nfs: mount(2): Operation not permitted
mount.nfs: trying text-based options 'addr=192.168.1.207'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.207 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.207 prog 100005 vers 3 prot UDP port 38262
mount.nfs: mount(2): Operation not permitted
mount.nfs: Operation not permitted

I have the same result if I use the fstype nfs4.
If I test the share on a other computer (192.168.1.60), it’s working.
There is a special think to do on yunohost to make nfs work ?

Thanks in advance for your help

It might be a problem with integrated firewall ? (i don’t really think it’s the solution…)

The problem is still here when the yunohost firewall is disabled.

Maybe cause by apparmor of proxmox. I’m searching in this direction…

When the apparmor profile allowing nfs, the problem remain.
I tried all the solutions I found but none worked…

Hello
Is the other machine that can connect to your nfs share an LXC container too?

No, it’s a standard Raspberry Pi with raspbian.

So maybe it’s not a yunohost relative problem, but a LXC relative problem.
Can you create another lxc debian container and try to connect it to your nfs share?

These tests are a good idea. Thanks !

  • Work in a virtual machine
  • Not working in a LXC container
    So it’s a container config issue.
1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.