Ganeti Hooks for Failover IP Migration/add/del from guests

To use this you should separe your ip failover ripe in single ip failover /32, and route every ip to your virtual machines as singular netmask ip.

i also use ospf to manage internal routing.

[DONATIONS id:1561] help us to continue developement at

Put your external ip address as instance tags in this way:

gnt-instance add-tags ${instance_name} route:${ipaddr}/32:${INTERFACE}

for example:

gnt-instance add-tags instance01 route:

  • install python-ovh from
  • put all the directory and files of the tarball in /etc/ganeti
  • edit /etc/ganeti/scripts/ovh_cmd and change both $hostmap, $username and $passwd according to your use case
  • put a crontab that touch /tmp/ganeti.checkroute one time every $(choose_your_time, i use 1 hour)
  • put a touch /tmp/ganeti.checkroute in /etc/rc.local
  • put a crontab to execute every minute /etc/ganeti/cron/00-external-routes (look at example crontab)

Every time you migrate, move, failover, start, stop an instance, it should automagically update ovh failover routes.