OpenStack: perform a live migration using a specific NIC
Quick old tip (back from the cave) to trigger a live migration from a specific network card.
In order to make it working you need to be able to resolve the ip of the desired interface, let’s put it that way:
eth0is default, hostname is node01
eth1is 10GB hostname is node01-s
Add this in your nova.conf:
%s is your destination host (as a python variable), it points to the name used from the command line.
The live migration will now use the node with
-s, but the command line remains the same
$ nova live-migration <vm> node01
Enjoy a fast live migration!