Feature pages are design documents that developers have created while collaborating on oVirt.

Most of them are outdated, but provide historical design context.

They are not user documentation and should not be treated as such.

Documentation is available here.

Memory Hotplug


This feature will add the possibility of hot plugging virtual memory modules into a running VM from the GWT frontend and the REST API.


  • Name: Vitor de Lima (Vitordelima)

Current status


Detailed Description

Dynamically resizing the amount of memory dedicated to a guest is an important feature, it allows server upgrades without restarting the VM.

Benefit to oVirt

Allows the admin of an oVirt based datacenter to dynamically resize the amount of RAM of each guest.

Detailed Design

The amount of memory destined to a VM will be available as an editable field in the “Edit VM” dialog while the VM is running, clicking OK will trigger a “Hot Set” action in the backend to adjust the VM memory without the need to tell from which physical NUMA cell it comes from or to which cell it goes.

The memory increase must be implemented as a memory module device to be hot plugged into the VM, the XML definition of such device is:

    <memory model='acpi-dimm'>
            <node>0</node> <-- source memory slot, if not provided, sane default  shall be used
            <pagesize unit='KiB'>4096</pagesize> <--- size of the memory page to be used as source (to be able to specify hugepages), sane default shall be used if ommitted
          </source> <- both source node and pagesize are optional, <source> can be ommited, defaults from the domain config will be used
            <node>0</node> <--- guest memory node (mandatory)
            <size unit='KiB'>12345</size> <- new module size (mandatory)

Hot unplugging memory will be implemented by forcing the user to reduce the size of the memory in amounts that can be represented by a sum of previously hotplugged virtual memory modules. The engine will solve the subset sum problem to find which virtual memory modules must be unplugged and call VDSM to unplug them.


Discussion about the libvirt API for memory hotplug: