]> git.proxmox.com Git - qemu-server.git/commitdiff
migrate: use 'mtunnel' from pvecm
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 23 Jun 2017 07:47:06 +0000 (09:47 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 23 Jun 2017 09:00:52 +0000 (11:00 +0200)
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 <t.lamprecht@proxmox.com>
PVE/QemuMigrate.pm

index c1e2fe431786f77435e53d017156b91e5a91ce99..cb1639bce70ac215254fbe056ca21f259113966b 100644 (file)
@@ -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);