On Tue, 2014-05-20 at 13:47 +0200, Jiri Denemark wrote:
On Tue, May 20, 2014 at 18:26:04 +0800, Chen Fan wrote:
> 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 resloved 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
> boring to specify it in command line everytime.
>
> Signed-off-by: Chen Fan <chen.fan.fnst(a)cn.fujitsu.com>
> ---
> src/qemu/libvirtd_qemu.aug | 1 +
> src/qemu/qemu.conf | 9 ++++++++-
> src/qemu/qemu_conf.c | 1 +
> src/qemu/qemu_conf.h | 1 +
> src/qemu/qemu_migration.c | 21 +++++++++++++++++----
> src/qemu/test_libvirtd_qemu.aug.in | 1 +
> 6 files changed, 29 insertions(+), 5 deletions(-)
Oops, I already took v5, applied the changes I suggested and Daniel
ACKed and pushed the result.
So this is already pushed now.
Ok, Thanks.
Chen
Jirka