Prevent VM from migrating from one DC to the other

leihnix

Member
Mar 22, 2016
26
3
23
Hello Community

Imagine I have two DC's and a streched Proxmox cluster with a couple of nodes each. I have the requirement of VM's running in a specfic DC. How can I 'fix' a VM to specific node/s of the cluster/DC and therefore prevent it from migrating to the other DC? I have looked through the VM options and have not found what I was looking for. Could ths be handeled with a hookscript?

https://pve.proxmox.com/wiki/Manual:_qm.conf

Suggestions are welcome.

Kind regards
Mike
 
You can create HA groups. Shouldn't that work if you create two HA groups, one for each datacenter, so HA will only migrate VMs between nodes hosted in one datacenter? See here and scroll down to "groups".
gui-ha-manager-groups-view.png
 
Last edited: