[libvirt-users] Running domain-update memory not working

Eric Blake eblake at redhat.com
Tue Jul 29 13:35:08 UTC 2014


On 07/29/2014 04:51 AM, usha basavaraju wrote:
>>>> vm=co.lookupByName('test1')
>>>> vm.info()
> [1, 524288L, 524288L, 1, 20400000000L]
>>>> vm.setMemoryFlags(509952,1)  # Live memory
> 0
>>>> vm.info()
> [1, 524288L, 524288L, 1, 21430000000L]
> 
>>>> vm.setMemoryFlags(509952,0) --- ## current memory
> 0
>>>> vm.info()
> [1, 524288L, 524288L, 1, 21430000000L]
>>>> vm.XMLDesc()
> 
> Not updating .. but api call not throwing any error..
> What is the correct procedure for updating

Trying to update memory usage requires guest cooperation via the memory
balloon device.  If your guest does not have a working memory balloon
device handler, then it doesn't matter what qemu requests, because the
request is ignored in the guest.  The API will succeed (the request was
sent) whether or not the request is honored, because we can't let
libvirt hang waiting for a guest that may be uncooperative.  But if you
have a cooperative guest, then it looks like you are using the right
python wrappers to request a memory balloon change.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20140729/ef2fde0d/attachment.sig>


More information about the libvirt-users mailing list