Multiple Cores for VMs

Posted by : on

Category : esx   vmware-kb


Is it possible? To have multiple cores per CPU on a VM?

I recently stumbled upon a VMware KB #1010184 that says it is. Holy cow!

Here’s the kicker. For this to work, to have to meet the following requirements:

  • Running ESX 4.1 or ESXi 4.1
  • Virtual Machines on Hardware Version 7 ONLY
  • Virtual Machine Operating Systems that support the multi-core vCPU feature Most newer OSes support this feature (ie. XP and above, RHEL 5+)

In the past, a vCPU assigned to a VM appeared to the OS as a single core CPU. You could add more vCPUs to a VM, but they would show as additional single core CPUs.

ESX 4.1 now has a feature that will allow you to set the number of cores per virtual socket within the VM.

For example:

Create an 8 vCPU virtual machine and set cpuid.coresPerSocket = 2. Window Server 2003 SE running in this virtual machine now uses all 8 vCPUs. Under the covers, Windows sees 4 dual-core CPUs. The virtual machine is actually running on 8 physical cores.

To implement this feature: 1) Power off the virtual machine. 2) Right-click on the virtual machine and click Edit Settings. 3) Click Hardware and select CPUs. 4) Choose the number of virtual processors. 5) Click the Options tab. 6) Click General, in the Advanced options section. 7) Click Configuration Parameters. 8) Include cpuid.coresPerSocket in the Name column. 9) Enter a value (try 2, 4, or 8) in the Value column.

Note: Ensure that cpuid.coresPerSocket is divisible by the number of vCPUs in the virtual machine. That is, when you divide cpuid.coresPerSocket by the number of vCPUs in the virtual machine, it must return an integer value. For example, if your virtual machine is created with 8 vCPUs, coresPerSocket can only be 1, 2, 4, or 8.

The virtual machine now appears to the operating system as having multi-core CPUs with the number of cores per CPU given by the value that you provided in step 9.

10) Click OK. 11) Power on the virtual machine

Read that VMware KB #1010184 here:


About Sam Aaron
Sam Aaron

Father, Husband, Geek. Workaholic.

Email : mail@micronauts.us

Website : http://micronauts.us

About Sam Aaron

Father. Husband. Geek. Workaholic. US Marine Corps Veteran.

Sam Aaron is a Senior Consultant in the Professional Services Organization for Entelligence, bringing over a decade of expertise in enterprise cloud automation and infrastructure. Sam has spent almost eleven years at VMware leading cloud automation initiatives using VCF Automation (formerly Aria Automation & vRA) and designing scalable, multi-tenant environments with VMware Cloud Director (vCD).

Sam holds multiple certifications including VCF-Architect 2024, VCIX-CMA, and dual VCPs (DCV & CMA), and is a recognized contributor to VMware’s certification exams. As a VMware Hands-On Lab (HOL) Captain and content author from 2015-2025, Sam played a key role in educating and mentoring the global VMware community. He helped to create and develop the automation challenge and troubleshooting labs for VMworld and global virtual forums.

When Sam is not working, he has several hobbies, among these are 3D printing Star Wars robots and turning them into animatronics.

Launched in April 2010, micronauts is Sam's online presence. Here, he has been blogging and sharing knowledge with the virtualization community. This blog acts as a central repository to retain the resolutions and other trivial knowledge that Sam has discovered.

** No information provided here was reviewed or endorsed by VMware by Broadcom, Microsoft, or anyone else for that matter. All information here are opinions based on Sam's personal experience. Use this knowledge at your own risk. **

Star
Useful Links