Automation

 View Only
  • 1.  DRS Rules for Windows OS

    Posted Jan 24, 2022 07:58 PM

     

    Is there a way to schedule DRS to monitor say hourly via script and manage DRS rules to keep machines with Windows OS on particular hosts? We don't want to babysit this list as new VM's are built.  VCenter 7.x, ESXi 7.x

     

    Thanks,

     

    Greg



  • 2.  RE: DRS Rules for Windows OS

    Posted Jan 24, 2022 08:06 PM

    What kind of DRS rules are you talking about?
    Affinity, anti-affinity, VM-Host?
    And are you only talking about DRS or also SDRS?

    When you add a rule after a VM is created, DRS (or SDRS) should take care of the rules.
    A script that check at regular intervals of there are rules for each VM should be sufficient.

    In fact, if I remember correctly there is a similar thread (with a solution) in this community.
    Try using the Search function.



  • 3.  RE: DRS Rules for Windows OS

    Posted Jan 24, 2022 08:46 PM

     

    It would be an affinity rule based on OS type just for DRS, not SDRS.. I'll see if I can find the example, I didn't see it when searching prior to posting..



  • 4.  RE: DRS Rules for Windows OS

    Posted Jan 24, 2022 08:51 PM

    Since affinity is a 1-to-1 rule, the number of rules would go up exponentially with the number of VMs.
    What rule/method do you employ for these affinity rules?



  • 5.  RE: DRS Rules for Windows OS

    Posted Jan 24, 2022 09:00 PM

     

    Perhaps VM-host rules would make more sense then.  



  • 6.  RE: DRS Rules for Windows OS

    Posted Jan 24, 2022 09:22 PM

    It's your environment.
    You decide what kind of rules you want, and more importantly what you are trying to achieve with those rules.