Can virtual processors be shared among several Hyper-V virtual machines?

IT Guy
IT Guy used Ask the Experts™
on
I have a Hyper-V base server that has a total of 24 processors.

Is it possible to assign more than 24 total virtual processors among the Hyper-V virtual machines?

In other words, can the virtual machines share virtual processors?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
Yes!

That’s how a hypervisor works.

Virtual machines workloads are scheduled across the cores in the host CPU

So you could have 30-40 VMs all using a single socket eg 1 vCPU
IT GuyNetwork Engineer

Author

Commented:
Is the same true with the latest versions of VMware?
Philip ElderTechnical Architect - HA/Compute/Storage
Commented:
I have two very thorough EE articles on all things Hyper-V:

Some Hyper-V Hardware and Software Best Practices
Practical Hyper-V Performance Expectations

The number of vCPUs a VM is eligible to have is based on the number of threads a physical set of CPUs can process. With Hyper-Threading the number is double the physical core count. My articles explain how the physical CPU pipeline works with vCPU threads with examples. Please check them out.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
Yes ALL Type 1 hypervisor operate the same including ESXi
Distinguished Expert 2018
Commented:
I thunk there is a terminologies issue here. A hyoervisor can slice up CPU cycles so there can be more vCPUs than there are physical CPUs.  So yes, VMs can share processors.

However, as worded, they are NOT sharing virtual processors. The VMs have virtual processors, and they are... By definition... Exclusive to that VM. The virtual processor is NOT being shared. But the virtual processor may be sharing a physical processor with other VMs. Virtual processors are not a 1:1 match to physical processors.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial