LXC Conatiner startet nach Installation einer Software die als Dienst startet nicht mehr. (AppArmor)
Beschreibung
LXC Conatiner startet nach Installation einer Software die als Dienst startet nicht mehr.
So sieht das Bild aus. Einfach ein schwarzes terminal wo wir reinschreiben können.
Vorbereitung
Damit wir info bekommen, warum das ding nicht startet müssen wir in den Option des Containers die Console von tty auf Console umstellen.
Dazu auf Optionen des Containers und Doppelklick auf Console
Nun aus der Liste /dev(console auswählen und ok
Wenn wir jetzt den Container neu starten und ein neues Konsolenfenter aufmachen bekommen wir infos.
Nun melden wir uns mit unserem Kennwort an und sheen wir sind als root eingeloggt
Nun mit journalctl -xe schauen was Sache ist. Dazu scrollen wir hoch bis zum Fehler.
emd[86]: /sbin/apparmor_parser: Unable to replace "lsb_release". Permission de>
emd[93]: /sbin/apparmor_parser: Unable to replace "/usr/bin/man". Permission d>
emd[92]: /sbin/apparmor_parser: Unable to replace "/usr/lib/NetworkManager/nm-d>
emd[96]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
emd[94]: /sbin/apparmor_parser: Unable to replace "tcpdump". Permission denied>
emd[118]: /sbin/apparmor_parser: Unable to replace "lsb_release". Permission d>
emd[121]: /sbin/apparmor_parser: Unable to replace "kmod". Permission denied; >
emd[121]: /sbin/apparmor_parser: Unable to replace "nvidia_modprobe". Permissi>
emd[133]: /sbin/apparmor_parser: Unable to replace "/usr/bin/man". Permission >
emd[131]: /sbin/apparmor_parser: Unable to replace "/usr/lib/NetworkManager/nm->
emd[139]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
emd[135]: /sbin/apparmor_parser: Unable to replace "tcpdump". Permission denie>
emd[77]: Error: At least one profile failed to load
pparmor.service: Main process exited, code=exited, status=1/FAILURE
scroll right
replace "lsb_release". Permission denied; attempted to load a profile while >
o replace "/usr/bin/man". Permission denied; attempted to load a profile while>
o replace "/usr/lib/NetworkManager/nm-dhcp-client.action". Permission denied; >
or.d/disable: usr.sbin.rsyslogd
o replace "tcpdump". Permission denied; attempted to load a profile while conf>
to replace "lsb_release". Permission denied; attempted to load a profile while>
to replace "kmod". Permission denied; attempted to load a profile while confin>
to replace "nvidia_modprobe". Permission denied; attempted to load a profile w>
to replace "/usr/bin/man". Permission denied; attempted to load a profile whil>
to replace "/usr/lib/NetworkManager/nm-dhcp-client.action". Permission denied;>
mor.d/disable: usr.sbin.rsyslogd
to replace "tcpdump". Permission denied; attempted to load a profile while con>
led to load
scroll right
ied; attempted to load a profile while confined?
nied; attempted to load a profile while confined?
cp-client.action". Permission denied; attempted to load a profile while confin>
attempted to load a profile while confined?
nied; attempted to load a profile while confined?
ttempted to load a profile while confined?
n denied; attempted to load a profile while confined?
enied; attempted to load a profile while confined?
hcp-client.action". Permission denied; attempted to load a profile while confi>
; attempted to load a profile while confined?
In dem Conatiner dann apparmor deaktivieren
systemctl disable apparmor
Dann sollte die Kiste starten.
Allerdings rate ich genau wegen solchen Dingen von Containern ab und empfehle KVM in Verbindung mit cloudinit.



