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
(orvzctl
if legacy tools are installed), but many OpenVZ 6 commands still work with compatibility. - Ensure you are root when running these commands on the node.
vzlist
output can be customized further using different column combinations (vzlist --help
for more info).