VMware Cloud Community
Spanjokus
Enthusiast
Enthusiast

Question on DRS

Good afternoon, colleagues! Such a question I have a DRS cluster on ESXI 6.5, for some reason if I turn on the virtual machine, they start all the time on the same host, although it may be at that moment and do not have the maximum free amount of resources, I read , that it is possible with the help of DRS rules, how to limit the number of virtual machines on the server, but how can I set the new VM to start on the most free? It is very inconvenient and already stirs up.It seems to me that either I have some wrong mode selected, or some rule is missing in the advanced settings.

0 Kudos
7 Replies
berndweyand
Expert
Expert

the advanced option "limitvmsperesxhost" is replaced by "trybalancevmsperhost" : DRS Additional Option: CPU Over-Commitment | vSphere Resources and Availability | VMware vSphere Cen...

please keep in mind that drs is looking for consumed memory, not for configured memory.

0 Kudos
daphnissov
Immortal
Immortal

If you have DRS enabled and at an appropriate level, the host on which it chooses to start the VM should be as a result of DRS determining that the given host is the best candidate to run the VM. Your assumption that it shouldn't work this way is faulty. But unless you've disabled DRS for this specific VM, DRS should be working as designed.

0 Kudos
Spanjokus
Enthusiast
Enthusiast

Thanks for the answers, here are my current cluster level settings for DRS

https://ibb.co/YDvzdQ8

https://ibb.co/Yj7S71V

0 Kudos
IRIX201110141
Champion
Champion

You should set DRS to FullAutomatic.

Regards,
Joerg

0 Kudos
NathanosBlightc
Commander
Commander

Until it works on Partially Automated (like your cluster's state) just recently started virtual machines (VM Power-on) will automatically place on the ESXi hosts with more free resource slots! For other workloads, you receive only Migration recommendations in the vSphere DRS section on the Cluster's summary tab ...

So if you need to provide a well-done full balance cluster, you need to set to the automation level of the DRS on the "Fully Automated" mode.

Please mark my comment as the Correct Answer if this solution resolved your problem
0 Kudos
Spanjokus
Enthusiast
Enthusiast

Partially Automated – when a VM is powered on, DRS will place it on the best-suited host, without prompting the user. If the DRS cluster becomes unbalanced, DRS will display recommendations for VM migration.

Shouldn't he run on the freest host? Where can I see why he chose this particular host?

0 Kudos
daphnissov
Immortal
Immortal

Shouldn't he run on the freest host?

Not necessarily. DRS is about choosing a host with enough resources to satisfy the request. If resources are available, it doesn't matter from which host it pulls them.

0 Kudos