virsh list

To list all VM on a KVM server, run

virsh list

Example

root@s3-m12:~# virsh list
 Id    Name                           State
----------------------------------------------------
 6     foo                            running

root@s3-m12:~#

To view all Virtual machines including stopped VM’s, use –all option.

Advertisement

root@mail:~# virsh list --all
 Id   Name       State
---------------------------
 1    iredmail   running
 -    win10      shut off

root@mail:~#
Add a comment

Leave a Reply

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

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement