Hi lxc backporter(s), In order to create an Ubuntu xenial lxc, I upgraded lxc to the version in backports. I then successfully used a newly created Ubuntu container. However, then I wanted to use my already existing sid container again, but that failed to start properly (note the hassled text and the the tty1 & pts/0, I didn't note that until later): paul@ruapehu ~ $ sudo lxc-start -d -n sid && sudo lxc-console -n sid Connected to tty 1 Type <Ctrl+a q> to exit the console, <Ctrl+a Ctrl+a> to enter Ctrl+a itself DDebieabni aGnN UG/NLUi/nLuixn usxt rsettrceht/cshi/ds isidd sid tty1 sidpts/0 sid login: login: Debian GNU/Linux stretch/sid sid pts/0 sid login: root Login incorrect sid login: root After trying several time and with several of my other sid lxc (of which I am not sure of the password however), I (stupidly) decided to destroy the container and create a new one with the lxc-create from backports. Unfortunately that process doesn't tell me the new password (I assume now that it is root/root, but I started with my own system credentials). I couldn't log in to the new lxc as well. paul@ruapehu ~ $ LC_ALL=C.UTF-8 sudo lxc-create -n sid -t debian -- -r sid debootstrap is /usr/sbin/debootstrap Checking cache download in /var/cache/lxc/debian/rootfs-sid-amd64 ... Copying rootfs to /var/lib/lxc/sid/rootfs...insserv: warning: current start runlevel(s) (empty) of script `checkroot.sh' overrides LSB defaults (S). insserv: warning: current stop runlevel(s) (S) of script `checkroot.sh' overrides LSB defaults (empty). insserv: warning: current start runlevel(s) (empty) of script `checkroot.sh' overrides LSB defaults (S). update-rc.d: error: umountfs Default-Start contains no runlevels, aborting. insserv: warning: current start runlevel(s) (empty) of script `hwclock.sh' overrides LSB defaults (S). insserv: warning: current stop runlevel(s) (0 6 S) of script `hwclock.sh' overrides LSB defaults (0 6). update-rc.d: error: cannot find a LSB script for hwclockfirst.sh Creating SSH2 RSA key; this may take some time ... 2048 fa:44:b5:50:31:71:af:4a:da:c8:39:fa:47:61:5d:1e /etc/ssh/ssh_host_rsa_key.pub (RSA) Creating SSH2 DSA key; this may take some time ... 1024 30:57:ea:34:33:80:3b:3d:5e:30:ef:c9:22:8c:57:91 /etc/ssh/ssh_host_dsa_key.pub (DSA) Creating SSH2 ECDSA key; this may take some time ... 256 63:55:38:5f:dc:ad:5c:41:55:ce:57:05:da:3a:6a:5c /etc/ssh/ssh_host_ecdsa_key.pub (ECDSA) Creating SSH2 ED25519 key; this may take some time ... 256 44:eb:95:58:ee:92:4a:a9:b8:be:54:23:52:af:5d:9b /etc/ssh/ssh_host_ed25519_key.pub (ED25519) Failed to read /proc/cmdline. Ignoring: No such file or directory invoke-rc.d: policy-rc.d denied execution of start. Current default time zone: 'Europe/Amsterdam' Local time is now: Tue May 17 21:11:40 CEST 2016. Universal Time is now: Tue May 17 19:11:40 UTC 2016. Generating locales (this might take a while)... en_US.UTF-8... done en_US.UTF-8... done Generation complete. paul@ruapehu ~ $ sudo lxc-start -d -n sid && sudo lxc-console -n sid Connected to tty 1 Type <Ctrl+a q> to exit the console, <Ctrl+a Ctrl+a> to enter Ctrl+a itself Debian GNU/Linux 8 sid tty1 sid login: paul Password: Login incorrect sid login: paul Password: Login incorrect sid login: root Password: Login incorrect sid login: root Password: Login incorrect Doing some web searching, it appears that I could get around the first bug by removing lib/systemd/system/container-getty@.service in the lxc, but that doesn't help (anymore) with the newly created lxc paul@ruapehu ~ $ sudo rm /var/lib/lxc/sid/rootfs/lib/systemd/system/container-getty@.service paul@ruapehu ~ $ sudo lxc-start -d -n sid && sudo lxc-console -n sid Connected to tty 1 Type <Ctrl+a q> to exit the console, <Ctrl+a Ctrl+a> to enter Ctrl+a itself Debian GNU/Linux stretch/sid sid tty1 sid login: root Password: Login incorrect Also bootstrapping the rootfs anew doesn't change anything. Am I missing something? Is this a bug in the normal package as well? Paul -- System Information: Debian Release: 8.4 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable'), (60, 'unstable'), (50, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages lxc depends on: ii init-system-helpers 1.22 ii libapparmor1 2.9.0-3 ii libc6 2.19-18+deb8u4 ii libcap2 1:2.24-8 ii liblxc1 1:2.0.0-3~bpo8+1 ii libseccomp2 2.1.1-1 ii libselinux1 2.3-2 ii multiarch-support 2.19-18+deb8u4 ii python3 3.4.2-2 Versions of packages lxc recommends: ii apparmor 2.9.0-3 ii bridge-utils 1.5-9 ii cgmanager 0.33-2+deb8u2 ii debootstrap 1.0.67 ii dnsmasq-base 2.72-3+deb8u1 ii iptables 1.4.21-2+b1 ii libpam-cgfs 2.0.0-3~bpo8+1 ii lxcfs 2.0.0-3~bpo8+1 ii openssl 1.0.1k-3+deb8u5 ii rsync 3.1.1-3 ii uidmap 1:4.2-3+deb8u1 Versions of packages lxc suggests: pn btrfs-tools <none> pn lua5.2 <none> ii lvm2 2.02.111-2.2 -- Configuration Files: /etc/bash_completion.d/lxc 64afc98737180b4739f1e46fa4b0dcf9 [Errno 2] No such file or directory: u'/etc/bash_completion.d/lxc 64afc98737180b4739f1e46fa4b0dcf9' /etc/lxc/default.conf changed: lxc.network.type = veth lxc.network.flags = up lxc.network.link = virbr0 lxc.network.hwaddr = 00:FF:AA:xx:xx:xx lxc.network.ipv4 = 0.0.0.0/24 -- no debconf information
Attachment:
signature.asc
Description: OpenPGP digital signature