From: Alexandre Derumier Date: Tue, 5 Sep 2017 09:46:17 +0000 (+0200) Subject: migration : enable mtunnel for insecure migration V2 X-Git-Url: https://git.proxmox.com/?p=qemu-server.git;a=commitdiff_plain;h=d296ed08d3bd85d9ccd730e12f7b7243bf2e08c0 migration : enable mtunnel for insecure migration V2 We only use it to send commands faster like resume Signed-off-by: Alexandre Derumier --- diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index 39b9491..937a855 100644 --- a/PVE/QemuMigrate.pm +++ b/PVE/QemuMigrate.pm @@ -599,8 +599,9 @@ sub phase2 { die "unable to detect remote migration address\n" if !$raddr; + $self->log('info', "start remote tunnel"); + if ($migration_type eq 'secure') { - $self->log('info', "start remote tunnel"); if ($ruri =~ /^unix:/) { unlink $raddr; @@ -633,6 +634,9 @@ sub phase2 { } else { die "unsupported protocol in migration URI: $ruri\n"; } + } else { + #fork tunnel for insecure migration, to send faster commands like resume + $self->{tunnel} = $self->fork_tunnel(); } my $start = time();