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?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.
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 rebootThe 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