LXC container .conf - variables inside it

pmxforum

Renowned Member
Jun 2, 2016
35
7
73
50
Hi.
Is there a solution to use variables in container configuration.
I need to start some premount scripts and some post stop scripts.
As far as I've understand, up to now the variables in container configs are not implemented.

My task is simple:
1- to create some directories and files before start of lxc container and after lxc.mount them
2 - to remove mentioned above files and directories after container shutdown.
I need such option because this files and directories locates in tmpfs, not on my hdd and I have only 8G tmpfs.
 

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!