[systemd-devel] Mount error when running systemd-nspawn with --private-network

Nikolaus Rath Nikolaus at rath.org
Sat Jun 23 13:42:53 UTC 2018


Hello,

When running systemd-nspawn with --private-network, I am getting mount
errors:

# systemd-nspawn -M iofabric --as-pid2 --private-users=1379532800:65536 --register=no --private-network
Spawning container iofabric on /var/lib/machines/iofabric.raw.
Press ^] three times within 1s to kill container.
Selected user namespace base 1379532800 and range 65536.
Failed to mount n/a on /tmp/nspawn-root-2Ar2iL/sys/fs/selinux (MS_BIND ""): No such file or directory
Failed to mount n/a on /tmp/nspawn-root-2Ar2iL/sys/fs/selinux (MS_RDONLY|MS_NOSUID|MS_NODEV|MS_NOEXEC|MS_REMOUNT|MS_BIND ""): Invalid argument

This is on a (host) system with SELinux disabled.

What do these errors mean?

Thanks!
-Nikolaus
-- 
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«


More information about the systemd-devel mailing list