Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 410
  • Last Modified:

Virtual machines not balanced between ESXi Servers

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
jskfan
Asked:
jskfan
  • 7
  • 3
  • 3
  • +1
6 Solutions
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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
 
jskfanAuthor Commented:
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
 
Paul SolovyovskyCommented:
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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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
 
jskfanAuthor Commented:
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
 
jskfanAuthor Commented:
I am bumping each host to 6GB of RAM and see
0
 
jskfanAuthor Commented:
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
 
Paul SolovyovskyCommented:
Migrate each VM to a different ESXi host and give it a try.
0
 
jskfanAuthor Commented:
I tried to manually migrate a VM  it opens up "Select Migration type" window, everything grayed out except for "Change Datastore"
0
 
Paul SolovyovskyCommented:
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
 
jskfanAuthor Commented:
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
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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
 
gheistCommented:
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
 
jskfanAuthor Commented:
Thank you Guys!
0
 
gheistCommented:
Cheapest option is to max out RAM (also by means of long-term electricity consumption)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 7
  • 3
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now