Aren't these rules created automatically when installing qemu-guest-agent?The number of VCPUs can be changed at runtime, but did you setup hot-plug inside the VM and enable hot-plug for CPU in VM, Options, Hotplug? See https://pve.proxmox.com/wiki/Hotplug_(qemu_disk,nic,cpu,memory). And does the operating system inside the VM support CPU hot-plug?

I have not experienced that and I don't know why you would expect that from the Wiki page.Aren't these rules created automatically when installing qemu-guest-agent?
I needed to add it myself for Ubuntu with qemu-guest-agents installed and active. Which kernel modules and parameters and/or udev rules are necessary (inside the VM) depend on the exact kernel version inside your Ubuntu VM.OS Ubuntu 20.04
Maybe sure to enable everything necessary inside the VM for automatic memory hotplug, otherwise the VM sees only 1GB of memory (or less)!VM options are configured for hotplug.
View attachment 57521
Thank you for your advice.I have not experienced that and I don't know why you would expect that from the Wiki page.
I needed to add it myself for Ubuntu with qemu-guest-agents installed and active. Which kernel modules and parameters and/or udev rules are necessary (inside the VM) depend on the exact kernel version inside your Ubuntu VM.
Maybe sure to enable everything necessary inside the VM for automatic memory hotplug, otherwise the VM sees only 1GB of memory (or less)!
We use essential cookies to make this site work, and optional cookies to enhance your experience.