ls -ld
gives me the information that the folder is owned by user nobody and user nogroup.Hi everyone. I'm quite new to Proxmox and maybe need some advice.
Mounting itself works fine with the tutorial, but no matter what I try, I get some permission errors when handing over the NFS shares to the LXC.
My mount options in OpenMediaVault contain anongid=101000,anonuid=101000, as I have a user inside the LXC with uid=1000(myuser) gid=1000(myuser).
Checking the mounted folder and its content withls -ld
gives me the information that the folder is owned by user nobody and user nogroup.
Maybe someone can give me a hint what I may have missed.
Thanks
root@pve:~# ls -l /mnt
total 32
drwxrwxrwx 7 1005 1005 4096 Aug 19 23:22 nfs_nas_data
drwxrwxrwx 7 1005 1005 4096 Aug 21 14:22 nfs_nas_downloads
drwxrwxrwx 7 1005 1005 4096 Aug 20 19:35 nfs_nas_media
root@jellyfin:~# ls -l /mnt
total 24
d--------- 7 nobody nogroup 4096 Aug 19 20:22 data
d--------- 7 nobody nogroup 4096 Aug 21 11:22 downloads
d--------- 7 nobody nogroup 4096 Aug 20 16:35 media
Hello, does anybody know the reason why this setup hinders snapshoting functionality?Very cool but only problem is you can't take snapshots of the lxcs because of the mounts unfortunately.
AFAIK the short of it is:Hello, does anybody know the reason why this setup hinders snapshoting functionality?
I would love to have a) unprivileged CT with b) NFS share bind-mounted from the host and c) snapshot functionality for daily CT backups to PBS
So far it seems like keep dreaming...
Thanks in advance for any kind of hint or explanation.
Thanks for this. Finally got my NFS share usable in my LXC.I was getting a 'Permission Denied' error in the LXC containers.
The solution was to add 'all_squash' to the NFS share configuration on the NAS.
groupmod -g 1001 gnas
cat /etc/group | grep gnas
all_squash,anongid=1001
subtree_check,insecure,all_squash,anongid=1001
groupadd -g 1001 gnas
usermod -aG <your-username> gnas
groups <your-username>
sudo mount -t nfs4 -o nfsvers=4.2 <your-ip>:/nasnfs ~/nas
touch ~/nas/from_laptop
ls -la ~/nas
groupadd -g 1001 gnas
usermod -aG root gnas
groups root
sudo mount -t nfs4 -o nfsvers=4.2 <your-ip>:/nasnfs /nas
touch /nas/from_proxmox
ls -la /nas
pct set <lxc-container-id> -mp0 /nas,mp=/mnt/nasnfs
groupadd -g 1001 gnas
usermod -aG root gnas
touch /mnt/nasnfs/from_lxc
ls -la /mnt/nasnfs
Thank you for the follow-up. This was the final piece for me to have my Synology NAS going into calibre-web in an LXC.Found it. The problem was the squash option in the NFS permissions for the Synology shared folder. I had to change it to "map all users to admin"