From: Richard Weinberger <richard-/L3Ra7n9ekc@public.gmane.org>
To: Lennart Poettering <lennart-mdGvqq1h2p+GdvJs77BJ7Q@public.gmane.org>
Cc: Linux Containers
<containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>,
"systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
<systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>,
LXC development mailing-list
<lxc-devel-cunTk1MwBs9qMoObBWhMNEqPaTDuhLve2LY78lusg7I@public.gmane.org>
Subject: Re: [systemd-devel] How to use cgroups within containers?
Date: Mon, 20 Oct 2014 18:55:11 +0200 [thread overview]
Message-ID: <54453E6F.6000202@nod.at> (raw)
In-Reply-To: <20141020165129.GA4179@gardel-login>
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
next prev parent reply other threads:[~2014-10-20 16:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
[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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54453E6F.6000202@nod.at \
--to=richard-/l3ra7n9ekc@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=lennart-mdGvqq1h2p+GdvJs77BJ7Q@public.gmane.org \
--cc=lxc-devel-cunTk1MwBs9qMoObBWhMNEqPaTDuhLve2LY78lusg7I@public.gmane.org \
--cc=systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.