Solved

Virtual machines not balanced between ESXi Servers

Posted on 2014-07-26
15
405 Views
Last Modified: 2014-07-28
I have 2 ESXi servers , I have created a shared storage, then 2 Windows 7 machines.
For some reason in Vsphere Client under the Summary tab of each Windows 7 VM, I see the Host is the same.
Now I can power On only one Windows 7. If I try to power them both, I get insufficient memory on the Host.

Though both ESXi servers are under the cluster, and I enable VMHA and DRS

Any help will be very much appreciated

Thanks
0
Comment
Question by:jskfan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 3
  • 3
  • +1
15 Comments
 
LVL 120

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 251 total points
ID: 40221944
How much memory is in the Host ?

and how much memory is assigned to the VMs ?

Is the total memory assigned to each VM, exceed the memory in the host ?

Do you have VMware HA enabled, and VMware DRS set to FULLY Automatic.

So when you power-on the VMs, it allocates the VM to a host automatically with enough resources.

However, with only two hosts, and VMware HA, an Admission Rule, may state you do not have enough resources, because if a HOST failed, you may not have enough resources to start ALL VMs on the remaining host.

You can disable this admission rule in VMware HA, BUT remember if you do this, and try to start two VMs with 16GB (32GB) total, on a host with 16GB, you will over subscribe the host, and it will run very slowly, as it starts to swap 16GB to disk!
0
 

Author Comment

by:jskfan
ID: 40221969
Each ESXi server has 4096 MB (4GB) of RAM
Each windows 7 just 1 GB of RAM

VMHA and DRS are enabled set to Fully automated (it was by default)
0
 
LVL 42

Assisted Solution

by:paulsolov
paulsolov earned 166 total points
ID: 40222017
Keep in mind that each ESXi hosts needs to have at least 2GB RAM to run.  After the ESXi hosts powers on you may not have enough memory to run two 1GB nodes, it's 1GB RAM on each VM but there's also overhead.  I would at least double the memory to 8GB RAM if you want to do this

      
from vmware documentation:

ESXi requires a minimum of 2GB of physical RAM. VMware recommends 8GB of RAM to take full advantage of ESXi features and run virtual machines in typical production environments.
0
Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
LVL 120

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 251 total points
ID: 40222029
It's very close, 2 x 1GB for VMs, and 2GB for Hypervisor, and only 4GB in Hosts!

Is this a virtual lab, increase the RAM in the hosts!

Most Labs have a minimum of 8GB and most have 16GB or 32GB.
0
 

Author Comment

by:jskfan
ID: 40222043
4GB RAM on each host, I have 2 hosts which means 8GB
I have 2 windows VMs each with 1GB, so total 2GB

I do not see the reason why 2 VMs cannot run separately in 2 ESXi servers

You would think they both can run even  in a sing ESX host since it has 4GB...

I do not know how to configure each VM to run in separate ESX host
0
 

Author Comment

by:jskfan
ID: 40222044
I am bumping each host to 6GB of RAM and see
0
 

Author Comment

by:jskfan
ID: 40222048
Well, after I bumped each Host to 6GB of RAM, I managed to power both Windows 7 VM, however they both run one ESXi host.
Though both VMs are installed on a shared storage
0
 
LVL 42

Expert Comment

by:paulsolov
ID: 40222054
Migrate each VM to a different ESXi host and give it a try.
0
 

Author Comment

by:jskfan
ID: 40222056
I tried to manually migrate a VM  it opens up "Select Migration type" window, everything grayed out except for "Change Datastore"
0
 
LVL 42

Assisted Solution

by:paulsolov
paulsolov earned 166 total points
ID: 40222077
To have the capability to perform vmotion between hosts you need to have a vmotion vmkernel port defined.  If you're seeing only change datastore option you have not configured any vmkernel ports for vmotion.
0
 

Author Comment

by:jskfan
ID: 40222082
I managed to enable Vmotion on both Hosts now...
Though before I enabled Vmotion, I restarted the Management agents on both ESXi hosts, I guess that made each Windows 7 VM to run on separate ESXi host..
0
 
LVL 120

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 251 total points
ID: 40222661
without vMotion working and being enabled, it cannot transfer a Live Machine via vMotion - that functionality would have been broken!

VMware HA does not rely on vMotion.

It restarts VMs on other available hosts.
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 83 total points
ID: 40223208
And given limitations outlined above actually you have <2GB space on each ESXi, so you cannot have HA availability control or even any successful HA recovery in your cluster.
0
 

Author Closing Comment

by:jskfan
ID: 40224666
Thank you Guys!
0
 
LVL 62

Expert Comment

by:gheist
ID: 40224916
Cheapest option is to max out RAM (also by means of long-term electricity consumption)
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …

751 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