ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

How-to setup number of cores per CPU in a virtual machine

By Vladan SEGET | Last Updated: October 19, 2010

Shares

Since vSphere 4.1 VMware supports Multicore Virtual CPU technology.

You may not only implement and assign how many vCPU per VM (up to 8 vCPU in entreprise plus, up to 4 vCPU for the others), but also you can define how many cores per vCPU that VM will have. This could be used to maximize the benefit of your VM running on 1 vCPU with for example 4 cores and still not paying more for an application which is licensed per socket (vCPU).

For example, If you did a P2V of a server which was originally running on a server with one processor socket, you now can assign to that VM more cores and still be fine with the licensing for your application. It means that you can for example have a VM which has One vCPU, so it uses One socket license with a configuration of 4 cores.

A CPUs (vCPU) in the VM appear to the operating system as single core CPUs. So for example if you if you create a virtual machine with 8 vCPUs (the maximum) the operating system sees 8 single core CPUs.

VMware multicore virtual CPU support lets you control the number of cores per virtual CPU in a virtual machine. This capability lets operating systems with socket restrictions use more of the host CPU's cores, which increases overall performance.

Some limitations: Only Hardware version 7 virtual machines support the multi-core vCPU feature.
Now to assign more cores to your VM folow those steps:

  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.

The value must be a power of 2 (like 2,4, or 8)…

How to define number of cores per vCPU in a VM

How to define the number of cores per vCPU

Source: VMware KB Article: 1010184

vSphere Virtual Machine Administration Guide.

Shares
Vote !

| Filed Under: Server Virtualization Tagged With: multiple cores per vCPU, multiple cores VMware, vcPU, vCPU configuration

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. HERNAN says

    October 19, 2010 at 11:45 am

    From a performance point of view, what’s best? two vcpu to a virtual machine or 1 vcpu with two cores? 

    I have a server with a lot of spare cpu and I want to ‘boost’ a particular virtual machine

    • Vladan SEGET says

      October 19, 2010 at 1:29 pm

      It depends. Is your vCPU struggles? 80-90% utilization?… If not, don’t change..

      • Alexandru says

        July 4, 2012 at 3:42 pm

        I have the same question. What’s the difference between 1 vCPU with 2 cores vs. 2 vCPU. Yes, I understand from the article, that if I have a vCPU, I can add couple vCores, but is there any difference in the performance of 1 vCPU w/ 2 vCores vs. 2 vCPU w/ 1 vCore each?
        Thanks.

        • Vladan SEGET says

          July 6, 2012 at 8:12 am

          Only assing 2 vCPU if the VM needs it, otherwise you’ll waste CPU cycles. Example: 5 VMs w/ 4vCPU and 10 VMs w/ 1 vCPU, you are giving the 5VMs w/ 4vCPUs the majority of CPU resources. So if you give your 1 vCPU VMs to wait longer for their computations (cpu cycle). It’s always a better to start with 1vCPU. For SQL and Exchange VMs too. If then, it shows 80-90% of the time 80-80% CPU utilization, then maybe change only… -:)

  2. Tom says

    October 19, 2010 at 1:35 pm

    Are you suggesting that if I have a 1-cpu VM and I increase it to 2 cores I can reduce cpu utilization?? I do have one VM struggling with 80-90% cpu utilization due to mediocre software installed upon it.

    I have no special resource allocations except this one VM which I set to High for its cpu, does increasing cpu cores affect cpu availability to other VMs in any way??

    Thank you, Tom

  3. Vladan SEGET says

    October 20, 2010 at 10:59 pm

    TOm: It depends, if the software you’re talking about can take advantage of hyperthreading.

    Hernan: I return to your first question. It’s always better start with one vCPU and then, if the VM suffers, to go and put another vCPU.

    If you have a VM with like 4 (or even 8 vCPU), then it’s like going to the restaurant with 7 of your friend and wanting to all of 8 of you sitting arount the same table…. It’s quite difficult to get place… so you’ll have to wait…….. And its the same for CPU cycles… Your VM will have to wait to get the CPU ressources…

    Cheers.
    Vladan

  4. Skumar AB says

    November 5, 2011 at 6:07 pm

    Hi, i have made the above changes as given above to one of VM running with  win 2003 STD 32bit, but the vcpu is not changing, is there any thing need to be checked.

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam confirming vSphere 9.0 and ESXi 9 upcoming support
  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in