-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
please give documentation about DRS rules #112
Comments
While I did approve and go through the change, I don't remember exactly how it was done. I'll see if I can pull that up and write something up for you. Thanks for reporting! |
It's been a long time but I think it was me that added the DRS rules, although I think only cluster affinity is supported (adding others should be easy). There are examples of usage in the test file: https://github.com/fog/fog-vsphere/blob/master/tests/models/compute/rules_tests.rb |
Hi, @jrgarcia, anything new happening here? |
I also added code to the DRS rules but for anti-affinity. |
Hi @Zugschlus - it's been a long time, but from the example code I'm pretty sure you can just create a new rule by calling rule = cluster.rules.new(name: 'affinity-foo', enabled: true, type: RbVmomi::VIM::ClusterAffinityRuleSpec)
rule.vms = [server1, server2] # server objects
rule.save The The |
Hi,
I would like to create virtual machines with a DRS rule to not place two machines (culster nodes) together on the same ESX server if possible. I have seen in the change log that fog-vsphere supports DRS rules but there is absolutly no documentation. Is it possible to have docs or even examples, so that I can try making sense out of things with the help of my VMware people?
Thanks!
Greetings
Marc
The text was updated successfully, but these errors were encountered: