Script when vm migrates

Byphone

Renowned Member
Jan 9, 2017
20
0
66
49
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 ?