[Lxc-users] Can't start containers

Troy Telford ttelford.groups at gmail.com
Thu Mar 15 21:32:45 UTC 2012


I'm running a Debian (sid) system, using lxc-0.8.0-rc3 (debian packages).

I'm running kernel 3.2.10 (again, debian package).

I have a number of "known good" containers. Containers set to autostart 
at system boot work fine.

However, trying to manually start a "known good" container fails. 
Interestingly enough, after a failed lxc-start, the dynamic linker can 
no longer find liblxc.so.0 as well - liblxc.so.0 can't be found until 
the system reboots; it seems that running 'ldconfig' doesn't have an 
effect.

Example output is below; does anyone have an idea what's wrong?

$ sudo lxc-checkconfig
Kernel config /proc/config.gz not found, looking in other places...
Found kernel config file /boot/config-3.2.0-2-amd64
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
Network namespace: enabled
Multiple /dev/pts instances: enabled

--- Control groups ---
Cgroup: enabled
Cgroup clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled

--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
File capabilities: enabled

$ ldd `which lxc-start`
	linux-vdso.so.1 =>  (0x00007fffe37ff000)
	liblxc.so.0 => /usr/lib/x86_64-linux-gnu/lxc/liblxc.so.0 (0x00007f76a51f3000)
	libcap.so.2 => /lib/libcap.so.2 (0x00007f76a4fc9000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f76a4c41000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f76a4a3e000)
	libattr.so.1 => /lib/x86_64-linux-gnu/libattr.so.1 (0x00007f76a483a000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f76a5422000)

$ sudo lxc-start -n radius
lxc-start: Invalid argument - pivot_root syscall failed
lxc-start: failed to setup pivot root
lxc-start: failed to set rootfs for 'radius'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'radius'

$ ldd `which lxc-start`
	linux-vdso.so.1 =>  (0x00007ffff71a5000)
	liblxc.so.0 => not found
	libcap.so.2 => /lib/libcap.so.2 (0x00007f5f9a681000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5f9a2f9000)
	libattr.so.1 => /lib/x86_64-linux-gnu/libattr.so.1 (0x00007f5f9a0f5000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f5f9a8ad000)

-- 
Troy Telford






More information about the lxc-users mailing list