Solved

VMWare, 2 VM's and a hypervisor

Posted on 2013-05-17
4
555 Views
Last Modified: 2013-05-17
I have a 16 core machine

I have 2 VM's, with each core assigned eight cores.  So no cores are available for a hypervisor

So which does the hypervisor reside since it does not have any cores assigned to it

... or more specifically, which of the 2 VM's will the hypervisor drain resources from, and how can I tell which VM it is currently draining resources from

Thanks
0
Comment
Question by:Los Angeles1
  • 2
4 Comments
 
LVL 40

Expert Comment

by:coolsport00
ID: 39174531
First of all, depending on the VM & that app that is running inside of it, you shouldn't allocate more than 1 or typically at most TWO vCPUs to a VM. A VM utilizes resources of the Host it resides on. There really isn't a way to tell what specific Host CPU and/or Core the VM utilizes as that is controlled by the VKernel CPU Scheduler.

Regards,
~coolsport00
0
 
LVL 4

Expert Comment

by:Rsilva98
ID: 39174569
Hi,

First you need to monitor your environment to check who consumes what (cpu, memory etc)

You can use a free tool to gather that data, In my case i use Veeam One Free edition (you can get it here to collect and troubleshoot my environment. Maybe you can remove some cores from the VMs to your hypervisor since is to much for a VM also not the best practices to go for.

Also you can check the users articles like the one hanccocka wrote  HOW TO:  Performance Monitor vSphere 4.x or 5.0.
0
 
LVL 40

Accepted Solution

by:
coolsport00 earned 500 total points
ID: 39174706
Ok...I turned your question around a little bit, but most of my last comment is accurate. You are wanting to know how an ESXi Host can get CPU resources when you've allocated all cores to all VMs on the Host? Well, that is the beauty of virtualization - OVERCOMMITMENT! :) So, to start off, chances are pretty good that those 2 VMs are NOT going to be utilizing 8 Cores continuously, if at all even 1 core. When a VM is NOT using resources it is assigned, other objects can use those idle resources, up until when the VM that is allocated those resources needs them. And that is the job of the VMkernel CPU Scheduler...to distribute CPU resources where they are needed.

~coolsport00
0
 
LVL 28

Expert Comment

by:asavener
ID: 39174802
I have 2 VM's, with each core assigned eight cores.  So no cores are available for a hypervisor
This statement is incorrect.

The hypervisor schedules time on the CPUs, and it will always schedule time for itself.

Since all vCPUs have to be scheduled at the same time, you are likely running into a scheduling bottleneck.  When the hypervisor is using CPU, only one of your VMs can be scheduled for CPU as well.  Bascially, you will always have seven idle cores.

Reduce the number of vCPUs on your VMs.  Unless you're in a lab setting where you're testing high performance computing, it's unlikely that you really need eight vCPUs.  If you do need eight vCPUs, then you need at least two hosts.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Teach the user how to install vSphere Update Manager  Console to Windows system:  Install vSphere Update Manager: Configure vSphere Update Manager plug-in in vSphere Client: Verify vSphere Update Manager settings in vSphere Client:
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question