[lxc-devel] nested containers

S.Çağlar Onur caglar at 10ur.org
Fri Dec 27 23:56:15 UTC 2013


Hey Pauk,

On Fri, Dec 27, 2013 at 6:49 PM, Paul Wexler
<paul at prometheusresearch.com> wrote:
> Hello lxc community,
>
> Has anyone used nested containers?
>
> I am trying with limited success.  I cannot re-start them.
> I can:
>   1. create a container.
>   2. configure it for nesting (I uncomment 2 lines in config).
>   3. start the container.
>   4. stop the container.
>   5. but I cannot re-start the container.
>
> However, if I do not configure the container for nesting then
> I can stop and re-start the container repeatedly without errors.
>
> Specifically, the following command line sequence fails on the
> second lxc-start (please note I do not show the normal lxc-
> output below, only the error msg):
>
>   # lxc-create -t ubuntu -n C00
>   # X="lxc.aa_profile = lxc-container-default-with-nesting"
>   # sed -i -e "s/^#$X/$X/" /var/lib/lxc/C00/config
>   # X="lxc.hook.mount = /usr/share/lxc/hooks/mountcgroups"
>   # sed -i -e "s/^#$X/$X/" /var/lib/lxc/C00/config
>   # lxc-start -d -n C00
>   # lxc-stop -n C00
>   # lxc-start -d -n C00
>   lxc-start: command get_cgroup failed to receive response

I believe this issue fixed after alpha has been released [1] so could
you try replacing your mountcgroups hook with [2] and try again to see
what will happen?

> When I start the container the first time, lxc-ls --fancy
> displays the container's IP address.  Then I can ssh to the
> container as 'ubuntu', install packages there such as lxc,
> and even create containers there, the container is working
> just fine.
>
> But once I stop the container I can never start it again.
> Always with the same get_cgroup error as above.
>
> I am using:
>   lxc version ==  '1.0.0.alpha2'
>   kernel == 3.11.0-12-generic
>
> Any ideas/suggestions on how one might re-start such a container?
> Thank you.
>
>
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
>

[1] https://github.com/lxc/lxc/commit/fa7fced87899ae37f193c81115543d1df5c28fbb
[2] https://raw.github.com/lxc/lxc/master/hooks/mountcgroups

Best,
-- 
S.Çağlar Onur <caglar at 10ur.org>


More information about the lxc-devel mailing list