mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-07 20:13:44 +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',
|
my $cmd = [@{$self->{rem_ssh}}, 'qm', 'start',
|
||||||
$vmid, '--stateuri', 'tcp', '--skiplock'];
|
$vmid, '--stateuri', 'tcp', '--skiplock'];
|
||||||
|
|
||||||
$self->cmd($cmd, outfunc => sub {
|
PVE::Tools::run_command($cmd, outfunc => sub {
|
||||||
my $line = shift;
|
my $line = shift;
|
||||||
|
|
||||||
if ($line =~ m/^migration listens on port (\d+)$/) {
|
if ($line =~ m/^migration listens on port (\d+)$/) {
|
||||||
$rport = $1;
|
$rport = $1;
|
||||||
}
|
}
|
||||||
});
|
}, errfunc => sub {});
|
||||||
|
|
||||||
die "unable to detect remote migration port\n" if !$rport;
|
die "unable to detect remote migration port\n" if !$rport;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user