vcpus: hotplug problem - you can't add more vcpus than maxcpus

saeedp

New Member
Aug 14, 2022
5
0
1
Hi
When I want to hotplug vCPU and increase it, I will get below error :
Code:
Parameter verification failed. (400)

vcpus: hotplug problem - you can't add more vcpus than maxcpus

while the "CPU limit" is unlimited .

I'm using proxmox VE 7.2

1660461825594.png
 
The message might indeed not be complete clear. You cannot add more VCPUs than the number of Total cores (Cores times Sockets). CPU Limit is something different. Increae the number of Cores (or Sockets) to increase the "maxcpus". The manual explains this in more detail.
 
Last edited:
as you see in the screenshot, the Cores field is 4 and the Socket field is 1. so I can have 4 vcpu. but when I hit OK I will get that error.
 
as you see in the screenshot, the Cores field is 4 and the Socket field is 1. so I can have 4 vcpu. but when I hit OK I will get that error.
I cannot explain that. Did you change the Cores or Sockets? You cannot select more VCPUs than the Total cores of the VM when it was started. Maybe shutdown and restart the VM first?
 
The goal is to achieve hotplug VCPU without the need to reboot the server. I want to have something like this example :
VM is started with 1 Socket 1 Core and 1VCPU
Apply this : 1 Socket, 4Core , 4vCPU
 
The goal is to achieve hotplug VCPU without the need to reboot the server. I want to have something like this example :
VM is started with 1 Socket 1 Core and 1VCPU
Apply this : 1 Socket, 4Core , 4vCPU
You need to stop the VM and configure it for 1 socket, 4 cores and 1 vcpu. This determines the maxcpus: 1 socket * 4 cores = 4. Then you can start the VM and use between 1 and 4 vcpus withour the need to reboot. You can change the vcpus without reboot but you cannot change the socket and cores without reboot
 
  • Like
Reactions: saeedp
The Cores only determine the maximum number of CPUs inside the VM. The VCPUs deterime the actual number of CPUs inside the VM. Why do you need to change them both without reboot? Why is it not good enough in your scenario to change the actual number of CPUs inside the VM without reboot?

If you want to start the VM with only 1 virtual CPU use Cores: 4 and VCPUs: 1. You'll see that inside the VM there is only 1 CPU.
You can later change VCPU to 2,3 or 4 without reboot and you'll see 2,3 or 4 CPUs inside the VM.
You can also reduce the VCPUs without reboot and you'll see less CPUs inside the VM.
But this only works when you setup the operating system inside the VM correctly according to the Hotplug Wiki page.
 
  • Like
Reactions: saeedp
Since I sell vCPU to my customers instead of Cores, I can't do that without changing all customers' VMS.
But I got what to do, Thank you for your help.
 

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!