We help IT Professionals succeed at work.

How to find the CPU cores  in virtual server ?

381 Views
Last Modified: 2014-09-04
I have windows 2008r2 VM. How to find the CPU cores in VM ?

I  tried the command msinfo32. But it does not show the actual cores.
Comment
Watch Question

Commented:
Are you trying to see how many cores are allocated to a VM from within that VM?  This is the command that should work for you. Just run from the command line:

WMIC CPU Get DeviceID,NumberOfCores,NumberOfLogicalProcessors

If that's not what you're looking for, please clarify the question.

Cheers!
Brad GrouxSenior Manager (Wintel Engineering)

Commented:
Right-click the task bar and open Task Manager. Under the "Performance" tab you will see the CPU cores under "CPU history." Each CPU box is one CPU core.

Commented:
Running task manager will tell you how many virtual cores you have.  There will be a column for each core.
i486dx266Senior DevOps Consultant

Commented:
Hi,

You can use the following command on cmd or powershell:

 wmic cpu get NumberOfCores

Author

Commented:
nick2253,

I am using the VM and it has 1 core and 1 logical processor. But my friend is saying it has 1 CPU with  8 cores.
Brad GrouxSenior Manager (Wintel Engineering)

Commented:
If Task Manager or PowerShell is only showing 1 core - then Windows only sees 1 core and is only utilizing 1 core. Depending on how the Virtual Machine is configured on the host is how Windows is able to access to assigned cores.
Seth SimmonsLead Systems Administrator
CERTIFIED EXPERT

Commented:
I am using the VM and it has 1 core and 1 logical processor.

where are you seeing that?
if in task manager, make sure you are viewing one graph per cpu else the average of all the cores will appear in one graph

Commented:
I am using the VM and it has 1 core and 1 logical processor. But my friend is saying it has 1 CPU with  8 cores.
Then Windows only has access to one core.  Your friend is mistaken.

Perhaps, your friend is saying that your hypervisor has 8 cores, but for VM only has one.  Or, your friend may believe he has configured your VM to have 8 cores, but did so incorrectly (didn't commit his changes, for example).

Nevertheless, your 2008 server VM has one, and only one, core accessible to it.

Author

Commented:
Seth Simmons,

In Task manager  one graph per CPU was grayed out

Commented:
In Task manager  one graph per CPU was grayed out
This is going to require a screenshot, because I don't know that I've ever seen anything like this before.
Lee W, MVPTechnology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013

Commented:
The host server MAY have 1 cpu and 8 cores - but the Virtualization platform obscures that.  What virtualization platform are you using?  VMWare?  Hyper-V?  Xen?  Something else?  As far as I know, you CANNOT directly determine the number of cores from the VM under any platform.  You have to check on the host server.

Author

Commented:
Using VMWare
Lee W, MVPTechnology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013

Commented:
Workstation or ESXi?

You MAY be able to get it connecting with the vSphere client... otherwise, consult your system documentation (reciept/watch the boot and look up the CPU)/manufacturer.

Author

Commented:
ESXi
Lee W, MVPTechnology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013

Commented:
You won't likely be able to tell using the ESXi server itself and the guests won't have a clue either.  You'll have to reboot and get the CPU model, use third party boot disk to determine, check what the server was ordered with, or MAYBE the vSphere client will tell you if you look at the server information (I avoid VMWare).
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Lee W, MVPTechnology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013

Commented:
> What leads you to believe that you wouldn't?
The fact that I don't use VMWare regularly and the console is utter cr*p that won't let you do anything even via a command line.  Like I said, "I avoid VMWare" so MAYBE is the best I'm going to offer.  Glad you could clarify.
Lead Systems Administrator
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.