search for: setmem

Displaying 20 results from an estimated 22 matches for "setmem".

2020 Mar 06
0
changing memory size with virsh setmem - results only visible in domain, not on host
Hi, i have a Linux domain (Ubuntu 14.04) where we like to be able to change the amount of usable memory. We have a balloon device and statistics are switched in 5 sec. rhythm. The domain shows very quickly changes (following top) when we change the memory size with setmem, but the host does not show changes in the use of memory for the respective domain. Is that expected behavior ? Host is SLES 12 SP4, libvirt is 4.0.0-8.15.2 Bernd -- Bernd Lentes Systemadministration Institute for Metabolism and Cell Death (MCD) Building 35.34 - Raum 208 HelmholtzZentrum m...
2012 Oct 03
1
no callback on VIR_DOMAIN_EVENT_ID_BALLOON_CHANGE in 0.10.2
I'm trying to track balloon growth after issuing a setmem command to a KVM guest with libvirt 0.10.2 and qemu-kvm 0.12.1.2 on CentOS 6.3. libvirt 0.10.2 was built from tar today and appears to be working fine. The guest is running CentOS 6.3 as well. Using the provided test programs under examples/domain-events/ in C and Python, I'm not seeing V...
2012 Aug 28
1
Why a max mem setting?
Hi I have just started to investigate the possibilities of resizing memory for my kvm virtual machines on the fly. It works just fine with virsh setmem and that's great. Now, what I'm wondering about is the <memory> directive in the xml domain definition. Why would I not just set that to the size of available RAM in the host machine? Am I missing some nuance or finesse to the handling of memory? What would happen if I had three virtu...
2014 Jan 30
2
Re: Dynamically setting permanent memory libvirt-lxc
Eric, thank you for your response. Virsh memtune, setmaxmem and setmem won't survive a reboot. I'm hoping to find  a solution that can survive reboot.   On Thursday, January 30, 2014 11:36 AM, Eric Blake <eblake@redhat.com> wrote: On 01/30/2014 10:11 AM, mallu mallu wrote: > I'm trying to permanently change memory allocation for a libvirt...
2014 Jan 30
2
Dynamically setting permanent memory libvirt-lxc
I'm trying to permanently change memory allocation for a libvirt-lxc domain. So far I tried changing memory in memory.limit_in_bytes under /cgroup/memory/libvirt/lxc/<container>/.  This didn't help. It appears that libvirt is not reading changes in cgroup. My requirements are 1) Be able to dynamically change memory of a LXC domain without reboot 2) The memory change must survive
2013 Mar 25
0
Bug in DOMINFO command when balloon driver is used on a vm with more then 8 GB of MaxMemory ?
...ogize for double posting. I also created a ticket on bugzilla.redhat.com for this https://bugzilla.redhat.com/show_bug.cgi?id=927336 still i am posting it here because is absolutely possible i am doing something wrong and someone here will see it . Description of the problem: When the virsh setmem command is used to inflate (or deflate) the balloon on a VM to which 8GB of MaxMemory or more are allocated then the information reported with virsh dominfo , virsh dumpxml after the balloon change has been performed are wrong. The actual balloon is inflated correctly though and that is verifiable...
2011 May 05
0
Release of libvirt-0.9.1
...ias Bolte) - setmaxmem: add the new options to "virsh setmaxmem" command (Taku Izumi) - maxmem: implement virDomainSetMaxMemory API of the qemu driver (Taku Izumi) - maxmem: introduces VIR_DOMAIN_MEM_MAXIMUM flag (Taku Izumi) - nwfilters: support for TCP flags evaluation (Stefan Berger) - setmem: add --current option to virsh setmem command (Taku Izumi) - setmem: add VIR_DOMAIN_MEM_CURRENT support to qemu (Taku Izumi) - setmem: introduce VIR_DOMAIN_MEM_CURRENT flag (Taku Izumi) - build: Install libxenlight log dir (Jim Fehlig) - Add domainSet/GetSchedulerParameters to libxl driver (Markus...
2011 Apr 04
0
Release of libvirt-0.9.0
...s for storage volume upload/download (Daniel P. Berrange) - Add public API for setting migration speed on the fly (Daniel P. Berrange) - Add libxenlight driver (Jim Fehlig and Markus Gro?) - qemu: support migration to fd (Eric Blake) - libvirt: add virDomain{Get,Set}BlkioParameters (Gui Jianfeng) - setmem: introduce a new libvirt API (virDomainSetMemoryFlags) (Taku Izumi) - Expose event loop implementation as a public API (Daniel P. Berrange) - Dump the debug buffer to libvirtd.log on fatal signal (Daniel Veillard) - Audit support (Eric Blake) Documentation: - fix typo (Eric Blake) - correct invali...
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
....c @@ -1339,6 +1339,8 @@ static term_cmd_t term_cmds[] = { "", "cancel the current VM migration" }, { "migrate_set_speed", "s", do_migrate_set_speed, "value", "set maximum speed (in bytes) for migrations" }, + { "setmem", "s", do_setmemory, "value", + "set memory for the guest (in bytes)" }, { NULL, NULL, }, }; Index: kvm-userspace/qemu/qemu-kvm.c =================================================================== --- kvm-userspace.orig/qemu/qemu-kvm.c +++ kvm-users...
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
....c @@ -1339,6 +1339,8 @@ static term_cmd_t term_cmds[] = { "", "cancel the current VM migration" }, { "migrate_set_speed", "s", do_migrate_set_speed, "value", "set maximum speed (in bytes) for migrations" }, + { "setmem", "s", do_setmemory, "value", + "set memory for the guest (in bytes)" }, { NULL, NULL, }, }; Index: kvm-userspace/qemu/qemu-kvm.c =================================================================== --- kvm-userspace.orig/qemu/qemu-kvm.c +++ kvm-users...
2020 May 19
0
About Libvirt Setmem&dommemstat Function
I am using 'virsh setmem' to adjust the vm memory. But I don't know what is the lowerlimit memory that can be adjusted to, so I try to update the version of libvirt&amp;qemu to get caches of the vm memory so that I can calculate the lowerlimit. And when I upgrade libvirt to 4.10.0, qemu upgrade to 4.1.0, still,...
2020 May 20
0
About Libvirt Setmem&dommemstat Function
I have sent a similar email about this problem. But I did not describe carefully, so I would like to explain it in more details. I am using 'virsh setmem' to ajust vm memory online. However, I don't know what is the lowerlimit that can be set to. And I try to use 'virsh dommemstat' to get 'unused' memory so that I can calculate the lowerlimit memory with this value, but it doesn't work when it comes to windows systems as...
2011 Oct 21
1
virsh modified option... alternative..
Hi All, I am new to libvirt, i wander how we can achieve below objective, i read through a lot from libvirt.org but couldn't found any thing solid something equivalent to this:- virsh dumpxml dom > /tmp/dom.xml $EDITOR /tmp/dom.xml && virsh define /tmp/dom.xml What i try to achieve is to have one management server that install with libvirt in place then we can use libvirt
2011 Nov 23
1
Difference between "Max Memory" and "Used Memory"
Hello, I am new on this mailing list, so If I do something wrong, don't hesitate to tell me :-) I am using the following version of libvirt : Compiled against library: libvir 0.8.8 Using library: libvir 0.8.8 Using API: QEMU 0.8.8 Running hypervisor: QEMU 0.14.0 I would like to understand the difference between "Max Memory" and "Used Memory" returned by a "virsh
2014 Jan 30
0
Re: Dynamically setting permanent memory libvirt-lxc
...;/. This didn't help. It appears that libvirt is not reading changes in cgroup. > > My requirements are > > 1) Be able to dynamically change memory of a LXC domain without reboot > 2) The memory change must survive LXC domain reboot. virsh memtune, virsh setmaxmem, and virsh setmem are the appropriate tools to use. Changing things directly in cgroups goes behind libvirt's back, while changing it through the libvirt API allows you to hot-plug the changes as well as control whether the next boot will have the same new limits. -- Eric Blake eblake redhat com +1-919-3...
2014 Jan 30
0
Re: Dynamically setting permanent memory libvirt-lxc
On 01/30/2014 01:26 PM, mallu mallu wrote: [please don't top-post on technical lists; also, it would be nice if you could convince your mailer to wrap long lines) > Eric, thank you for your response. Virsh memtune, setmaxmem and setmem won't survive a reboot. Ah, but they DO survive reboots, if you use the right options. 'virsh memtune --live --config' affects both the running guest and the next boot. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
2014 Jan 31
1
Re: Dynamically setting permanent memory libvirt-lxc
[please don't top-post on technical lists; also, it would be nice if you could convince your mailer to wrap long lines) > Eric, thank you for your response. Virsh memtune, setmaxmem and setmem won't survive a reboot. Ah, but they DO survive reboots, if you use the right options.  'virsh memtune --live --config' affects both the running guest and the next boot. ------- Appologize for top-posting. I'm getting error when specifying --live or --config. Am I doing something...
2020 Sep 17
0
Re: KVM/QEMU Memory Ballooning
...GB set as maxmemory and currentmemory. So initially the guest will have its full 32GB available and no balloon driver activity will take place. The balloon driver will only do something when the host administrator *explicitly* sets a balloon target in QEMU. This is doable via the libvirt virDomainSetMemory API / virsh setmem command. There is *nothing* in either libvirt or QEMU that monitors host memory pressure, nor anything that automatically sets balloon driver targets. It is possible to create an application that monitors host memory and uses the libvirt APIs to set the ballon driver. That...
2012 Jan 24
2
how to change existing domain xml?
Hi. I'm trying to change network settings for a domain via libvirt (the driver is xenapi) with no success. According to its sources, 'virsh edit' uses virDomainGetXMLDesc(), allows to edit the received xml and then use virDomainDefineXML(). In case of xenapi driver it leads to a new vm creation (with the same name and edited settings). Looking through the list of API functions I
2020 Sep 17
0
RE: EXT: Re: KVM/QEMU Memory Ballooning
...set as maxmemory and currentmemory. So initially the guest will have its full 32GB available and no balloon driver activity will take place. The balloon driver will only do something when the host administrator *explicitly* sets a balloon target in QEMU. This is doable via the libvirt virDomainSetMemory API / virsh setmem command. There is *nothing* in either libvirt or QEMU that monitors host memory pressure, nor anything that automatically sets balloon driver targets. It is possible to create an application that monitors host memory and uses the libvirt APIs to set the ballon driver. Tha...