Package: lxc Version: 0.7.2-1 Severity: important Tags: patch lxc-attach does not work as expected. To demonstrate, let's try to attach to a running container which has booted a debootstrap'ped system on its own rootfs:
icarus:~# lxc-attach -n bender lxc-attach: No such file or directory - failed to open '/proc/4581/ns/pid' lxc-attach: failed to enter the namespace The relevant part of the `ps axf` output displaying the container's processes is below: 4563 ? Ss 0:00 lxc-start -n bender -f /etc/lxc/bender.conf -d 4581 ? Ss 0:00 \_ init [2] 4941 ? Sl 0:00 \_ /usr/sbin/rsyslogd -c4 5012 ? Ss 0:00 \_ /usr/sbin/cron 5022 ? Ss 0:00 \_ /usr/sbin/sshd 10157 ? Ss 0:00 \_ /usr/sbin/apache2 -k start 10674 ? S 0:00 | \_ /usr/sbin/apache2 -k start 10675 ? S 0:00 | \_ /usr/sbin/apache2 -k start 10676 ? S 0:00 | \_ /usr/sbin/apache2 -k start 10677 ? S 0:00 | \_ /usr/sbin/apache2 -k start 10678 ? S 0:00 | \_ /usr/sbin/apache2 -k start 14527 ? S 0:00 \_ /bin/sh /usr/bin/mysqld_safe 14638 ? Sl 0:00 | \_ /usr/sbin/mysqld --basedir=/usr --datadir 14639 ? S 0:00 | \_ logger -t mysqld -p daemon.error 15771 pts/0 Ss+ 0:00 \_ /sbin/getty 38400 tty1 It was suggested to me on the #lxcontainers channel that the kernel requires the support for a new syscall, sys_setns, for lxc-attach to work. The patch is available from LXC upstream at http://lxc.sourceforge.net/patches/linux/2.6.35/2.6.35-lxc1/patches/ Please consider discussing inclusion of this patch with the kernel folks as the properly functioning lxc-attach is crucial to implement graceful shutdown of the containers using "full" rootfs like those created using debootstrap. (I'm going to file a separate bug report regarding this aspect of functionality.) -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages lxc depends on: ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib ii libcap2 1:2.19-3 support for getting/setting POSIX. Versions of packages lxc recommends: ii libcap2-bin 1:2.19-3 basic utility programs for using c lxc suggests no packages. -- Configuration Files: /etc/default/lxc changed: RUN=yes CONF_DIR=/etc/lxc CONTAINERS="bender" -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org