You are not logged in.
Hey,
for playing around at home I have an minimal, headless arch installation on a APU 4C2.
Every "function" I want to server, like a nfs Server, Jumphost or nginx with nextcloud should be in systemd nspawn containers.
The first part where I stuck at the moment is the first container (again arch installation, hostname is nfs1) with a nfs exporter. here is the journalctl output:
Dec 11 15:01:40 nfs1 systemd[1]: Mounting RPC Pipe File System...
-- Subject: Unit var-lib-nfs-rpc_pipefs.mount has begun start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit var-lib-nfs-rpc_pipefs.mount has begun starting up.
Dec 11 15:01:40 nfs1 systemd[1]: Mounting NFSD configuration filesystem...
-- Subject: Unit proc-fs-nfsd.mount has begun start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit proc-fs-nfsd.mount has begun starting up.
Dec 11 15:01:40 nfs1 mount[103]: mount: /var/lib/nfs/rpc_pipefs: permission denied.
Dec 11 15:01:40 nfs1 systemd[1]: var-lib-nfs-rpc_pipefs.mount: Mount process exited, code=exited status=32
Dec 11 15:01:40 nfs1 systemd[1]: var-lib-nfs-rpc_pipefs.mount: Failed with result 'exit-code'.
Dec 11 15:01:40 nfs1 systemd[1]: Failed to mount RPC Pipe File System.
-- Subject: Unit var-lib-nfs-rpc_pipefs.mount has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit var-lib-nfs-rpc_pipefs.mount has failed.
--
-- The result is failed.
Dec 11 15:01:40 nfs1 systemd[1]: Dependency failed for rpc_pipefs.target.
-- Subject: Unit rpc_pipefs.target has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit rpc_pipefs.target has failed.
--
-- The result is dependency.
Dec 11 15:01:40 nfs1 systemd[1]: Dependency failed for NFSv4 ID-name mapping service.
-- Subject: Unit nfs-idmapd.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nfs-idmapd.service has failed.
--
-- The result is dependency.
Dec 11 15:01:40 nfs1 systemd[1]: nfs-idmapd.service: Job nfs-idmapd.service/start failed with result 'dependency'.
Dec 11 15:01:40 nfs1 systemd[1]: Dependency failed for RPC security service for NFS client and server.
-- Subject: Unit rpc-gssd.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit rpc-gssd.service has failed.
--
-- The result is dependency.
Dec 11 15:01:40 nfs1 mount[104]: mount: /proc/fs/nfsd: permission denied.
Dec 11 15:01:40 nfs1 systemd[1]: rpc-gssd.service: Job rpc-gssd.service/start failed with result 'dependency'.
Dec 11 15:01:40 nfs1 systemd[1]: rpc_pipefs.target: Job rpc_pipefs.target/start failed with result 'dependency'.
Dec 11 15:01:40 nfs1 systemd[1]: proc-fs-nfsd.mount: Mount process exited, code=exited status=32
Dec 11 15:01:40 nfs1 systemd[1]: proc-fs-nfsd.mount: Failed with result 'exit-code'.
Dec 11 15:01:40 nfs1 systemd[1]: Failed to mount NFSD configuration filesystem.
-- Subject: Unit proc-fs-nfsd.mount has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit proc-fs-nfsd.mount has failed.
--
-- The result is failed.
Dec 11 15:01:40 nfs1 systemd[1]: Dependency failed for NFS server and services.
-- Subject: Unit nfs-server.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nfs-server.service has failed.
--
-- The result is dependency.
Dec 11 15:01:40 nfs1 systemd[1]: Dependency failed for NFS Mount Daemon.
-- Subject: Unit nfs-mountd.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nfs-mountd.service has failed.
--
-- The result is dependency.
Dec 11 15:01:40 nfs1 systemd[1]: nfs-mountd.service: Job nfs-mountd.service/start failed with result 'dependency'.
Dec 11 15:01:40 nfs1 systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.Actual I understand it like:
nfs depends on rpc, rpc fails while mounting /var/lib/nfs/rpc_pipefs because of failing permissions. But: permissions are completly open:
[root@nfs1 ~]# ls -Lla /var/lib/nfs/
total 4
drwxr-xr-x 1 root root 126 Dec 7 22:56 .
drwxr-xr-x 1 root root 164 Dec 7 22:07 ..
-rw------- 1 root root 0 Dec 7 22:11 .etab.lock
-rw-r--r-- 1 root root 0 Sep 7 18:02 etab
-rw-r--r-- 1 root root 0 Dec 7 22:11 export-lock
-rw-r--r-- 1 root root 0 Sep 7 18:02 rmtab
drwxrwxrwx 1 root root 0 Sep 7 18:02 rpc_pipefs
drwx------ 1 nobody root 0 Sep 7 18:02 sm
drwx------ 1 nobody root 0 Sep 7 18:02 sm.bak
-rw-r--r-- 1 root root 4 Dec 7 22:56 state
drwxr-xr-x 1 root root 0 Sep 7 18:02 v4recoveryCan it be, that there are dependencies to somethink which I need but doesn't have?
FYI: I can test / play around a lot. When It works, I will reinstall the container again to see if I understand my mistakes and get it work without stuttering around...
Thanks in advance, looking forward to your hints!
Last edited by non_sen_se (2018-12-11 15:22:32)
Offline
Is it helpfull when I deliver more infos? or is it wrong here?
Offline
Things you can try:
1) Share network with the host machine: https://wiki.archlinux.org/index.php/Sy … networking
2) Add more network capabilities. In file /etc/systemd/nspawn/MACHINE.nspawn, where MACHINE is your machine name:
[Exec]
Capability=CAP_NET_ADMINOffline