Getting the VMID inside a Debian Guest:
In a Debian OpenVZ container we could use:
What is the equivalent for a Debian LXC container?
In a Debian OpenVZ container we could use:
Bash:
VMID=`awk '{print $1}' /proc/vz/veinfo`
What is the equivalent for a Debian LXC container?
Last edited: