Trying to make a NFS server with Debian in a LXC

9acca9

Well-Known Member
Dec 27, 2017
39
3
48
75
So... im getting this error and the nfs service dont start:

Code:
Reloading.
Apr 17 19:08:13 trilium systemd[1]: Mounting proc-fs-nfsd.mount - NFSD configuration filesystem...
Apr 17 19:08:13 trilium systemd[1]: Mounting run-rpc_pipefs.mount - RPC Pipe File System...
Apr 17 19:08:13 trilium systemd[1]: auth-rpcgss-module.service - Kernel Module supporting RPCSEC_GSS was skipped because of an unmet condition check>
Apr 17 19:08:13 trilium mount[1145]: mount: /proc/fs/nfsd: permission denied.
Apr 17 19:08:13 trilium mount[1145]:        dmesg(1) may have more information after failed mount system call.
Apr 17 19:08:13 trilium systemd[1]: rpc-svcgssd.service - RPC security service for NFS server was skipped because of an unmet condition check (Condi>
Apr 17 19:08:13 trilium systemd[1]: proc-fs-nfsd.mount: Mount process exited, code=exited, status=32/n/a
Apr 17 19:08:13 trilium systemd[1]: proc-fs-nfsd.mount: Failed with result 'exit-code'.
Apr 17 19:08:13 trilium systemd[1]: Failed to mount proc-fs-nfsd.mount - NFSD configuration filesystem.
Apr 17 19:08:13 trilium systemd[1]: Dependency failed for nfsdcld.service - NFSv4 Client Tracking Daemon.
Apr 17 19:08:13 trilium systemd[1]: nfsdcld.service: Job nfsdcld.service/start failed with result 'dependency'.
Apr 17 19:08:13 trilium systemd[1]: Dependency failed for nfs-server.service - NFS server and services.
Apr 17 19:08:13 trilium systemd[1]: Dependency failed for nfs-mountd.service - NFS Mount Daemon.
Apr 17 19:08:13 trilium systemd[1]: nfs-mountd.service: Job nfs-mountd.service/start failed with result 'dependency'.
Apr 17 19:08:13 trilium systemd[1]: Dependency failed for nfs-idmapd.service - NFSv4 ID-name mapping service.
Apr 17 19:08:13 trilium systemd[1]: nfs-idmapd.service: Job nfs-idmapd.service/start failed with result 'dependency'.
Apr 17 19:08:13 trilium systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
Apr 17 19:08:13 trilium mount[1146]: mount: /run/rpc_pipefs: permission denied.
Apr 17 19:08:13 trilium mount[1146]:        dmesg(1) may have more information after failed mount system call.
Apr 17 19:08:13 trilium systemd[1]: run-rpc_pipefs.mount: Mount process exited, code=exited, status=32/n/a
Apr 17 19:08:13 trilium systemd[1]: run-rpc_pipefs.mount: Failed with result 'exit-code'.
Apr 17 19:08:13 trilium systemd[1]: Failed to mount run-rpc_pipefs.mount - RPC Pipe File System.
Apr 17 19:08:13 trilium systemd[1]: Dependency failed for rpc_pipefs.target.
Apr 17 19:08:13 trilium systemd[1]: Dependency failed for rpc-gssd.service - RPC security service for NFS client and server.
Apr 17 19:08:13 trilium systemd[1]: rpc-gssd.service: Job rpc-gssd.service/start failed with result 'dependency'.
Apr 17 19:08:13 trilium systemd[1]: rpc_pipefs.target: Job rpc_pipefs.target/start failed with result 'dependency'.
Apr 17 19:08:24 trilium systemd[1]: Mounting proc-fs-nfsd.mount - NFSD configuration filesystem...
Apr 17 19:08:24 trilium systemd[1]: Mounting run-rpc_pipefs.mount - RPC Pipe File System...
Apr 17 19:08:24 trilium systemd[1]: auth-rpcgss-module.service - Kernel Module supporting RPCSEC_GSS was skipped because of an unmet condition check>
Apr 17 19:08:24 trilium mount[1158]: mount: /proc/fs/nfsd: permission denied.
Apr 17 19:08:24 trilium mount[1158]:        dmesg(1) may have more information after failed mount system call.
Apr 17 19:08:24 trilium systemd[1]: rpc-svcgssd.service - RPC security service for NFS server was skipped because of an unmet condition check (Condi>
Apr 17 19:08:24 trilium systemd[1]: proc-fs-nfsd.mount: Mount process exited, code=exited, status=32/n/a
Apr 17 19:08:24 trilium systemd[1]: proc-fs-nfsd.mount: Failed with result 'exit-code'.
Apr 17 19:08:24 trilium systemd[1]: Failed to mount proc-fs-nfsd.mount - NFSD configuration filesystem.
Apr 17 19:08:24 trilium systemd[1]: Dependency failed for nfsdcld.service - NFSv4 Client Tracking Daemon.
Apr 17 19:08:24 trilium systemd[1]: nfsdcld.service: Job nfsdcld.service/start failed with result 'dependency'.
Apr 17 19:08:24 trilium systemd[1]: Dependency failed for nfs-server.service - NFS server and services.
Apr 17 19:08:24 trilium systemd[1]: Dependency failed for nfs-mountd.service - NFS Mount Daemon.
Apr 17 19:08:24 trilium systemd[1]: nfs-mountd.service: Job nfs-mountd.service/start failed with result 'dependency'.
Apr 17 19:08:24 trilium systemd[1]: Dependency failed for nfs-idmapd.service - NFSv4 ID-name mapping service.
Apr 17 19:08:24 trilium systemd[1]: nfs-idmapd.service: Job nfs-idmapd.service/start failed with result 'dependency'.
Apr 17 19:08:24 trilium systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
Apr 17 19:08:24 trilium mount[1159]: mount: /run/rpc_pipefs: permission denied.
Apr 17 19:08:24 trilium mount[1159]:        dmesg(1) may have more information after failed mount system call.
Apr 17 19:08:24 trilium systemd[1]: run-rpc_pipefs.mount: Mount process exited, code=exited, status=32/n/a
Apr 17 19:08:24 trilium systemd[1]: run-rpc_pipefs.mount: Failed with result 'exit-code'.
Apr 17 19:08:24 trilium systemd[1]: Failed to mount run-rpc_pipefs.mount - RPC Pipe File System.
Apr 17 19:08:24 trilium systemd[1]: Dependency failed for rpc_pipefs.target.
Apr 17 19:08:24 trilium systemd[1]: Dependency failed for rpc-gssd.service - RPC security service for NFS client and server.
Apr 17 19:08:24 trilium systemd[1]: rpc-gssd.service: Job rpc-gssd.service/start failed with result 'dependency'.
Apr 17 19:08:24 trilium systemd[1]: rpc_pipefs.target: Job rpc_pipefs.target/start failed with result 'dependency'.
lines 209-243/243 (END)

What i can do?
Thanks
 
Hello,
NFS Shares won't work in an 'unprivileged' Container.
I recommend you install a new Container, minding the option "unprivileged" is *not* set, and try again from there.

Kind regards,

GD
 
thanks, but that would not be risky in some manner? if yes, i can prevent the risk if i make it "privileged"?