]> git.ipfire.org Git - thirdparty/libvirt.git/commit
migration: add support for migrateURI configuration
authorChen Fan <chen.fan.fnst@cn.fujitsu.com>
Tue, 20 May 2014 06:08:05 +0000 (14:08 +0800)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 20 May 2014 11:13:29 +0000 (13:13 +0200)
commitb0312d9fbd66cec1ef0b0a13794404d179f3b20c
tree7a5cdd2c540ba85a238f07f4af9790310134e105
parent5d85b8a8f4eae92763636db18d3e722ce276bd5a
migration: add support for migrateURI configuration

For now, we set the migration URI via command line '--migrate_uri' or
construct the URI by looking up the dest host's hostname which could be
solved by DNS automatically.

But in cases the dest host have two or more NICs to reach, we may need to
send the migration data over a specific NIC which is different from the
automatically resolved one for some reason like performance, security, etc.
Thus we must explicitly specify the migrateuri in command line everytime,
but it is too troublesome if there are many such hosts (and don't forget
virt-manager).

This patch adds a configuration file option on dest host to save the
default value set which can be specified to a migration hostname or
one of this host's addresses used for transferring data, thus user doesn't
have to specify it in command line everytime.

Signed-off-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/libvirtd_qemu.aug
src/qemu/qemu.conf
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/qemu_migration.c
src/qemu/test_libvirtd_qemu.aug.in