Kaushal Shriyan
2019-Jul-29 17:38 UTC
[libvirt-users] virsh command to list CPU,Memory and Storage
Hi, Is there a way to find out total CPU's, Memory and Storage using virsh command? For example virsh list --all list out all VM's 11 dockerregistry01 running 12 gitlab running Any help will be highly appreciated. Thanks in Advance. Best Regards, Kaushal
Erik Skultety
2019-Jul-30 07:06 UTC
Re: [libvirt-users] virsh command to list CPU,Memory and Storage
On Mon, Jul 29, 2019 at 11:08:57PM +0530, Kaushal Shriyan wrote:> Hi, > > Is there a way to find out total CPU's, Memory and Storage using virsh > command? For example virsh list --all list out all VM's > > 11 dockerregistry01 running > 12 gitlab running > > Any help will be highly appreciated. Thanks in Advance. > > Best Regards, > > KaushalHi, have a look at dominfo command, that will give you basic information about the guest, that however, doesn't include storage. For storage, you'd want to use a sequence of commands: domblklist <domain>;domblkinfo <domain> <disk> --human. Regards, Erik
Peter Krempa
2019-Jul-30 07:14 UTC
Re: [libvirt-users] virsh command to list CPU,Memory and Storage
On Tue, Jul 30, 2019 at 09:06:25 +0200, Erik Skultety wrote:> On Mon, Jul 29, 2019 at 11:08:57PM +0530, Kaushal Shriyan wrote: > > Hi, > > > > Is there a way to find out total CPU's, Memory and Storage using virsh > > command? For example virsh list --all list out all VM's > > > > 11 dockerregistry01 running > > 12 gitlab running > > > > Any help will be highly appreciated. Thanks in Advance. > > > > Best Regards, > > > > Kaushal > > Hi, > have a look at dominfo command, that will give you basic information about the > guest, that however, doesn't include storage. For storage, you'd want to use a > sequence of commands: domblklist <domain>;domblkinfo <domain> <disk> --human.Or everything together but in a less-human-friendly form via virsh domstats. Also virt-top might be of interest.