Ask: how does PVE hot add memory and CPU to virtual machines online?

zisain

Member
Aug 5, 2021
25
3
8
34
If it is KVM, the maximum memory is 8GB, and the default memory is 4GB, I can directly use the command:

virsh setmem test VM 5120m -- config -- live

Set the memory to 5GB
To increase memory heat

But I can't find this setting on PVE
 
There are two differnet things for memory increase/decrease:
  • (virtio-)ballooning - that's what you describe.
  • actual NUMA based memory hot plug/unplug, a more involved technique that can also do more
For the former you can edit the memory settings, tick on advanced mode, there you got the settings you describe, total is max and minimum is lower current, at least IIRC is just using the same mechanisms.
 
There are two differnet things for memory increase/decrease:
  • (virtio-)ballooning - that's what you describe.
  • actual NUMA based memory hot plug/unplug, a more involved technique that can also do more
For the former you can edit the memory settings, tick on advanced mode, there you got the settings you describe, total is max and minimum is lower current, at least IIRC is just using the same mechanisms.

Thank you very much. I have finished this, but the CPU hot plug cannot be realized, Follow the official manual.
1639033257552.png
1639033380008.png
1639033350244.png
 
You asked about memory adaptions not CPU hotplug, two different things...

What official manual do you mean?

Official help manual
1639034679491.png
My title is to ask two questions, but I mainly described that the first one that cannot be realized is memory, and you taught me how to realize online memory expansion, so I went on to ask CPU questions