We use to use VMID vars in OpenVZ conf files to define fixed mount points on all our containers.
We've been trying to achieve the same with LXC without success.
Something like:
I understand there are a number of Environment Variables available in LXC (https://linuxcontainers.org/lxc/manpages/man5/lxc.container.conf.5.html#lbBD) but we can't figure out if they are also available in LXC container conf file or how to use them if they are... $ [], etc
Also, we don't find a var that corresponds to the machine "number", although I understand that the old OpenVZ number now corresponds to the containers name.
Thanks.
We've been trying to achieve the same with LXC without success.
Something like:
Code:
mp2: /logs/$VMID,mp=/logs
I understand there are a number of Environment Variables available in LXC (https://linuxcontainers.org/lxc/manpages/man5/lxc.container.conf.5.html#lbBD) but we can't figure out if they are also available in LXC container conf file or how to use them if they are... $ [], etc
Also, we don't find a var that corresponds to the machine "number", although I understand that the old OpenVZ number now corresponds to the containers name.
Thanks.