Proxmox LXC Container Template Configuration


New Member
Apr 14, 2022
Hey guys,

i've created a LXC container from a Debian 11 template, installed all needed packages and converted the container into a template.

Now i wanted to update the template so I chrooted into the basevol and updated everything.

My problem now is, that when I create a clone of this updated template, the cloned container is not updated and has all the old packages from before I updated with chroot.

Does anybody know how to fix this or what I did wrong?

Thanks in advance
A template is always the tar.gz (or whatever comression you used) and not the unpacked on. If you want to have that, you need to repackage the template.

I solved this problem in general with a directory containing the extracted content of a template and chroot into it for all the stuff I wanted to and then repackage this directory as a new template (just tar and gzip) in order to get a new template. The directory is still present and available for the next chroot-change, afterwards another repackaging.

For my containers, I created a special VM that does all of that for me and I store one container template per zfs dataset and I have scripts in place to automatically build new templates if there is a new zfs snapshot on the dataset.


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!