Show All OpenVZ Virtual Machines On A Server

vzlist shows all virtual machines on a server

To get currently running VPS, run vzlist

[root@server12 ~]# vzlist
      CTID      NPROC STATUS    IP_ADDR         HOSTNAME
       244         27 running   174.36.130.247  sam.localhost
[root@server12 ~]#

To get all VPS on the server, run vzlist -a

[root@server12 ~]# vzlist -a
      CTID      NPROC STATUS    IP_ADDR         HOSTNAME
       103         24 running   174.36.130.246  vhost.bizhat.com
       222          - stopped   174.36.130.247  alex.localhost
       233          - stopped   174.36.130.247  alex.localhost
       244         27 running   174.36.130.247  sam.localhost
[root@server12 ~]#

Posted in Virtualization