My attempt to run a NFS server within a LXC Linux Container failed. I used the debian based TurnKey Linux fileserver template and tried to activate the NFS kernel server within its LXC (/etc/exports were already configured):
Is there some trick to enable this inside LXC or is it generally impossible because the nfs-kernel-server can not be shared with containers?
I would prefer to setup the NFS server within a LXC and not enable it in proxmox itself.
Thank you!
Code:
# /etc/init.d/nfs-kernel-server start
mount: nfsd is write-protected, mounting read-only
mount: cannot mount nfsd read-only
Exporting directories for NFS kernel daemon....
Starting NFS kernel daemon: nfsdrpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No such file or directory).
Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart rpc.nfsd to correct the problem
failed!
# mount -t nfsd nfsd /proc/fs/nfsd
mount: nfsd is write-protected, mounting read-only
mount: cannot mount nfsd read-only
Is there some trick to enable this inside LXC or is it generally impossible because the nfs-kernel-server can not be shared with containers?
I would prefer to setup the NFS server within a LXC and not enable it in proxmox itself.
Thank you!