These commands are helpful for managing OpenVZ containers on nodes managed by SolusVM, compatible with OpenVZ 6 and OpenVZ 7 environments.
🔍 List All VMs on the VPS Node
Show all virtual machines on the node:
vzlist -a
📊 Show VMs by Load Average (Highest First)
List all VMs with their VPS ID and current load average:
vzlist -o vpsid,laverage
📛 Show Load Average with Hostname
Same as above, but includes the VM’s hostname:
vzlist -o laverage,vpsid,hostname
💾 Show Disk Space Usage (Sorted by Usage)
See which VM is using the most disk space (useful for cleanup or billing):
vzlist -a -o ctid,hostname,diskspace -s diskspace
🔐 Enter a Container (Root Shell)
To access a container from the node:
vzctl enter <CTID>
Replace <CTID> with the container’s ID (found using vzlist -a).
📝 Notes:
- On OpenVZ 7, the command-line tool is
prlctl(orvzctlif legacy tools are installed), but many OpenVZ 6 commands still work with compatibility. - Ensure you are root when running these commands on the node.
vzlistoutput can be customized further using different column combinations (vzlist --helpfor more info).
