XCP-NG force VMs to not be on the same server?

Is there a way to force a couple VMs so that they do not end up on the same host unless there is only one host left? I just did a rolling pool update, and as usual, both of my DC ending up on Host 1 which is also the pool master. I manually migrated DC2 over to Host 2 which is often what I end up doing. Just thought I would ask if there is a way to weight but not assign a VM to a different host.

I know I can prefer a host, which I guess would work and I’ll look into this.

Yes, it is done by tags and then setting up the loadbalance feature. Once you set the affinity tags it will evenly separate the vm’s with that tag.

1 Like

Thanks, I’ll read up on that.

Yes, you can achieve this by setting anti-affinity rules for your VMs. Anti-affinity rules ensure that specific VMs do not run on the same host unless there are no other hosts available. This can be done in most virtualization platforms.