Please make sure that the snapd.apparmor service is enabled and started

I have MicroK8s installed in LXD container. When I restart the LXD container, MicroK8s won’t start. It won’t start automatically with container but also not manually as visible below.

root@c2d-ks1:~# microk8s start
missing profile snap.microk8s.microk8s.
Please make sure that the snapd.apparmor service is enabled and started

I can workaround this message with the following command

apparmor_parser --add /var/lib/snapd/apparmor/profiles/snap.microk8s.*

But how do I fix for this issue permanently? I like to have MicroK8s start automatically.

1 Like

This sounds like it may be worth opening a bug/post with the microk8s project.