[SOLVED] Ensuring a group of VMs stay together on the same host

veehexx

Member
Jun 9, 2022
15
2
23
i've recently discovered that a pair of VMs (Router & wifi controller appliance) need to stay together for wifi AP's to be able to function correctly. This is a discovery/DHCP option/DNS requirement.
The actual network design has PVE nodes either side of a wifi mesh bridge, and the wifi controller is required for the mesh to be reconfigured if the AP's get rebooted with certain configuration or firmware updates.

I run a 3 node PVE cluster. 2 nodes on the left side of wifi bridge, 1 node on the right side.
Is there a way to ensure that these two VMs always stay together on the same node (or atleast same side of wifi bridge), within a <1hour window? ie if the router VM moves from PVE1 to PVE2, then the controller VM also moves from PVE1 to PVE2?
 
oh :( . while i knew of "affinity", i searched forum and saw cpu affinity so thought it was just that.
didnt think to check the actual docs! stupid me!
thanks, that should cover it!