Re: Running domain-update memory not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux