User Tools

Site Tools


kvm:change_memory_of_a_guest

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
kvm:change_memory_of_a_guest [2020/08/19 11:21] 192.168.1.1kvm:change_memory_of_a_guest [2020/08/19 11:30] (current) 192.168.1.1
Line 1: Line 1:
 ====== KVM - Change Memory of a Guest ====== ====== KVM - Change Memory of a Guest ======
 +
 +<WRAP important>
 +**WARNING:**  Do not use **virsh memtune**.
 +
 +The optional memtune element provides details regarding the memory tunable parameters for the domain.  If this is omitted, it defaults to the OS provided defaults.  For QEMU/KVM, the parameters are applied to the QEMU process as a whole.  Thus, when counting them, one needs to add up guest RAM, guest video RAM, and some memory overhead of QEMU itself.  The last piece is hard to determine so one needs guess and try.  For each tunable, it is possible to designate which unit the number is in on input, using the same values as for **<memory>**.  For backwards compatibility, output is always in KiB. units since 0.9.11.  Possible values for all *_limit parameters are in range from 0 to VIR_DOMAIN_MEMORY_PARAM_UNLIMITED.
 +
 +See [[http://libvirt.org/formatdomain.html#elementsMemoryTuning|here]] for more details.
 +</WRAP>
 +
 +----
  
 Bring up the config for the guest: Bring up the config for the guest:
Line 23: Line 33:
 ---- ----
  
-===== Use a Script to Resizing Memory =====+===== Use a Script to Resize the Memory =====
  
 <code bash> <code bash>
Line 38: Line 48:
 </code> </code>
  
 +----
 +
 +===== References =====
  
 +https://libvirt.org/formatdomain.html#elementsMemoryTuning
kvm/change_memory_of_a_guest.1597836105.txt.gz · Last modified: 2020/08/19 11:21 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki