Templates

sahostking

Renowned Member
We have sucessfully managed to create cPanel templates with everything required for easy setup for production use and it works very well.

Unfortunately however we have to keep editing the conf files in /etc/pve/lxc/CT.conf file constantly to add:


lxc.apparmor.profile: unconfined

is there a way to add it to template? so that new Containers will have it added to their conf files automatically?

The procedure we follow is as follows:

create a CT and configure it as requied.
stop it
remove network
back it up using GZIP
rename the backup file to correct name and move it to template/cache folder on our NFS backup server.

Is there a step we missing to have it add the conf value?

Thanks
 
hi,

i think the best solution for you is to make a container with your settings, right click and convert it to template after adding the apparmor line and proceed as normal.
 

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!