Hi All, I am new to libvirt. Please explain about the units (which is bytes or KB or MB) and uses of DomainJobInfo and DomainBlockInfo methods. Like getMemRemaining(), getDataRemaining() etc. Using libvirt version is libvirt-0.5.1. Thank you Regards, Rathidevi
On 12/23/2013 03:38 AM, Rathidevi wrote:> Hi All, > > I am new to libvirt. Please explain about the units (which is bytes or KB or MB) and uses of DomainJobInfo and DomainBlockInfo methods. Like getMemRemaining(), getDataRemaining() etc.virDomainBlockJobInfo intentionally does not document units - so the underlying hypervisor can use whatever units it wants (bytes, 512-byte blocks, 1k bytes, 4k pages, etc) - all that we guarantee is that the remaining value gradually increases until it reaches the end value at the end of the job. I'm not sure where you are referring to getMemRemaining() from - there is no C function by that name. Is this in the context of a different language binding? If so, it's probably an accessor function to the virDomainBlockJobInfo type of the C bindings: http://libvirt.org/html/libvirt-libvirt.html#virDomainBlockJobInfo> > Using libvirt version is libvirt-0.5.1.I hope you meant 1.0.5.1, as 0.5.1 is woefully out of date. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Hi All, Many Thanks for the information's. I am doing development work using libvirt API. Download the libvirt jar using this link ftp://libvirt.org/libvirt/java/ and using libvirt-0.5.1.jar. I referred the java documents from the above link to collect the domain, storage and all the information's. For this i have to use some of the methods available in all classes available in libvirt API. 1) virDomainGetMaxMemory gives the same value when i use the virDomainInfo.maxMem. Is this expected. 2) virDomainGetMaxVcpus gives the same value when i use the virDomainInfo.nrVirtCpu and VcpuInfo.cpu. Please explain the difference. 3) virDomainGetMaxVcpus gives the values as one(1) but when i use the VcpuInfo.number gives the value as zero(0). Please explain this. Because libvirt document says VcpuInfo.number = virtual CPU number virDomainGetMaxVcpus = maximum number of virtual CPUs supported for the guest VM Thanks once again. Ragards Rathidevi -----Original Message----- From: Eric Blake Sent: Tuesday, December 24, 2013 1:27 AM To: Rathidevi ; libvirt-users@redhat.com Subject: Re: [libvirt-users] Reg: Methods in DomainJobInfo
Hi All, Many Thanks for the information's. I am doing development work using libvirt API. Download the libvirt jar using this link ftp://libvirt.org/libvirt/java/ and using libvirt-0.5.1.jar. I referred the java documents from the above link to collect the domain, storage and all the information's. For this i have to use some of the methods available in all classes available in libvirt API. 1) virDomainGetMaxMemory gives the same value when i use the virDomainInfo.maxMem. Is this expected. 2) virDomainGetMaxVcpus gives the same value when i use the virDomainInfo.nrVirtCpu and VcpuInfo.cpu. Please explain the difference. 3) virDomainGetMaxVcpus gives the values as one(1) but when i use the VcpuInfo.number gives the value as zero(0). Please explain this. Because libvirt document says VcpuInfo.number = virtual CPU number virDomainGetMaxVcpus = maximum number of virtual CPUs supported for the guest VM Thanks once again. Regards Rathidevi -----Original Message----- From: Eric Blake Sent: Tuesday, December 24, 2013 1:27 AM To: Rathidevi ; libvirt-users@redhat.com Subject: Re: [libvirt-users] Reg: Methods in DomainJobInfo