In Proxmox HA config, is there a way to set up affinity between two virtual machines ?

For instance : cluster with several nodes, 2 VMs running a LDAP Server (master and slave)
How to prevent the 2 LDAP servers running on the same physical host ?

I know I can do this with pools etc ...
But is there a way to set up on the HA config that these 2 virtual machines MUST not be running on the samme physical host ?

It's not yet possible

(I'm currently working it, with vm balancing (like vmware drs) + affinity/antinity, but it'll not be ready before some months).

The only workaround could be to create an 2 HA group with servers with differents priority, and put each vm in a different ha group.


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!