[SOLVED] CPU Hot-Plug

aindjov

New Member
Jun 22, 2023
6
1
3
Hello,

CPU Hot-Plug still needs the VM to be stoped.
From Option, i already added CPU & Mem and also i added the file called /lib/udev/rules.d/80-hotplug-cpu-mem.rules and included this code but it still only accepts the Memory but not the CPU.

Code:
SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"
SUBSYSTEM=="memory", ACTION=="add", TEST=="state", ATTR{state}=="offline", ATTR{state}="online"

Kerner Version is : 6.1.0-25-amd64
PVE Version : 8.1.4
Any Suggestions on how to accept the CPU also?
 
Last edited:
Did you have installed on yours guests the guest agent ? This is a needed prerequisites for hotpluging.

I think you've saw this documentation Proxmox:
https://pve.proxmox.com/wiki/Hotplug_(qemu_disk,nic,cpu,memory)
But, you only have the manipulation for pve 4.5 and older. Check the real config for pve 5 and higher :)

Maybe your hardware need a customisation of the CPU line you've added.

Or, did you 've forgot to restart udev service ?
"systemctl restart udev"
 
  • Like
Reactions: aindjov
Did you have installed on yours guests the guest agent ? This is a needed prerequisites for hotpluging.

I think you've saw this documentation Proxmox:
https://pve.proxmox.com/wiki/Hotplug_(qemu_disk,nic,cpu,memory)
But, you only have the manipulation for pve 4.5 and older. Check the real config for pve 5 and higher :)

Maybe your hardware need a customisation of the CPU line you've added.

Or, did you 've forgot to restart udev service ?
"systemctl restart udev"
Thanks for your answer.

Yeah, i do that before posting here.
 
Did you have installed on yours guests the guest agent ? This is a needed prerequisites for hotpluging.
QEMU guest isn't needed at all for any type of hotplug. IIRC, on Windows you need to install the balloon driver for QEMU to be able to hot unplug memory effectively. That is installed with the same .exe file, so that might have confused you.

@aindjov How are you adding your hot plug CPU's? The right way to do it is to set the max CPU that VM may use as a combination of sockets/cores and then setting VCPU with a lower value. Once the VM is running, change VCPU as needed up or down.
 
  • Like
Reactions: aindjov

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!