Skip to content

Commit

Permalink
guest template: add memory ballooning
Browse files Browse the repository at this point in the history
This helps optimize the host memory utilization

Signed-off-by: Florent Carli <[email protected]>
  • Loading branch information
insatomcat committed Feb 27, 2025
1 parent 793111b commit 961a3e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/vm/guest.xml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,13 @@
<console type="pty">
<target type="serial" port="0" />
</console>
{% if "memballoon" in vm.vm_features %}
<memballoon model="virtio">
<stats period="5" />
</memballoon>
{% else %}
<memballoon model="none" />
{% endif %}
<watchdog model="i6300esb" action="poweroff" />
</devices>
</domain>

0 comments on commit 961a3e3

Please sign in to comment.