Hi Serge, you're right. I removed the lxc.hook.mount = mountcgroups from the wrong template. Now that I destroyed the whole juju environment, removed lxc.hook.mount = mountcgroups from the correct one and bootstrapped again, I got juju's lxc containers to start correctly. Thank you for helping debug this.
In any case, I got the instructions to include that lxc.hook.mount = mountcgroups in /usr/share/lxc/config/ubuntu.common.conf which says:
# To support container nesting on an Ubuntu host while retaining most of
# apparmor's added security, use the following two lines instead.
#lxc.aa_profile = lxc-container-default-with-nesting
#lxc.hook.mount = /usr/share/lxc/hooks/mountcgroups
Hi Serge, you're right. I removed the lxc.hook.mount = mountcgroups from the wrong template. Now that I destroyed the whole juju environment, removed lxc.hook.mount = mountcgroups from the correct one and bootstrapped again, I got juju's lxc containers to start correctly. Thank you for helping debug this.
In any case, I got the instructions to include that lxc.hook.mount = mountcgroups in /usr/share/ lxc/config/ ubuntu. common. conf which says:
# To support container nesting on an Ubuntu host while retaining most of default- with-nesting lxc/hooks/ mountcgroups
# apparmor's added security, use the following two lines instead.
#lxc.aa_profile = lxc-container-
#lxc.hook.mount = /usr/share/
So I think this is at least a documentation bug.