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:

About

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!