Re: [libvirt-users] virsh blockcopy: doesn't seem to flatten the chain by default

2014-07-03 Thread shyu
On 07/04/2014 01:08 AM, Eric Blake wrote: On 07/02/2014 01:12 PM, Kashyap Chamarthy wrote: We have this simple chain: base <- snap1 Let's quickly examine the contents of 'base' and 'snap1' images: Now, let's do a live blockcopy (with a '--finish' to graecully finish the mirroring):

Re: [libvirt-users] getting CPU usage of VMs through libvirt

2014-07-03 Thread Eric Blake
On 07/03/2014 01:12 AM, Restituto Marcus Arevalo wrote: > Greetings everyone, > [can you convince your mailer to wrap long lines?] > >I just want to ask if it is possible to get the CPU usage of the VMs in KVM through libvirt? I mean, how does the virt-manager produce the graph it displ

Re: [libvirt-users] Domain Storage type

2014-07-03 Thread Eric Blake
On 07/02/2014 01:14 AM, Sijo Jose wrote: > Hi, > > How can we identify a domain is using Shared storage OR Non shared storage > using libvirt -API? As in, if you do 'virsh dumpxml' and look for the designation on a ? Or are you trying to figure out if storage belongs to a pool that is visible to

Re: [libvirt-users] memoryStats question

2014-07-03 Thread Ok
> You also have to have new enough qemu that reports stats without > blocking (qemu 0.14 or newer added stat reporting via qom-get, since the > older query-balloon interface blocks) and libvirt that knows how to read > stats via qom-get (libvirt 1.1.1 or newer) As I've already mentioned I use QEM

Re: [libvirt-users] virsh blockcopy: doesn't seem to flatten the chain by default

2014-07-03 Thread Eric Blake
On 07/02/2014 03:23 PM, Kashyap Chamarthy wrote: > On Thu, Jul 03, 2014 at 12:42:20AM +0530, Kashyap Chamarthy wrote: > > [. . .] > > Forgot to note: Before blockcopy, the current block device is > snap1.qcow2 (after too, it's the same, since we didn't `--pivot` to the > copy. > Not pivoting do

Re: [libvirt-users] virsh blockcopy: doesn't seem to flatten the chain by default

2014-07-03 Thread Eric Blake
On 07/02/2014 01:12 PM, Kashyap Chamarthy wrote: > We have this simple chain: > > base <- snap1 > > Let's quickly examine the contents of 'base' and 'snap1' images: > > Now, let's do a live blockcopy (with a '--finish' to graecully finish > the mirroring): > > $ virsh blockcopy --doma

Re: [libvirt-users] memoryStats question

2014-07-03 Thread Eric Blake
On 07/03/2014 08:39 AM, Claudio Bley wrote: > At Thu, 03 Jul 2014 17:32:20 +0300, > Gleb Voronich wrote: >> >> >>> Actually, you should get more stats when using the virtio balloon >>> driver in your guests. >> I use the balloon but I can't get more stats. >> I use python binding for libvirt and as

Re: [libvirt-users] memoryStats question

2014-07-03 Thread Eric Blake
On 07/03/2014 08:46 AM, Gleb Voronich wrote: > >> virDomainMemoryStats() gets those stats, if qemu is new enough to >> provide them, and if the guest cooperates to provide them. > Well I use the latest QEMU 2.0.0 > I have the latest CentOS 6.5 installed on the guest and unfortunately I > can't get

Re: [libvirt-users] memoryStats question

2014-07-03 Thread Gleb Voronich
virDomainMemoryStats() gets those stats, if qemu is new enough to provide them, and if the guest cooperates to provide them. Well I use the latest QEMU 2.0.0 I have the latest CentOS 6.5 installed on the guest and unfortunately I can't get more stats that I have. Which OS are you using in y

Re: [libvirt-users] memoryStats question

2014-07-03 Thread Claudio Bley
At Thu, 03 Jul 2014 17:32:20 +0300, Gleb Voronich wrote: > > > > Actually, you should get more stats when using the virtio balloon > > driver in your guests. > I use the balloon but I can't get more stats. > I use python binding for libvirt and as far as I can see it calls > virDomainMemoryStats

Re: [libvirt-users] memoryStats question

2014-07-03 Thread Eric Blake
On 07/03/2014 08:29 AM, Gleb Voronich wrote: >> Eric Blake >> > >> > In the case of the memory balloon device, libvirt CAN provide stats from >> > the guest, because of the way the balloon device works. But if you >> > aren't using a balloon, or if the guest is not cooper

Re: [libvirt-users] memoryStats question

2014-07-03 Thread Gleb Voronich
Actually, you should get more stats when using the virtio balloon driver in your guests. I use the balloon but I can't get more stats. I use python binding for libvirt and as far as I can see it calls virDomainMemoryStats exactly. ___ libvirt-users

Re: [libvirt-users] memoryStats question

2014-07-03 Thread Gleb Voronich
Eric Blake In the case of the memory balloon device, libvirt CAN provide stats from the guest, because of the way the balloon device works. But if you aren't using a balloon, or if the guest is not cooperative, this won't work. Better would be a guest-agent command for

Re: [libvirt-users] memoryStats question

2014-07-03 Thread Claudio Bley
At Thu, 3 Jul 2014 15:58:41 +0200, Martin Kletzander wrote: > > On Thu, Jul 03, 2014 at 04:31:46PM +0300, Gleb Voronich wrote: > >Hello, > > > >I'm trying to get memory usage statistic inside a guest machine using > >virDomainMemoryStats function at libvirt. > >According to > >http://libvirt.org/h

Re: [libvirt-users] memoryStats question

2014-07-03 Thread Eric Blake
On 07/03/2014 07:58 AM, Martin Kletzander wrote: > On Thu, Jul 03, 2014 at 04:31:46PM +0300, Gleb Voronich wrote: >> Hello, >> >> I'm trying to get memory usage statistic inside a guest machine using >> virDomainMemoryStats function at libvirt. >> According to >> http://libvirt.org/html/libvirt-lib

Re: [libvirt-users] memoryStats question

2014-07-03 Thread Martin Kletzander
On Thu, Jul 03, 2014 at 04:31:46PM +0300, Gleb Voronich wrote: Hello, I'm trying to get memory usage statistic inside a guest machine using virDomainMemoryStats function at libvirt. According to http://libvirt.org/html/libvirt-libvirt.html#virDomainMemoryStatTags the structure could have a lot o

[libvirt-users] memoryStats question

2014-07-03 Thread Gleb Voronich
Hello, I'm trying to get memory usage statistic inside a guest machine using virDomainMemoryStats function at libvirt. According to http://libvirt.org/html/libvirt-libvirt.html#virDomainMemoryStatTags the structure could have a lot of useful memory statistic but the amount of parameters depen

[libvirt-users] [Resolved] Re: virsh blockcopy: doesn't seem to flatten the chain by default

2014-07-03 Thread Kashyap Chamarthy
On Thu, Jul 03, 2014 at 05:07:40PM +0800, shyu wrote: > > On 07/03/2014 03:12 AM, Kashyap Chamarthy wrote: [. . ] Okay, I clearly must have done something wrong during guestfish disk creations plus a mix of libvirt/QEMU manipulations (backing chains were created using `qemu-img`). If I consiste

Re: [libvirt-users] virsh blockcopy: doesn't seem to flatten the chain by default

2014-07-03 Thread shyu
On 07/03/2014 03:12 AM, Kashyap Chamarthy wrote: Versions (Libvirt locally built from a recent git commit -ec7b922): $ rpm -q libvirt-daemon-kvm qemu-system-x86 libvirt-daemon-kvm-1.2.6-1.fc20.x86_64 qemu-system-x86-2.0.0-1.fc21.x86_64 Test [All images are qcow2

[libvirt-users] getting CPU usage of VMs through libvirt

2014-07-03 Thread Restituto Marcus Arevalo
Greetings everyone,        I just want to ask if it is possible to get the CPU usage of the VMs in KVM through libvirt? I mean, how does the virt-manager produce the graph it displays? Is there a way get this graph? But instead of the graph itself, I just need to get it in percentage(%) form.