containers wont start after pve-5.x full upgrade

tpham

New Member
Apr 23, 2017
7
0
1
42
Hi,

After having done a full upgrade on a 5.x system, my promox server wouldn't start any containers. The error I saw was that apparmor tried to auto generate a profile located at /var/lib/lxc/<id>/lxc-<something>, and then it failed with an error something like apparmor="DENIED", operation="change_profile" in syslog. I then was able to resolve this error and booted all by containers by manually by adding the below config to each container's config file (/etc/pve/lxc/<id>.conf):

lxc.apparmor.profile=unconfined


Since I have another node in a cluster that I would like to upgrade, I would like to fully understand why the full-upgrade broke the first server. Why does LXC tried to autogenerate a profile config, which it hadn't been doing with the old system? Is there another work around to tell LXC not to generate an apparmor profile?


thanks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!