[pve-devel] [PATCH] qemu-server: add support for unsecure migration (setting in datacenter.cfg)
Dietmar Maurer
dietmar at proxmox.com
Fri Jul 26 10:14:52 CEST 2013
> OK
>
> > (just remove ssh parameters '-L', "$lport:localhost:$rport" if !$rport
> > in fork_tunnel)
yes (if we do not need the ssh tunnel)
> That makes no sense to me as $rport is always set. Or do you mean if $raddr
> ne "localhost"?
>
> >> + if ($raddr eq "localhost") {
> >> + $self->log('info', "starting ssh migration tunnel");
> >>
> >> - $self->log('info', "starting online/live migration on port $lport");
> >> - # start migration
> >> + ## create tunnel to remote port
> >> + my $lport = PVE::Tools::next_migrate_port();
> >> + $self->{tunnel} = $self->fork_tunnel($self->{nodeip}, $lport, $rport);
> >> + }
> >>
> >> my $start = time();
> >> + $self->log('info', "starting online/live migration on $raddr:$rport");
> >> + $self->{livemigration} = 1;
> >
> > no need to change if we start the tunnel anyways?
> Most probably but maybe still nicer than relying on tunnel variable?
OK
More information about the pve-devel
mailing list