[libvirt] virsh command to list CPU, Memory and Storage of all the running VM's

Martin Kletzander mkletzan at redhat.com
Mon Jul 29 08:56:29 UTC 2019


On Sat, Jul 27, 2019 at 06:40:08AM +0530, Kaushal Shriyan wrote:
>Hi,
>
>Is there a way to find out total CPU's, Memory and Storage of all the
>running VM's using virsh command? For example virsh list --all list out all
>VM's
>
>11    dockerregistry01               running
>12    gitlab      running
>

Since you probably do not want to script it, you might want to utilise something
like `virsh domstats`.  See man page and --help output for various options.

Just a note: It is preferable to use libvirt-users list for similar questions.

Have a nice day,
Martin

>Any help will be highly appreciated. Thanks in Advance.
>
>Best Regards,
>
>Kaushal

>--
>libvir-list mailing list
>libvir-list at redhat.com
>https://www.redhat.com/mailman/listinfo/libvir-list

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190729/64d1448e/attachment-0001.sig>


More information about the libvir-list mailing list