Adding cores, memory and RAM to KVM guest dynamically

aliefarlingga

New Member
Sep 8, 2014
2
0
1
Hello guys.
So I built many nodes on my Proxmox 3.x.
Last week I tried to add cores to one of my nodes from 4 to 8 then I reboot the node but it still said 4 cores in /proc/cpuinfo. But when I reboot the Proxmox Host the node changed.
My question : is it possible to add or reduce the number of cores/memory/RAM when the Proxmox host is still running just like dynamic scaling in cloudstack?
Do I have to reboot my Proxmox host to change the hardware configuration?

Thanks :)
~ Alief
 
Hi,

see
https://pve.proxmox.com/wiki/Hotplug_(qemu_disk,nic,cpu,memory)


Cpu hot-add is working
Cpu hot-del not yet implemeted in qemu (maybe qemu 2.2)
Memory hot implemented in qemu, but not yet in proxmox (I'm working on it currently)
Memory hot-del not yet implemented in qemu.(maybe qemu 2.2)

Thanks for the respond. So It's called hotplug.
So I just found the modules on internet.
The modules are acpiphp and cpu_hotplug.
For the acpihphp I found acpiphp.ko and acpiphp_ibm.ko, so which one do I have to use since my server is IBM?

Thanks
 
Last edited:
Thanks for the respond. So It's called hotplug.
I'm using Debian for my KVM guest. So where do I find these modules?
When I use lsmod I didn't find acpiphp and pci_hotplug.

Thanks

Hi,
lsmod show currently loaded modules.

so, try:

#modprobe acpiphp
#modprobe pci_hotplug

(you can add them in /etc/modules to get them loaded at startup).


Note that some distros now build their kernel with static build of theses modules, so no need to load them.
 
Hello guys.
So I built many nodes on my Proxmox 3.x.
Last week I tried to add cores to one of my nodes from 4 to 8 then I reboot the node but it still said 4 cores in /proc/cpuinfo. But when I reboot the Proxmox Host the node changed.
My question : is it possible to add or reduce the number of cores/memory/RAM when the Proxmox host is still running just like dynamic scaling in cloudstack?
Do I have to reboot my Proxmox host to change the hardware configuration?

Thanks :)
~ Alief

I've read replies here, but I'm still not sure: are you talking of cores in VM (like "dynamic scaling in cloudstack") or in the HW proxmox NODE (like "tried to add cores to one of my nodes")?

for VMs, you need "hotplug: 1" in your VMID.conf, atm put by hand, next pve versions will have gui option for that (and see link by spirit above)
otherwise you have to STOP and START, not "reboot".

if you're talking about HW proxmox HOST, have you cahnged the physical CPU and after boot proxmox wasn't aware..?

Marco