I'm using KVM (through libvirt actually) for a research project. We're live-migrating a virtual machine between different subnets, so after the migration the IP address and routing tables have to be updated, else the VM is unreachable in it's new subnet. The goal is to do this as fast as possible.
Currently I'm using ssh over a link-local IPv6 address to connect to the VM after the live migration. Then it runs a script that assigns the new IP address and gateway. But this adds a lot of unnecessary overhead.
What I'd like to have is a way for a daemon on the virtual machine to detect that a live migration just finished. Are there any hooks I can use?