* How to use cgroups within containers?
@ 2014-10-17 21:35 Richard Weinberger
[not found] ` <CAFLxGvxKP2wkGOqW=mz7Sv=+yJXiY-1Hz-4kKfR8mYVEWPOj6Q@mail.gmail.com>
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Richard Weinberger @ 2014-10-17 21:35 UTC (permalink / raw)
To: systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Linux Containers
Dear systemd and container folks,
at Plumbers the question raised how to provide cgroups to a systemd that lives
in a container (with user namespaces).
Due to the GDL train strikes I had to leave very soon and had no chance to
talk to you in person.
Was a solution proposed?
All I want to know is how to provide cgroups in a sane and secure way
to systemd. :-)
--
Thanks,
//richard
^ permalink raw reply [flat|nested] 12+ messages in thread[parent not found: <CAFLxGvxKP2wkGOqW=mz7Sv=+yJXiY-1Hz-4kKfR8mYVEWPOj6Q@mail.gmail.com>]
[parent not found: <CAFLxGvxKP2wkGOqW=mz7Sv=+yJXiY-1Hz-4kKfR8mYVEWPOj6Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [systemd-devel] How to use cgroups within containers? [not found] ` <CAFLxGvxKP2wkGOqW=mz7Sv=+yJXiY-1Hz-4kKfR8mYVEWPOj6Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-10-17 21:52 ` Cameron Norman 2014-10-18 3:50 ` Serge E. Hallyn 1 sibling, 0 replies; 12+ messages in thread From: Cameron Norman @ 2014-10-17 21:52 UTC (permalink / raw) To: Richard Weinberger Cc: Linux Containers, systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, LXC development mailing-list On Fri, Oct 17, 2014 at 2:37 PM, Richard Weinberger <richard.weinberger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > ...fixing LXC devel mailinglist... :-\ > > On Fri, Oct 17, 2014 at 11:35 PM, Richard Weinberger > <richard.weinberger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Dear systemd and container folks, >> >> at Plumbers the question raised how to provide cgroups to a systemd that lives >> in a container (with user namespaces). >> Due to the GDL train strikes I had to leave very soon and had no chance to >> talk to you in person. >> >> Was a solution proposed? >> All I want to know is how to provide cgroups in a sane and secure way >> to systemd. :-) I am not at all an expert on systemd's cgroups, however I do know the basic design of cgmanager. cgmanager provides cgroups to containers via a "cgproxy" service that relays messages to the main cgmanager service. You can read more about it here: https://github.com/cgmanager/cgmanager/blob/master/README. Perhaps systemd can use a similar model. Cheers, -- Cameron ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: How to use cgroups within containers? [not found] ` <CAFLxGvxKP2wkGOqW=mz7Sv=+yJXiY-1Hz-4kKfR8mYVEWPOj6Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-10-17 21:52 ` [systemd-devel] " Cameron Norman @ 2014-10-18 3:50 ` Serge E. Hallyn 1 sibling, 0 replies; 12+ messages in thread From: Serge E. Hallyn @ 2014-10-18 3:50 UTC (permalink / raw) To: Richard Weinberger Cc: Linux Containers, systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, LXC development mailing-list Quoting Richard Weinberger (richard.weinberger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org): > ...fixing LXC devel mailinglist... :-\ > > On Fri, Oct 17, 2014 at 11:35 PM, Richard Weinberger > <richard.weinberger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Dear systemd and container folks, > > > > at Plumbers the question raised how to provide cgroups to a systemd that lives > > in a container (with user namespaces). > > Due to the GDL train strikes I had to leave very soon and had no chance to > > talk to you in person. > > > > Was a solution proposed? > > All I want to know is how to provide cgroups in a sane and secure way > > to systemd. :-) My takeaway from the discussion was that there was general agreement that the cgroup namespaces patches posted by Aditya Kali would solve the problem. -serge ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <CAFLxGvxzmfhLZPsmsFG9qdB0oDf9ayvNaWNNOXqcAkW3yATffg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: How to use cgroups within containers? [not found] ` <CAFLxGvxzmfhLZPsmsFG9qdB0oDf9ayvNaWNNOXqcAkW3yATffg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-10-17 21:37 ` Richard Weinberger 2014-10-20 16:24 ` [systemd-devel] " Lennart Poettering 1 sibling, 0 replies; 12+ messages in thread From: Richard Weinberger @ 2014-10-17 21:37 UTC (permalink / raw) To: systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, Linux Containers, LXC development mailing-list ...fixing LXC devel mailinglist... :-\ On Fri, Oct 17, 2014 at 11:35 PM, Richard Weinberger <richard.weinberger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Dear systemd and container folks, > > at Plumbers the question raised how to provide cgroups to a systemd that lives > in a container (with user namespaces). > Due to the GDL train strikes I had to leave very soon and had no chance to > talk to you in person. > > Was a solution proposed? > All I want to know is how to provide cgroups in a sane and secure way > to systemd. :-) > > -- > Thanks, > //richard -- Thanks, //richard ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [systemd-devel] How to use cgroups within containers? [not found] ` <CAFLxGvxzmfhLZPsmsFG9qdB0oDf9ayvNaWNNOXqcAkW3yATffg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-10-17 21:37 ` Richard Weinberger @ 2014-10-20 16:24 ` Lennart Poettering 1 sibling, 0 replies; 12+ messages in thread From: Lennart Poettering @ 2014-10-20 16:24 UTC (permalink / raw) To: Richard Weinberger Cc: Linux Containers, systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On Fri, 17.10.14 23:35, Richard Weinberger (richard.weinberger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org) wrote: > Dear systemd and container folks, > > at Plumbers the question raised how to provide cgroups to a systemd that lives > in a container (with user namespaces). > Due to the GDL train strikes I had to leave very soon and had no chance to > talk to you in person. > > Was a solution proposed? > All I want to know is how to provide cgroups in a sane and secure way > to systemd. :-) The cgroups setup systemd requires to be able to run cleanly without changes in a container is documented here: http://www.freedesktop.org/wiki/Software/systemd/ContainerInterface/ You have to mount the full cgroupfs hierarchies into the containers, so that /proc/$PID/cgroup makes sense inside the containers (that file lists absolute paths...). They can be mounted read-only up to the container's root, but further down they need to be writable to the container, so that systemd inside the container can do its job. If a container manager does not mount them systemd will mount them on its own. Lennart -- Lennart Poettering, Red Hat ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <20141020162445.GA4008@gardel-login>]
* Re: [systemd-devel] How to use cgroups within containers? [not found] ` <20141020162445.GA4008@gardel-login> @ 2014-10-20 16:49 ` Richard Weinberger [not found] ` <54453D06.9020101@nod.at> 1 sibling, 0 replies; 12+ messages in thread From: Richard Weinberger @ 2014-10-20 16:49 UTC (permalink / raw) To: Lennart Poettering Cc: Linux Containers, systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Am 20.10.2014 um 18:24 schrieb Lennart Poettering: > On Fri, 17.10.14 23:35, Richard Weinberger (richard.weinberger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org) wrote: > >> Dear systemd and container folks, >> >> at Plumbers the question raised how to provide cgroups to a systemd that lives >> in a container (with user namespaces). >> Due to the GDL train strikes I had to leave very soon and had no chance to >> talk to you in person. >> >> Was a solution proposed? >> All I want to know is how to provide cgroups in a sane and secure way >> to systemd. :-) > > The cgroups setup systemd requires to be able to run cleanly without > changes in a container is documented here: > > http://www.freedesktop.org/wiki/Software/systemd/ContainerInterface/ > > You have to mount the full cgroupfs hierarchies into the containers, > so that /proc/$PID/cgroup makes sense inside the containers (that file > lists absolute paths...). They can be mounted read-only up to the > container's root, but further down they need to be writable to the > container, so that systemd inside the container can do its job. And what solution do you propose? Will cgroup namespaces make systemd finally happy? Thanks, //richard ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <54453D06.9020101@nod.at>]
[parent not found: <54453D06.9020101-/L3Ra7n9ekc@public.gmane.org>]
* Re: [systemd-devel] How to use cgroups within containers? [not found] ` <54453D06.9020101-/L3Ra7n9ekc@public.gmane.org> @ 2014-10-20 16:51 ` Lennart Poettering 2014-10-20 16:55 ` Richard Weinberger 0 siblings, 1 reply; 12+ messages in thread From: Lennart Poettering @ 2014-10-20 16:51 UTC (permalink / raw) To: Richard Weinberger Cc: Linux Containers, systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On Mon, 20.10.14 18:49, Richard Weinberger (richard-/L3Ra7n9ekc@public.gmane.org) wrote: > Am 20.10.2014 um 18:24 schrieb Lennart Poettering: > > On Fri, 17.10.14 23:35, Richard Weinberger (richard.weinberger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org) wrote: > > > >> Dear systemd and container folks, > >> > >> at Plumbers the question raised how to provide cgroups to a systemd that lives > >> in a container (with user namespaces). > >> Due to the GDL train strikes I had to leave very soon and had no chance to > >> talk to you in person. > >> > >> Was a solution proposed? > >> All I want to know is how to provide cgroups in a sane and secure way > >> to systemd. :-) > > > > The cgroups setup systemd requires to be able to run cleanly without > > changes in a container is documented here: > > > > http://www.freedesktop.org/wiki/Software/systemd/ContainerInterface/ > > > > You have to mount the full cgroupfs hierarchies into the containers, > > so that /proc/$PID/cgroup makes sense inside the containers (that file > > lists absolute paths...). They can be mounted read-only up to the > > container's root, but further down they need to be writable to the > > container, so that systemd inside the container can do its job. > > And what solution do you propose? Solution? For what problem precisely? > Will cgroup namespaces make systemd finally happy? I have no idea about cgroup namespaces and what they entail. systemd is quite happy already, if you follow the guidelines for container managers we put together... Lennart -- Lennart Poettering, Red Hat ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [systemd-devel] How to use cgroups within containers? 2014-10-20 16:51 ` Lennart Poettering @ 2014-10-20 16:55 ` Richard Weinberger [not found] ` <54453E6F.6000202-/L3Ra7n9ekc@public.gmane.org> [not found] ` <20141020170442.GA4271@gardel-login> 0 siblings, 2 replies; 12+ messages in thread From: Richard Weinberger @ 2014-10-20 16:55 UTC (permalink / raw) To: Lennart Poettering Cc: Linux Containers, systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, LXC development mailing-list Am 20.10.2014 um 18:51 schrieb Lennart Poettering: > On Mon, 20.10.14 18:49, Richard Weinberger (richard-/L3Ra7n9ekc@public.gmane.org) wrote: > >> Am 20.10.2014 um 18:24 schrieb Lennart Poettering: >>> On Fri, 17.10.14 23:35, Richard Weinberger (richard.weinberger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org) wrote: >>> >>>> Dear systemd and container folks, >>>> >>>> at Plumbers the question raised how to provide cgroups to a systemd that lives >>>> in a container (with user namespaces). >>>> Due to the GDL train strikes I had to leave very soon and had no chance to >>>> talk to you in person. >>>> >>>> Was a solution proposed? >>>> All I want to know is how to provide cgroups in a sane and secure way >>>> to systemd. :-) >>> >>> The cgroups setup systemd requires to be able to run cleanly without >>> changes in a container is documented here: >>> >>> http://www.freedesktop.org/wiki/Software/systemd/ContainerInterface/ >>> >>> You have to mount the full cgroupfs hierarchies into the containers, >>> so that /proc/$PID/cgroup makes sense inside the containers (that file >>> lists absolute paths...). They can be mounted read-only up to the >>> container's root, but further down they need to be writable to the >>> container, so that systemd inside the container can do its job. >> >> And what solution do you propose? > > Solution? For what problem precisely? Running systemd inside Linux container (including user namespaces). :-) >> Will cgroup namespaces make systemd finally happy? > > I have no idea about cgroup namespaces and what they entail. > > systemd is quite happy already, if you follow the guidelines for > container managers we put together... Have you ever used systemd inside a container? Say, LXC or libvirt-lxc... Thanks, //richard ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <54453E6F.6000202-/L3Ra7n9ekc@public.gmane.org>]
* Re: [systemd-devel] How to use cgroups within containers? [not found] ` <54453E6F.6000202-/L3Ra7n9ekc@public.gmane.org> @ 2014-10-20 17:04 ` Lennart Poettering 0 siblings, 0 replies; 12+ messages in thread From: Lennart Poettering @ 2014-10-20 17:04 UTC (permalink / raw) To: Richard Weinberger Cc: Linux Containers, systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, LXC development mailing-list On Mon, 20.10.14 18:55, Richard Weinberger (richard-/L3Ra7n9ekc@public.gmane.org) wrote: > Am 20.10.2014 um 18:51 schrieb Lennart Poettering: > > On Mon, 20.10.14 18:49, Richard Weinberger (richard-/L3Ra7n9ekc@public.gmane.org) wrote: > > > >> Am 20.10.2014 um 18:24 schrieb Lennart Poettering: > >>> On Fri, 17.10.14 23:35, Richard Weinberger (richard.weinberger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org) wrote: > >>> > >>>> Dear systemd and container folks, > >>>> > >>>> at Plumbers the question raised how to provide cgroups to a systemd that lives > >>>> in a container (with user namespaces). > >>>> Due to the GDL train strikes I had to leave very soon and had no chance to > >>>> talk to you in person. > >>>> > >>>> Was a solution proposed? > >>>> All I want to know is how to provide cgroups in a sane and secure way > >>>> to systemd. :-) > >>> > >>> The cgroups setup systemd requires to be able to run cleanly without > >>> changes in a container is documented here: > >>> > >>> http://www.freedesktop.org/wiki/Software/systemd/ContainerInterface/ > >>> > >>> You have to mount the full cgroupfs hierarchies into the containers, > >>> so that /proc/$PID/cgroup makes sense inside the containers (that file > >>> lists absolute paths...). They can be mounted read-only up to the > >>> container's root, but further down they need to be writable to the > >>> container, so that systemd inside the container can do its job. > >> > >> And what solution do you propose? > > > > Solution? For what problem precisely? > > Running systemd inside Linux container (including user namespaces). :-) > > >> Will cgroup namespaces make systemd finally happy? > > > > I have no idea about cgroup namespaces and what they entail. > > > > systemd is quite happy already, if you follow the guidelines for > > container managers we put together... > > Have you ever used systemd inside a container? > Say, LXC or libvirt-lxc... Have you read the link I posted? Yes, I test systemd inside containers. Daily. Actually it's my primary way of testing systemd, since it is extremely quick and allows me to attach from the host with debugging tools... As long as you follow the suggestions in the document I linked systemd will work without modifications in container managers. At least libvirt-lxc and nspawn follows these suggestions, not sure about the other container managers. Also read: http://www.freedesktop.org/wiki/Software/systemd/writing-vm-managers/ We have documented this all so nicely, I can only recommend to actually take the time to read this. Thanks! Lennart -- Lennart Poettering, Red Hat ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <20141020170442.GA4271@gardel-login>]
* Re: [systemd-devel] How to use cgroups within containers? [not found] ` <20141020170442.GA4271@gardel-login> @ 2014-10-20 17:16 ` Richard Weinberger [not found] ` <54454355.90605-/L3Ra7n9ekc@public.gmane.org> 0 siblings, 1 reply; 12+ messages in thread From: Richard Weinberger @ 2014-10-20 17:16 UTC (permalink / raw) To: Lennart Poettering Cc: Linux Containers, systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, LXC development mailing-list Am 20.10.2014 um 19:04 schrieb Lennart Poettering: > On Mon, 20.10.14 18:55, Richard Weinberger (richard-/L3Ra7n9ekc@public.gmane.org) wrote: > >> Am 20.10.2014 um 18:51 schrieb Lennart Poettering: >>> On Mon, 20.10.14 18:49, Richard Weinberger (richard-/L3Ra7n9ekc@public.gmane.org) wrote: >>> >>>> Am 20.10.2014 um 18:24 schrieb Lennart Poettering: >>>>> On Fri, 17.10.14 23:35, Richard Weinberger (richard.weinberger@gmail.com) wrote: >>>>> >>>>>> Dear systemd and container folks, >>>>>> >>>>>> at Plumbers the question raised how to provide cgroups to a systemd that lives >>>>>> in a container (with user namespaces). >>>>>> Due to the GDL train strikes I had to leave very soon and had no chance to >>>>>> talk to you in person. >>>>>> >>>>>> Was a solution proposed? >>>>>> All I want to know is how to provide cgroups in a sane and secure way >>>>>> to systemd. :-) >>>>> >>>>> The cgroups setup systemd requires to be able to run cleanly without >>>>> changes in a container is documented here: >>>>> >>>>> http://www.freedesktop.org/wiki/Software/systemd/ContainerInterface/ >>>>> >>>>> You have to mount the full cgroupfs hierarchies into the containers, >>>>> so that /proc/$PID/cgroup makes sense inside the containers (that file >>>>> lists absolute paths...). They can be mounted read-only up to the >>>>> container's root, but further down they need to be writable to the >>>>> container, so that systemd inside the container can do its job. >>>> >>>> And what solution do you propose? >>> >>> Solution? For what problem precisely? >> >> Running systemd inside Linux container (including user namespaces). :-) >> >>>> Will cgroup namespaces make systemd finally happy? >>> >>> I have no idea about cgroup namespaces and what they entail. >>> >>> systemd is quite happy already, if you follow the guidelines for >>> container managers we put together... >> >> Have you ever used systemd inside a container? >> Say, LXC or libvirt-lxc... > > Have you read the link I posted? Sure, I've also been in the room in Düsseldorf while you've read it in front of us. > Yes, I test systemd inside containers. Daily. Actually it's my primary > way of testing systemd, since it is extremely quick and allows me to > attach from the host with debugging tools... > > As long as you follow the suggestions in the document I linked systemd > will work without modifications in container managers. At least > libvirt-lxc and nspawn follows these suggestions, not sure about the > other container managers. If I read the source of nspwan correctly, it does not use user namespaces. libvirt-lxc is currently not sure how to support systemd. So far it bind mounts only the machine specific part of cgroups into the container. Which is not really nice but better than exposing the whole hierarchy into the container. This is why I was asking for cgroup namespaces... > Also read: > > http://www.freedesktop.org/wiki/Software/systemd/writing-vm-managers/ > > We have documented this all so nicely, I can only recommend to > actually take the time to read this. Thanks! Thanks a lot! //richard ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <54454355.90605-/L3Ra7n9ekc@public.gmane.org>]
* Re: [systemd-devel] How to use cgroups within containers? [not found] ` <54454355.90605-/L3Ra7n9ekc@public.gmane.org> @ 2014-10-20 17:27 ` Lennart Poettering 2014-10-20 17:33 ` Richard Weinberger 0 siblings, 1 reply; 12+ messages in thread From: Lennart Poettering @ 2014-10-20 17:27 UTC (permalink / raw) To: Richard Weinberger Cc: Linux Containers, systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, LXC development mailing-list On Mon, 20.10.14 19:16, Richard Weinberger (richard-/L3Ra7n9ekc@public.gmane.org) wrote: > > Have you read the link I posted? > > Sure, I've also been in the room in Düsseldorf while you've read it > in front of us. Not that I changed it since then... ;-) > > Yes, I test systemd inside containers. Daily. Actually it's my primary > > way of testing systemd, since it is extremely quick and allows me to > > attach from the host with debugging tools... > > > > As long as you follow the suggestions in the document I linked systemd > > will work without modifications in container managers. At least > > libvirt-lxc and nspawn follows these suggestions, not sure about the > > other container managers. > > If I read the source of nspwan correctly, it does not use user > namespaces. Ah, this is about user namespaces? No I have not played around with them so far. Sorry. > libvirt-lxc is currently not sure how to support systemd. So far it > bind mounts only the machine specific part of cgroups into the container. > Which is not really nice but better than exposing the whole hierarchy into > the container. It really should also bind mount the upper parts, but possibly mark them read-only (which nspawn currently doesn't do). Thanks, Lennart -- Lennart Poettering, Red Hat ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [systemd-devel] How to use cgroups within containers? 2014-10-20 17:27 ` Lennart Poettering @ 2014-10-20 17:33 ` Richard Weinberger 0 siblings, 0 replies; 12+ messages in thread From: Richard Weinberger @ 2014-10-20 17:33 UTC (permalink / raw) To: Lennart Poettering Cc: Linux Containers, systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, LXC development mailing-list Am 20.10.2014 um 19:27 schrieb Lennart Poettering: > On Mon, 20.10.14 19:16, Richard Weinberger (richard-/L3Ra7n9ekc@public.gmane.org) wrote: > >>> Have you read the link I posted? >> >> Sure, I've also been in the room in Düsseldorf while you've read it >> in front of us. > > Not that I changed it since then... ;-) > >>> Yes, I test systemd inside containers. Daily. Actually it's my primary >>> way of testing systemd, since it is extremely quick and allows me to >>> attach from the host with debugging tools... >>> >>> As long as you follow the suggestions in the document I linked systemd >>> will work without modifications in container managers. At least >>> libvirt-lxc and nspawn follows these suggestions, not sure about the >>> other container managers. >> >> If I read the source of nspwan correctly, it does not use user >> namespaces. > > Ah, this is about user namespaces? No I have not played around with > them so far. Sorry. Yep. Please have a look at them. There are some pitfalls. >> libvirt-lxc is currently not sure how to support systemd. So far it >> bind mounts only the machine specific part of cgroups into the container. >> Which is not really nice but better than exposing the whole hierarchy into >> the container. > > It really should also bind mount the upper parts, but possibly mark > them read-only (which nspawn currently doesn't do). Okay. Or maybe cgroup namespaces will help. Let's find out. :) Thanks, //richard ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2014-10-20 17:33 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-17 21:35 How to use cgroups within containers? Richard Weinberger
[not found] ` <CAFLxGvxKP2wkGOqW=mz7Sv=+yJXiY-1Hz-4kKfR8mYVEWPOj6Q@mail.gmail.com>
[not found] ` <CAFLxGvxKP2wkGOqW=mz7Sv=+yJXiY-1Hz-4kKfR8mYVEWPOj6Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-10-17 21:52 ` [systemd-devel] " Cameron Norman
2014-10-18 3:50 ` Serge E. Hallyn
[not found] ` <CAFLxGvxzmfhLZPsmsFG9qdB0oDf9ayvNaWNNOXqcAkW3yATffg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-10-17 21:37 ` Richard Weinberger
2014-10-20 16:24 ` [systemd-devel] " Lennart Poettering
[not found] ` <20141020162445.GA4008@gardel-login>
2014-10-20 16:49 ` Richard Weinberger
[not found] ` <54453D06.9020101@nod.at>
[not found] ` <54453D06.9020101-/L3Ra7n9ekc@public.gmane.org>
2014-10-20 16:51 ` Lennart Poettering
2014-10-20 16:55 ` Richard Weinberger
[not found] ` <54453E6F.6000202-/L3Ra7n9ekc@public.gmane.org>
2014-10-20 17:04 ` Lennart Poettering
[not found] ` <20141020170442.GA4271@gardel-login>
2014-10-20 17:16 ` Richard Weinberger
[not found] ` <54454355.90605-/L3Ra7n9ekc@public.gmane.org>
2014-10-20 17:27 ` Lennart Poettering
2014-10-20 17:33 ` Richard Weinberger
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.