[Lxc-users] Lxc with Slackware 14 64bit will not start.

Giuseppe Tofoni gt0057 at gmail.com
Fri Oct 26 23:37:27 UTC 2012


Hello,

First thanks for your great work.

I am a happy user of LXC with Slackware 13.37 and lxc-0.7.4.2, but
with slack64 14.0 and lxc-0.8.0-rc2 I get the following errors:

lxc-start: No such file or directory - failed to exec /sbin/init
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'lxc_999'
lxc-start: No such file or directory - failed to remove cgroup
'/cgroup//lxc/lxc_999'

My setup is:

cd lxc-0.8.0-rc2
./configure --prefix=/usr/local --with-config-path=/etc/lxc
--with-rootfs-path=/vz/lxc
make && make install

cd /etc/lxc/lxc_999

vi config
#
lxc.utsname =lxc_999
#
lxc.mount=/etc/lxc/lxc_999/fstab
lxc.console=/var/log/lxc/console_999
lxc.rootfs=/vz/lxc/lxc_999
#
lxc.pts = 1024
#
lxc.network.type =veth
lxc.network.flags =up
lxc.network.link =br1
lxc.network.name = eth1
lxc.network.hwaddr =02:00:ac:10:1:9
lxc.network.ipv4 =172.16.1.9/19
lxc.network.mtu =1500
lxc.network.veth.pair = veth999.1
#
#
#lxc.cgroup.memory.limit_in_bytes = 512M
lxc.cgroup.memory.limit_in_bytes = 1G
#lxc.cgroup.memory.memsw.limit_in_bytes = 2G   //This option is no
present in Slackware 64bit kernel 3.2.29
#
lxc.cgroup.cpuset.cpus =0,1
#
#  % to CPU 512 =40% 1024 =50% 1524 =60% 2048 =67%
#
lxc.cgroup.cpu.shares = 1024

lxc.cgroup.devices.deny = a
#
# /dev/null and zero
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
#
# consoles
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 4:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:2 rwm
#
# /dev/{,u}random
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
#
# /dev/pts/* - pts namespaces are "coming soon"
#
lxc.cgroup.devices.allow = c 136:* rwm
#
# rtc
lxc.cgroup.devices.allow = c 254:0 rwm
#
# capabilities
#
#
lxc.cap.drop = sys_module mac_override

vi fstab

#
/sbin            /vz/lxc/lxc_999/sbin          none        ro,bind         0 0
/bin             /vz/lxc/lxc_999/bin           none        ro,bind         0 0
/lib             /vz/lxc/lxc_999/lib           none        ro,bind         0 0
/vz/usrLxc   /vz/lxc/lxc_999/usr           none        ro,bind         0 0
#
none             /vz/lxc/lxc_999/dev/pts       devpts      defaults        0 0
none             /vz/lxc/lxc_999/proc          proc        defaults        0 0
none             /vz/lxc/lxc_999/sys           sysfs       defaults        0 0
none             /vz/lxc/lxc_999/dev/shm       tmpfs       defaults        0 0

Thanks in advance for your help.

Giuseppe Tofoni




More information about the lxc-users mailing list