Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Serge E. Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): cd /sys/fs/cgroup for d in `/bin/ls`; do echo 1 $d/cgroup.clone_children done Doing this step alone broke lxc totally for me, with or without the patch below. This was on Fedora 15 testing with lxc 0.7.4.2 as well as Do

Re: [Lxc-users] lxc on fedora 15 (was : cgroups: support cgroups mounted in multiple places)

2011-06-26 Thread Serge E. Hallyn
Quoting Daniel Lezcano (daniel.lezc...@free.fr): fedora 15 has a patched kernel with utrace. By patched, you mean utrace is not upstream? Are we sure, utrace is pid namespace aware ? I've not looked at it, no. My natty container booted on fedora 15 but is stuck at: \_ lxc-start -n natty

Re: [Lxc-users] lxc on fedora 15 (was : cgroups: support cgroups mounted in multiple places)

2011-06-26 Thread Daniel Lezcano
On 06/26/2011 05:09 PM, Serge E. Hallyn wrote: Quoting Daniel Lezcano (daniel.lezc...@free.fr): fedora 15 has a patched kernel with utrace. By patched, you mean utrace is not upstream? Right. Are we sure, utrace is pid namespace aware ? I've not looked at it, no. My natty container booted

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Daniel Lezcano
On 06/26/2011 05:06 PM, Serge E. Hallyn wrote: Quoting Michael H. Warfield (m...@wittsend.com): cd /sys/fs/cgroup for d in `/bin/ls`; do echo 1 $d/cgroup.clone_children done Doing this step alone broke lxc totally for me, with or without the patch below. This was on Fedora 15

Re: [Lxc-users] lxc on fedora 15 (was : cgroups: support cgroups mounted in multiple places)

2011-06-26 Thread Serge E. Hallyn
Quoting Daniel Lezcano (daniel.lezc...@free.fr): I reported the problem some month ago. https://bugzilla.redhat.com/show_bug.cgi?id=636210 When running a debian container, there is no problem. Dude, does redhat have a maintainer for the package? I think they informally closed the bug

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Daniel Lezcano
On 06/26/2011 05:52 PM, Michael H. Warfield wrote: On Sun, 2011-06-26 at 17:27 +0200, Daniel Lezcano wrote: On 06/26/2011 05:06 PM, Serge E. Hallyn wrote: Quoting Michael H. Warfield (m...@wittsend.com): cd /sys/fs/cgroup for d in `/bin/ls`; do echo 1 $d/cgroup.clone_children

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Michael H. Warfield
On Sun, 2011-06-26 at 18:27 +0200, Daniel Lezcano wrote: On 06/26/2011 05:52 PM, Michael H. Warfield wrote: On Sun, 2011-06-26 at 17:27 +0200, Daniel Lezcano wrote: On 06/26/2011 05:06 PM, Serge E. Hallyn wrote: Quoting Michael H. Warfield (m...@wittsend.com): cd /sys/fs/cgroup for

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Michael H. Warfield
Looking at the sources and Serge's patch... On Sun, 2011-06-26 at 13:33 -0400, Michael H. Warfield wrote: On Sun, 2011-06-26 at 18:27 +0200, Daniel Lezcano wrote: On 06/26/2011 05:52 PM, Michael H. Warfield wrote: On Sun, 2011-06-26 at 17:27 +0200, Daniel Lezcano wrote: On 06/26/2011

Re: [Lxc-users] lxc-start at boot

2011-06-26 Thread err404
On 26/06/2011 16:46, Mihamina Rakotomandimby wrote: Hi all, I usually launch my containers with 'sudo lxc-start -nname'. The problem with this is the fact it doesn't get my back to a shell prompt. To have what I want, I have to workarround, with screen or end the command line with ''.

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Michael H. Warfield
On Sun, 2011-06-26 at 13:56 -0400, Michael H. Warfield wrote: Looking at the sources and Serge's patch... On Sun, 2011-06-26 at 13:33 -0400, Michael H. Warfield wrote: On Sun, 2011-06-26 at 18:27 +0200, Daniel Lezcano wrote: On 06/26/2011 05:52 PM, Michael H. Warfield wrote: On

Re: [Lxc-users] lxc-start at boot

2011-06-26 Thread Michael H. Warfield
On Sun, 2011-06-26 at 17:46 +0300, Mihamina Rakotomandimby wrote: Hi all, I usually launch my containers with 'sudo lxc-start -n name'. The problem with this is the fact it doesn't get my back to a shell prompt. To have what I want, I have to workarround, with screen or end the command

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Michael H. Warfield
On Sun, 2011-06-26 at 14:00 -0500, Serge E. Hallyn wrote: Quoting Michael H. Warfield (m...@wittsend.com): Thanks, Michael, good catch. Now wait a minute. Is that a typo here: No it's not, but: char *s = index(retbuf, '.'); If you're doing, in effect, a dirname here

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Serge E. Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): On Sun, 2011-06-26 at 14:00 -0500, Serge E. Hallyn wrote: Quoting Michael H. Warfield (m...@wittsend.com): Thanks, Michael, good catch. Now wait a minute. Is that a typo here: No it's not, but: char *s = index(retbuf,