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.
root@mail:~# virsh list --all Id Name State --------------------------- 1 iredmail running - win10 shut off root@mail:~#