[SOLVED] cannot mount nfs share from within an lxc container

hakayova

New Member
Dec 9, 2023
7
2
3
I was able to do this up until the upgrade to 9.1.1. Specifically, I had an lxc container which had an /etc/fstab entry for an nfs share. The container failed to stop last night for backup, and since then I cannot mount the share anymore with the same settings that used to work before. I tried restoring the previous versions of this particular container from its backups with the same behavior. I am pretty stumped at the moment. The error I am getting to the mount -a command is
Code:
mount: /mnt/upload: permission denied.
       dmesg(1) may have more information after failed mount system call.

My /etc/fstab file is as follows:
Code:
192.168.1.203:/pool0/immich /mnt/upload nfs rw,hard,intr 0 0

dmesg doesn't work from within the container
Code:
dmesg: read kernel buffer failed: Operation not permitted

Any pointers will be greatly appreciated!
 
Never mind the noise. I realized that this required the bind mount feature and once I rediscovered the process, it went very smooth and rewarding.