From: Thomas Lamprecht Date: Fri, 23 Jun 2017 07:47:06 +0000 (+0200) Subject: migrate: use 'mtunnel' from pvecm X-Git-Url: https://git.proxmox.com/?p=qemu-server.git;a=commitdiff_plain;h=da18cc93001bfb70ec0b5f627389809c86effe8a;hp=c7c2d0a7a66d7c397a7d435ab0884c93b5dcdbc1 migrate: use 'mtunnel' from pvecm qm mtunnel was deemed as deprecated but still in use here. Switch over to pvecm's mtunnel to allow removing the qm variant in PVE 5.1 Also use an absolute path so we do not depended on the targets environment variables Signed-off-by: Thomas Lamprecht --- diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index c1e2fe4..cb1639b 100644 --- a/PVE/QemuMigrate.pm +++ b/PVE/QemuMigrate.pm @@ -96,7 +96,7 @@ sub fork_tunnel { my @localtunnelinfo = defined($tunnel_addr) ? ('-L' , $tunnel_addr ) : (); - my $cmd = [@{$self->{rem_ssh}}, '-o ExitOnForwardFailure=yes', @localtunnelinfo, 'qm', 'mtunnel' ]; + my $cmd = [@{$self->{rem_ssh}}, '-o ExitOnForwardFailure=yes', @localtunnelinfo, '/usr/bin/pvecm', 'mtunnel' ]; my $tunnel = $self->fork_command_pipe($cmd);