usha basavaraju
2014-Jul-29 10:51 UTC
[libvirt-users] Running domain-update memory not working
>>> vm=co.lookupByName('test1') >>> vm.info()[1, 524288L, 524288L, 1, 20400000000L]>>> vm.setMemoryFlags(509952,1) # Live memory0>>> vm.info()[1, 524288L, 524288L, 1, 21430000000L]>>> vm.setMemoryFlags(509952,0) --- ## current memory0>>> 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
Eric Blake
2014-Jul-29 13:35 UTC
Re: [libvirt-users] Running domain-update memory not working
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 updatingTrying 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