[systemd-devel] Failed to start Container: minus sign is replaced to slash in container name

Stefan Schweter stefan at schweter.it
Tue Jan 12 12:23:18 PST 2016


Dear systemd-users,

e.g. when a container name includes a minus sign like:

ls -l /var/lib/machines
insgesamt 4
drwxr-xr-x 22 root root 4096 12. Jan 21:14 host.cis.uni-muenchen.de

Enabling the systemd-nspawn service with:

systemctl enable systemd-nspawn at host.cis.uni-muenchen.de
Created symlink from
/etc/systemd/system/machines.target.wants/systemd-nspawn at host.cis.uni-muenchen.de.service
to /usr/lib/systemd/system/systemd-nspawn at .service.

works fine, but when starting the service with:

systemctl start systemd-nspawn at host.cis.uni-muenchen.de
Job for systemd-nspawn at host.cis.uni-muenchen.de.service failed because
the control process exited with error code. See "systemctl status
systemd-nspawn at host.cis.uni-muenchen.de.service" and "journalctl -xe"
for details.

an error occurs - the status -l command:

Jan 12 21:15:22 arch-64-platon systemd[1]: Starting Container
host.cis.uni/muenchen.de...
Jan 12 21:15:22 arch-64-platon systemd-nspawn[1086]: Invalid machine
name: host.cis.uni/muenchen.de
Jan 12 21:15:22 arch-64-platon systemd[1]:
systemd-nspawn at host.cis.uni-muenchen.de.service: Main process exited,
code=exited, status=1/FAILURE
Jan 12 21:15:22 arch-64-platon systemd[1]: Failed to start Container
host.cis.uni/muenchen.de.

Why is the machine name invalid and the minus sign replaced with a slash?

/usr/bin/systemd-nspawn --quiet --boot --link-journal=try-guest
--network-veth --settings=override --machine=host.cis.uni-muenchen.de

starts my machine without any problems.

Thanks many in advance + regards,

Stefan

Btw: I'm using version 228 from the Arch Linux repository, my locale is
set to de_DE.UTF-8.


More information about the systemd-devel mailing list