Solved

Virtual machines not balanced between ESXi Servers

Posted on 2014-07-26
15
400 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
  • 7
  • 3
  • 3
  • +1
15 Comments
 
LVL 118

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) 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
 
LVL 118

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) 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 61

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 61

Expert Comment

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

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This is an issue that we can get adding / removing permissions in the vCSA 6.0. We can also have issues searching for users / groups in the AD (using your identify sources). This is how one of the ways to handle this issues and fix it.
When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…

911 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now