ITDevLtd / MCVirt

MCVirt - Command line virtual machine management utility
http://mcvirt.itdev.co.uk
GNU General Public License v2.0
24 stars 7 forks source link

Support memory ballooning configuration #450

Closed MatthewJohn closed 4 years ago

MatthewJohn commented 5 years ago

By default, the VM is set to use memory ballooning. This should be optionally disabled and also optionally allow auto-deflation to be enabled.

MatthewJohn commented 5 years ago

Add

    <devices>
        <memballoon model='virtio'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
        </memballoon>
      </devices>

Optional to investigate:

          <stats period='10'/>
          <driver iommu='on' ats='on'/>

To add deflation:

    <memballoon model='virtio' autodeflate="on">