We're in the process of deploying our new VDI environment, using View 6 & UniDesk ontop of our Nutanix MetroAvailability Clusters.
We will be balancing the number of production desktops running at both sites to spread the load around (we'll have some containers active in site A, some active in Site 😎, and want to ensure VM's do not get vmotioned to the 'standby' site.
Although we do have significant bandwidth (10Gbe via dark fibre) & low latency (~1-2ms) between sites, we'd like to avoid the additional overheads where possible.
Is there a way for us to easily create DRS rules within vSphere to ensure VM's on Active Containers at Site A should always run on those hosts & vice-versa for Site B? I vaguely remember coming across a PowerCLI script somewhere that did this (or something similar), but have been unable to find it again.
Ofcourse it would be amazing if this could be natively handled by Nutanix, but for now i'd be happy with a script we can run on a schedule to update the DRS rules.
Solved
Automating DRS rule creation for Metro Availability

Best answer by stephaneb
I wrote a script that does just that. It's available at the end of this blog post: http://vmwaremine.com/2015/10/26/prepare-for-the-worst-and-oh-no-need-to-hope-for-the-best-part-13/#sthash.Ktprz5Ng.dpbs
Enjoy.
View originalEnjoy.
This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.