Stopped all lxc/kvm instances, ran `apt-get update` and `apt-get upgrade`, then rebooted. Pretty straight forwarded.
Upon reboot, about 20 LXC's started, but 3 did not. Nothing special about their configs, but I was getting an error when trying to run the foreground. Went looking around apparmor (the error was something to do with unable to apply lxc-defaults-cgns, but I don't remember the exact error) and ran
and got this:
never touched /etc/apparmor.d/lxc-containers before, but the issue is with that include line. If I comment it out, the apparmor service will start up fine. Well, removed the comment, tried restarting the apparmor service and it's failing again, but now my LXC starts. What gives? What's wrong with `include <lxc>` in `lxc-containers`?
Upon reboot, about 20 LXC's started, but 3 did not. Nothing special about their configs, but I was getting an error when trying to run the foreground. Went looking around apparmor (the error was something to do with unable to apply lxc-defaults-cgns, but I don't remember the exact error) and ran
Code:
systemctl status apparmor -l
Code:
root@jormungandr:~# systemctl status apparmor -l
● apparmor.service - LSB: AppArmor initialization
Loaded: loaded (/etc/init.d/apparmor)
Active: failed (Result: exit-code) since Tue 2017-01-10 15:56:14 EST; 2min 34s ago
Process: 5383 ExecStop=/etc/init.d/apparmor stop (code=exited, status=0/SUCCESS)
Process: 5394 ExecStart=/etc/init.d/apparmor start (code=exited, status=123)
Jan 10 15:56:14 jormungandr systemd[1]: Starting LSB: AppArmor initialization...
Jan 10 15:56:14 jormungandr apparmor[5394]: Starting AppArmor profiles:AppArmor parser error for /etc/apparmor.d/lxc-containers in /etc/apparmor.d/lxc-containers at line 7: Found unexpected character: '<'
Jan 10 15:56:14 jormungandr apparmor[5394]: AppArmor parser error for /etc/apparmor.d/lxc-containers in /etc/apparmor.d/lxc-containers at line 7: Found unexpected character: '<'
Jan 10 15:56:14 jormungandr apparmor[5394]: failed!
Jan 10 15:56:14 jormungandr systemd[1]: apparmor.service: control process exited, code=exited status=123
Jan 10 15:56:14 jormungandr systemd[1]: Failed to start LSB: AppArmor initialization.
Jan 10 15:56:14 jormungandr systemd[1]: Unit apparmor.service entered failed state.
Code:
root@jormungandr:~# cat /etc/apparmor.d/lxc-containers
# This file exists only to ensure that all per-container policies
# listed under /etc/apparmor.d/lxc get loaded at boot. Please do
# not edit this file.
#include <tunables/global>
include <lxc>
never touched /etc/apparmor.d/lxc-containers before, but the issue is with that include line. If I comment it out, the apparmor service will start up fine. Well, removed the comment, tried restarting the apparmor service and it's failing again, but now my LXC starts. What gives? What's wrong with `include <lxc>` in `lxc-containers`?