Online resize memory for VM
|Category:||Core & System|
QEMU/KVM/LIBVIRT offer the possibility to resize the amount of memory when in the libvirt XML specification the <currentMemory unit='KiB'></currentMemory> is specified besides the "<memory unit='KiB'></memory>" for a running VM. For example:
This Would set the amount of available memory for a VM to 1 GB, with a max of 4GB. If OpenNebula would generate deployment files with both memory specifications VM's can be resized online (without) downtime as far as memory is concerned.
#5 Updated by Roy Keene about 1 year ago
Perhaps a better approach: https://medium.com/@juergen_thomann/memory-hotplug-with-qemu-kvm-and-libvirt-558f1c635972
This is similar to what VMware does with ESXi, though libvirt makes you do more work to figure out how to manage your DIMMs.