<div dir="ltr">Hello lxc community,<br><br>Has anyone used nested containers?<br><br>I am trying with limited success. I cannot re-start them.<br>I can: <br> 1. create a container.<br> 2. configure it for nesting (I uncomment 2 lines in config).<br>
3. start the container.<br> 4. stop the container.<br> 5. but I cannot re-start the container.<br><br>However, if I do not configure the container for nesting then<br>I can stop and re-start the container repeatedly without errors.<br>
<br>Specifically, the following command line sequence fails on the <br>second lxc-start (please note I do not show the normal lxc-<br>output below, only the error msg):<br><br> # lxc-create -t ubuntu -n C00<br> # X="lxc.aa_profile = lxc-container-default-with-nesting"<br>
# sed -i -e "s/^#$X/$X/" /var/lib/lxc/C00/config<br> # X="lxc.hook.mount = /usr/share/lxc/hooks/mountcgroups"<br> # sed -i -e "s/^#$X/$X/" /var/lib/lxc/C00/config<br> # lxc-start -d -n C00<br>
# lxc-stop -n C00<br> # lxc-start -d -n C00<br> lxc-start: command get_cgroup failed to receive response<br><br>When I start the container the first time, lxc-ls --fancy <br>displays the container's IP address. Then I can ssh to the <br>
container as 'ubuntu', install packages there such as lxc, <br>and even create containers there, the container is working <br>just fine. <br><br>But once I stop the container I can never start it again. <br>Always with the same get_cgroup error as above. <br>
<br>I am using:<br> lxc version == '1.0.0.alpha2' <br> kernel == 3.11.0-12-generic<br><br>Any ideas/suggestions on how one might re-start such a container?<br>Thank you.<br><br></div>