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.