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.

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

root@mail:~# 

To see all network

root@server1:~# virsh net-list --all
 Name      State    Autostart   Persistent
--------------------------------------------
 Bridge0   active   yes         yes

root@server1:~#

See virsh

Comments

Leave a Reply

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