Script when vm migrates

Byphone

Active Member
Jan 9, 2017
20
0
41
48
Hi everybody,

I need to execute a script when a vm has migrated, due to fail of a node.
Any idea to catch the event ?

Thanks
 
Looks like no-one understand your use case. Explain it more detailed.
 
OK, i will explain with details my request.
I have a cluster with 3 nodes, and a kvm with pfsense. In the case a node of the cluster fails, the pfsense kvm is migrated to another node.
Once the pfsense kvm is migrated i have to execute a script on the kvm to query with API the hosting services to manage failover public ip to redirect it to the correct node. So i need on the kvm to catch migration event to execute the script

Hope it's more clear
 
Why not stand up a pfsense kvm on each host and then use pfsense's internal HA mode to handle fail over ?
 

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!