[Lxc-users] lxc on Fedora 15

Ramez Hanna rhanna at informatiq.org
Sat May 28 12:33:44 UTC 2011


I have failed to start a container on f15 although it worked fine on 14
here is the log
==snip
[root at hovercraft boss]# cat lxc.log
lxc-start 1306584262.160 DEBUG lxc_conf - allocated pty '/dev/pts/9' (4/5)
lxc-start 1306584262.160 DEBUG lxc_conf - allocated pty '/dev/pts/10' (6/7)
lxc-start 1306584262.160 DEBUG lxc_conf - allocated pty '/dev/pts/11' (8/9)
lxc-start 1306584262.160 DEBUG lxc_conf - allocated pty '/dev/pts/12'
(10/11)
lxc-start 1306584262.160 INFO lxc_conf - tty's configured
lxc-start 1306584262.160 ERROR lxc_caps - failed to cap_get_flag: Invalid
argument
lxc-start 1306584262.160 DEBUG lxc_console - using '/dev/tty' as console
lxc-start 1306584262.160 DEBUG lxc_start - sigchild handler set
lxc-start 1306584262.161 INFO lxc_start - 'boss' is initialized
lxc-start 1306584262.161 ERROR lxc_namespace - failed to clone(0x6c020000):
Operation not permitted
lxc-start 1306584262.161 ERROR lxc_start - Operation not permitted - failed
to fork into a new namespace
lxc-start 1306584262.161 ERROR lxc_start - failed to spawn 'boss'
lxc-start 1306584262.161 DEBUG lxc_cgroup - using cgroup mounted at
'/sys/fs/cgroup/systemd'
lxc-start 1306584262.161 ERROR lxc_cgroup - No such file or directory -
failed to remove cgroup '/sys/fs/cgroup/systemd/boss'
== end

mounts
[root at hovercraft boss]# mount |grep cgroup
tmpfs on /sys/fs/cgroup type tmpfs
(rw,nosuid,nodev,noexec,relatime,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup
(rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup
(rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/ns type cgroup (rw,nosuid,nodev,noexec,relatime,ns)
cgroup on /sys/fs/cgroup/cpu type cgroup
(rw,nosuid,nodev,noexec,relatime,cpu)
cgroup on /sys/fs/cgroup/cpuacct type cgroup
(rw,nosuid,nodev,noexec,relatime,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup
(rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup
(rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup
(rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup
(rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup
(rw,nosuid,nodev,noexec,relatime,blkio)

it looks like lxc is trying to create the container's cgroup under systemd
which seems to be the wrong location
any leads on how can i debug further
how does lxc find where cgroup is mounted?

see bug https://bugzilla.redhat.com/show_bug.cgi?id=683667
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110528/6fb7ef3d/attachment.html>


More information about the lxc-users mailing list