VMware vSphere

 View Only
Expand all | Collapse all

Separate virtual machines DRS rule.

  • 1.  Separate virtual machines DRS rule.

    Posted Dec 08, 2014 11:14 AM

    Guys,

    I have 2 VMs (Domain controllers) and I would like to separate these VMs between hosts in a cluster. I have created DRS rule with a "Separate Virtual Machines" policy. But I can migrate these VMs to the single host using vMotion.

    How to protect VMs against migration to a single host? I would like that DRS still working for these VMs.



  • 2.  RE: Separate virtual machines DRS rule.

    Posted Dec 08, 2014 02:47 PM

    I have a stupid question, but is the check mark checked next to the DRS rule to activate it? 



  • 3.  RE: Separate virtual machines DRS rule.

    Posted Dec 09, 2014 03:30 PM

    Guys, thank you for your answers.

    So...

    Yes, this rule is enabled.

    Screenshot was attached.



  • 4.  RE: Separate virtual machines DRS rule.

    Posted Dec 09, 2014 03:41 PM

    Is DRS set to fully automated?  Is Admission Control Enabled? 



  • 5.  RE: Separate virtual machines DRS rule.

    Posted Dec 09, 2014 04:30 PM

    Admission Control is enabled.

    DRS is set to manual.

    I can set to fully automated policy, and DRS will migrate domain controller to another host (In case if two VMs are placed on a single host).

    But if I use vMotion I don't get any notification about "separate VM" policy, and I can place two VMs on a single host.



  • 6.  RE: Separate virtual machines DRS rule.

    Posted Dec 08, 2014 04:45 PM

    Can you share the screenshot of current DRS rule config?



  • 7.  RE: Separate virtual machines DRS rule.

    Posted Dec 08, 2014 06:22 PM

    Which vCenter version do you use? Please take a look at vSphere 5.5 nuggets: High Availability Enhancement to see whether this helps.

    André



  • 8.  RE: Separate virtual machines DRS rule.

    Posted Dec 09, 2014 03:39 PM

    Andre, I use 5.5 version.

    Duncan's post says that we should to enable this feature for HA (and yes, this feature is enabled in the infrastructure), but it is not affected DRS rules or vMotion.



  • 9.  RE: Separate virtual machines DRS rule.

    Broadcom Employee
    Posted Dec 09, 2014 04:35 PM

    VM VM anti affinity rule is soft rule. User initiated operation can violate this rule. Also if it is absolutely required, DRS also may violate this rule for balancing the cluster. However, in both cases, DRS will make best efforts to correct the violation in the next DRS invocation. Vm-Host hard rules are mandatory, mandatory rules even does not allow manual vMotion which violates the rule. HA also will honor the rule.

    VM VM anti affinity rule can be made HA aware by using advanced option (Duncan's blog talk about that)



  • 10.  RE: Separate virtual machines DRS rule.

    Posted Dec 09, 2014 06:12 PM

    You won't get a warning about the Anti-Affinity rule.  If you vMotion one of the VMs to that host, DRS will vMotion the other one off.  If DRS is set to manual, It will allow both to live together. 

    You need to have DRS set to Automated for it to do what you want. 



  • 11.  RE: Separate virtual machines DRS rule.

    Posted Dec 10, 2014 09:20 AM

    Thank you, Guys. I get it.

    I will think how to change my DRS policies.



  • 12.  RE: Separate virtual machines DRS rule.

    Posted Mar 31, 2024 07:52 PM

    Go to cluster configuration tab VM/Host Rules  and set new rule for separate or together machines.