[Voyage-linux] Cannot start LXC container
Andrew Malcolmson
(spam-protected)
Fri Feb 5 05:31:35 HKT 2010
I've been looking at the lightweight virtualization software OpenVZ to
run protected services on my Alix 2d3 box running Voyage .6. Just as I
was getting the hang of it I learned that the OpenVZ kernel will not be
in Squeeze and seems to be at the end of its road. Fortunately there's
a recent project called Linux Containers (LXC) with support in stock
kernels > 2.6.31 and user space tools in Lenny.
I've got it working on my Intel Core2 laptop running Lenny under a
2.6.32 kernel compiled from the Debian source package in Sid but when
using the same kernel, configuration, and root filesystem under Voyage I
get the following message when I start the container:
lxc-start: failed to clone(0x6c020000): No space left on device
lxc-start: No space left on device - failed to fork into a new namespace
lxc-start: failed to spawn '/sbin/init'
I've followed all the steps in the LXC Howto at http://lxc.teegra.net/
I've run 'remountrw' and have over 600M free space on this CF card. I
wasn't using swap before but tried adding a 500M swap partition - didn't
help. The root file system of my container is only 160M.
'lxc-checkconfig' shows all needed kernel features are enabled. 'mount'
shows this:
rootfs on / type rootfs (rw)
none on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
none on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type tmpfs (rw,relatime,size=10240k,mode=755)
/dev/disk/by-uuid/fabece14-b39a-42bb-a941-32c55c0e2cab on / type ext3
(rw,noatime,errors=continue,data=writeback)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,relatime,mode=755)
varrun on /var/run type tmpfs (rw,nosuid,relatime,mode=755)
varlock on /var/lock type tmpfs (rw,nosuid,nodev,noexec,relatime)
usbfs on /proc/bus/usb type usbfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
devpts on /dev/pts type devpts
(rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /tmp type tmpfs
(rw,noatime,nodiratime,size=204800k,nr_inodes=20480)
none on /usr/local/cgroup type cgroup
(rw,relatime,net_cls,freezer,devices,memory,cpuacct,cpu,ns,cpuset)
tmpfs on /var/log type tmpfs (rw,nosuid,relatime,mode=755)
tmpfs on /var/tmp type tmpfs (rw,nosuid,relatime,mode=755)
I'm guessing the 'device' lxc-start wants space on is somehow different
under Voyage. Does anyone have a guess on what this difference could be
or at least how can I monitor what storage the program is trying to
use.?
-------------------
Andrew Malcolmson
More information about the Voyage-linux
mailing list