You are here
Cannot start NFS server on file server on a unprivileged LXC
Sergey Romanov - Mon, 2023/06/26 - 14:37
I wanted to create NFS share. I did that successfully during my tests on privileged container. now I try to setup more secure environment. When I create NFS share in webmin i get
rpc.nfsd: no process found Stopping nfs-kernel-server (via systemctl): nfs-kernel-server.service. Starting nfs-kernel-server (via systemctl): nfs-kernel-server.serviceA dependency job for nfs-server.service failed. See 'journalctl -xe' for details. failed!
I stared investigation and I see that dependency proc service not running and I cannot start it.
root@nas ~# mount | grep nfsd root@nas ~# mount -v -t nfsd nfsd /proc/fs/nfsd mount: /proc/fs/nfsd: permission denied. root@nas ~# ls -la /proc/fs total 0 dr-xr-xr-x 7 nobody nogroup 0 Jun 26 01:12 . dr-xr-xr-x 539 nobody nogroup 0 Jun 26 01:12 .. dr-xr-xr-x 9 nobody nogroup 0 Jun 26 11:05 ext4 dr-xr-xr-x 9 nobody nogroup 0 Jun 26 11:05 jbd2 dr-xr-xr-x 3 nobody nogroup 0 Jun 26 01:12 lockd dr-xr-xr-x 3 nobody nogroup 0 Jun 26 11:05 nfs dr-xr-xr-x 2 nobody nogroup 0 Jun 26 01:12 nfsd
When I try to change permissions or ownership of those directories, I get operation is not permitted.
Forum: