Variables en CT configuration files (suggestion?)

luison

Renowned Member
Feb 22, 2010
147
5
83
Spain
elsurexiste.com
I understand the use of variables in LXC container files is not possible, so this entry is likely intended as a suggestion unless someone explains a documented way to do it. They are actually related to bind mounts.

The main one is related to being able to use something like "${VMID}" in conf files. Tried this, which does not work:

mp3: /backups/host/vms/${VMID},mp=/backups/,size=0T

The idea is that one could use de containers VIMD as a reference within the config. In our case we use a few bind mounts and this has to be done manually when we clone. Well clone is not permitted when using bind mounts and this might be a way they could, but in any case even when restoring a backup we have to change a few of those for example as in... "/cache/122" where each CT gets it's directory.

If there is another location for this kind of feature request/suggestions, excuse me for posting here.
 

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!