When you attempt to reconfigure the number of CPUs for a virtual machine, the task fails with the following error message in the vSphere Client.
A specified parameter was not correct: configSpec.numCoresPerSocket
VMware vSphere 8.0
This issue occurs because the specified total number of CPUs is not evenly divisible by the configured Cores per Socket value.
For virtual machines with hardware version 20 or later, you can configure the CPU topology. For the procedure to configure this setting, refer to Configure the CPU Topology of a Virtual Machine.
To resolve this issue and ensure the total CPU count is evenly divisible by the configured "Cores per Socket" value, perform one of the following actions.