HostOnNet Blog

Show All OpenVZ Virtual Machines On A Server

Looking for Linux Server Admin or WordPress Expert? We can help.

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.