Package: systemd-container Version: 230-5 nspawn fails to start the selected program. It appears to need dbus, and Debian is missing a Requires:. System has version "stretch main" listed in apt sources.list.
root@zfrei97:/var/lib/docker/btrfs/subvolumes# btrfs sub snap 1e7fd030e8111cb3d82d0fbc36b0c1ec28cb9ff036b506dc4958884e1b6b1599 /t Create a snapshot of '1e7fd030e8111cb3d82d0fbc36b0c1ec28cb9ff036b506dc4958884e1b6b1599' in '//t' root@zfrei97:/var/lib/docker/btrfs/subvolumes# cd /t root@zfrei97:/t# touch it root@zfrei97:/t# systemd-nspawn -D /t -M t /bin/bash Spawning container t on /t. Press ^] three times within 1s to kill container. Failed to open system bus: No such file or directory Failed to create directory /t/sys/fs/selinux: Read-only file system Failed to create directory /t/sys/fs/selinux: Read-only file system root@zfrei97:/t# echo $? 1 root@zfrei97:/t# machinectl Failed to create bus connection: No such file or directory root@zfrei97:/t# systemctl start systemd-machined Failed to start systemd-machined.service: Unit dbus.socket not found. root@zfrei97:/etc# apt-get install dbus Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libcap-ng0 libdbus-1-3 Suggested packages: dbus-user-session | dbus-x11 The following NEW packages will be installed: dbus libcap-ng0 libdbus-1-3 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 406 kB of archives. After this operation, 1,030 kB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://ftp.de.debian.org/debian stretch/main amd64 libcap-ng0 amd64 0.7.7-3 [13.6 kB] Get:2 http://ftp.de.debian.org/debian stretch/main amd64 libdbus-1-3 amd64 1.10.8-1 [188 kB] Get:3 http://ftp.de.debian.org/debian stretch/main amd64 dbus amd64 1.10.8-1 [204 kB] Fetched 406 kB in 0s (2,377 kB/s) Selecting previously unselected package libcap-ng0:amd64. (Reading database ... 23795 files and directories currently installed.) Preparing to unpack .../libcap-ng0_0.7.7-3_amd64.deb ... Unpacking libcap-ng0:amd64 (0.7.7-3) ... Selecting previously unselected package libdbus-1-3:amd64. Preparing to unpack .../libdbus-1-3_1.10.8-1_amd64.deb ... Unpacking libdbus-1-3:amd64 (1.10.8-1) ... Selecting previously unselected package dbus. Preparing to unpack .../dbus_1.10.8-1_amd64.deb ... Unpacking dbus (1.10.8-1) ... Processing triggers for libc-bin (2.22-13) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for systemd (230-5) ... Setting up libcap-ng0:amd64 (0.7.7-3) ... Setting up libdbus-1-3:amd64 (1.10.8-1) ... Setting up dbus (1.10.8-1) ... Processing triggers for libc-bin (2.22-13) ... Processing triggers for systemd (230-5) ... root@zfrei97:/etc# machinectl MACHINE CLASS SERVICE 0 machines listed. root@zfrei97:/etc# cd root@zfrei97:~# systemd-nspawn -D /t -M t /bin/bash Spawning container t on /t. Press ^] three times within 1s to kill container. Failed to create directory /t/sys/fs/selinux: Read-only file system Failed to create directory /t/sys/fs/selinux: Read-only file system root@t:/#