Short answer = NO.
Long answer = YES.
I was working with a customer a couple of weeks ago and they asked the question, how do we configure the Anti-Affinity rules within VMware vCloud Director. Another guy asked the question, why would you want to use these?
Think of a use case where within a vApp you have two or three web servers (for resilience). You would not want these to be on the same host, in-case of an outage. Yes HA would restart the VMs on a different host, but of course there is an outage time for that. This is where the anti-affinity rules have always been used within DRS to ensure the VMs are separated. If you were not concerned about the outage, you would simply have one web server.
So going back to the title can it be done? Yes, but unfortunately not through the GUI of vCD. To enable the Anti-Affinity rules you need to apply these in the standard way through vCenter and the DRS Cluster settings.
It would be interesting to see if people thought this is something they would actually use within vCD, and what they think about it.
This brings to the more general issue of vCD versus WAN level distribution.
In another post, (VMware vCloud Director – Q&A – Part 2) Dave says: A.You should keep everything local to a datacenter (site) in v1.0.
But what is the ultimae architectural model ?
For example, a vApp lives in one and only one vDC.
For Disaster Recovery reasons, with strong RTO objectives,you may want to use anti-affinity rules to spray your clustered instances on two sites.
But can a vDC be distributed on the WAN in several pDCs? This is unclear from the various Vcloud directors presentations I have seen.
What’s your view?