local: nested lxc containers

Frederico Araujo araujof at gmail.com
Wed Oct 14 23:35:49 UTC 2015


For now, I'm just editing the configuration of the lxc container from which
juju clone new lxc instances, so that all new machines allow nested
containers.
It would be nice if we could override container configurations during
deployment, though :)

On Wed, Oct 14, 2015 at 6:13 PM, Frederico Araujo <araujof at gmail.com> wrote:

> Hi,
>
> I wrote a charm for an application I developed which deploys some lxc
> containers. I wanted to test it in my local environment (bootstrapped
> with juju-quickstart), but I couldn't find a way to configure juju to
> automatically create containers with specific settings---in my case,
> allowing for nested lxc containers. I need to somehow change the
> configuration fo the parent lxc container created by juju during deployment
> of the charm to add these two lines:
>
> lxc.mount.auto = cgroup
> lxc.aa_profile = lxc-container-default-with-nesting
>
> After manually adding these lines to the parent container created by juju,
> the internal containers work. The problem of adding them manually is that
> juju won't be able to start the internal containers automatically during
> juju deploy.
>
> Any ideas?
>
> Thanks,
> Fred
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20151014/468e809a/attachment.html>


More information about the Juju mailing list