mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-05 18:36:21 +00:00
fix migration tunnel
This commit is contained in:
parent
2b5569777b
commit
72afda82a1
@ -320,13 +320,13 @@ sub phase2 {
|
||||
my $cmd = [@{$self->{rem_ssh}}, 'qm', 'start',
|
||||
$vmid, '--stateuri', 'tcp', '--skiplock'];
|
||||
|
||||
$self->cmd($cmd, outfunc => sub {
|
||||
PVE::Tools::run_command($cmd, outfunc => sub {
|
||||
my $line = shift;
|
||||
|
||||
if ($line =~ m/^migration listens on port (\d+)$/) {
|
||||
$rport = $1;
|
||||
}
|
||||
});
|
||||
}, errfunc => sub {});
|
||||
|
||||
die "unable to detect remote migration port\n" if !$rport;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user