Package: lxc Version: 0.8.0~rc1-8 Severity: normal Dear Maintainer,
I could not get a console from the container with neither lxc-start nor lxc-console after setting up a debian sid container. The only way to access the container was with ssh. sudo lxc-create -n sid -t debian # choose sid and wait for container build process sudo lxc-start -n sid The output of the lxc-start is ---8<-------- miguel@quartor:~$ sudo lxc-start -n sid INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. hostname: you must be root to change the host name mount: permission denied mount: permission denied mount: permission denied [info] Setting the system clock. hwclock: Cannot access the Hardware Clock via any known method. hwclock: Use the --debug option to see the details of our search for an access method. [warn] Unable to set System Clock to: Fri Jul 6 04:28:25 UTC 2012 ... (warning). [ ok ] Activating swap...done. mount: can't find / in /etc/fstab or /etc/mtab [warn] Creating compatibility symlink from /etc/mtab to /proc/mounts. ... (warning). [ ok ] Cleaning up temporary files... /tmp. mount: permission denied mount: permission denied mount: permission denied [warn] Mount point '/dev/console' does not exist. Skipping mount. ... (warning). [warn] Mount point '/dev/ptmx' does not exist. Skipping mount. ... (warning). [ ok ] Activating lvm and md swap...done. [....] Checking file systems...fsck from util-linux 2.20.1 done. [ ok ] Mounting local filesystems...done. [ ok ] Activating swapfile swap...done. mount: permission denied mount: permission denied mount: permission denied [ ok ] Setting kernel variables ...done. [ ok ] Cleaning up temporary files.... [....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.2.4 Copyright 2004-2012 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eth0/00:0c:61:00:00:00 Sending on LPF/eth0/00:0c:61:00:00:00 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11 DHCPREQUEST on eth0 to 255.255.255.255 port 67 DHCPOFFER from 192.168.1.1 DHCPACK from 192.168.1.1 bound to 192.168.1.5 -- renewal in 1715 seconds. done. [ ok ] Cleaning up temporary files.... [FAIL] startpar: service(s) returned failure: hostname.sh ... failed! INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [ ok ] Starting OpenBSD Secure Shell server: sshd. ---8<-------- And there is no console. After a while some new output: ---8<-------- INIT: Id "1" respawning too fast: disabled for 5 minutes INIT: Id "3" respawning too fast: disabled for 5 minutes INIT: Id "2" respawning too fast: disabled for 5 minutes INIT: Id "4" respawning too fast: disabled for 5 minutes INIT: Id "6" respawning too fast: disabled for 5 minutes INIT: Id "5" respawning too fast: disabled for 5 minutes ---8<-------- Even with lxc-console: ---8<-------- miguel@quartor:~$ sudo lxc-console -n sid Type <Ctrl+a q> to exit the console, <Ctrl+a Ctrl+a> to enter Ctrl+a itself ---8<-------- After some digging about this I've found that this could be some debconf settings in live-config that are not working: root@quartor:/# debconf-get-selections |grep lxc unknown live-debconfig/sysvinit/lxc-consoles string 6 unknown live-debconfig/sysvinit/lxc-enable boolean false I've tried to use a preseed file to set lxc-enable to true and create a new container but it had no results. The new container still had lxc-enable false. Then I've looked to backends/debconf/0030-sysvinit in live-config source code. Then I've edited the /etc/inittab in the container and the relevant part was this: ---8<-------- 1:2345:respawn:/sbin/getty 38400 tty1 2:23:respawn:/sbin/getty 38400 tty2 3:23:respawn:/sbin/getty 38400 tty3 4:23:respawn:/sbin/getty 38400 tty4 5:23:respawn:/sbin/getty 38400 tty5 6:23:respawn:/sbin/getty 38400 tty6 ---8<-------- After editing those lines to the following and restarting the container I could get a console right after lxc-start. ---8<-------- 1:2345:respawn:/sbin/getty 38400 console c1:23:respawn:/sbin/getty 38400 console #c2:23:respawn:/sbin/getty 38400 console #c3:23:respawn:/sbin/getty 38400 tty4 #c4:23:respawn:/sbin/getty 38400 tty5 #c5:23:respawn:/sbin/getty 38400 tty6 ---8<-------- I've reported this to lxc package because I'm not sure if this is a lxc debian template problem or if it is only a live-config package problem. Decided to report to lxc because it was where the issue came up. Please reassign if necessary. Thank you -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 3.2.0-2-686-pae (SMP w/2 CPU cores) Locale: LANG=C.UTF-8, LC_CTYPE=pt_PT.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to pt_PT.UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages lxc depends on: ii debconf [debconf-2.0] 1.5.44 ii libc6 2.13-33 ii libcap2 1:2.22-1 ii multiarch-support 2.13-33 Versions of packages lxc recommends: ii debootstrap 1.0.41 ii libcap2-bin 1:2.22-1 Versions of packages lxc suggests: pn lxctl <none> -- debconf information: lxc/directory: /home/lxc lxc/title: lxc/auto: true lxc/shutdown: /usr/bin/lxc-halt -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org