[pve-devel] qemu-server : memory hotplug patch v4

Alexandre Derumier aderumier at odiso.com
Wed Aug 27 06:13:45 CEST 2014


I have reworked the the memory hotplug patch,
with some big change.

Now, we add|remove pc-dimm devices with 

qm set <vmid> -dimmX <size>
qm set <vmid> -delete dimmX

and we don't remove dimmX from config at vm start.

Like this, we can define a vm, with prepopulated un-pluggable dimm.

Total guest memory is : "memory:" + "dimmx:"

For example
I have some customers who's have a 16G at start, but want to add|remove memory after the start.
I simply created a vm with memory:1G + 15 x dimm of 1G, then it will be possible to remove them.

Note that you need to always defined the "memory:" param, which is the non-unpluglable memory.
dimm devices are not see at boot, so "memory:" need to be big enough to load the bootloader,kernel,..

Note that memory unplug should be available soon:

More information about the pve-devel mailing list