Ubuntu – safely increase the number of processors on a VM

centosUbuntuvirtualizationvmware-esxiwindows 7

I have several Windows 7, CentOS, and Ubuntu virtual machines running within a VMWare ESXi server. To get better performance while building on them via Jenkins, I would like to increase their number of processors from 1 to 2-4.

The VMWare UI warns me that "Changing the number of virtual CPUs after the guest OS might make your virtual machine unstable".

Is increasing the number of virtual CPUs on these OSes a safe option?

This is the opposite of question Can I safely reduce the number of processors on a VM?

To follow up with my results, I increased the number of processors to 4 on each VM and have seen no problems.

Best Answer

Increasing the number of CPU from 1 to anything more is safe on modern versions of the OSes/Distros you mentioned. Modern kernels dynamically adapt to the number of CPUs at startup and have no problems with you adding more. Old versions of Linux and Windows (Around 2000 and before) do not adapt well to change. The same is essentially true for reducing cores; though you also run the risk of bottlenecking the VM.