mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-03-12 20:58:26 +03:00
fix remote viewer live migration
for some reason not setting port results in a port of '65535' which triggers an execption in http-server anyevent, so we set the port to 0 also, we have to read the ticket from stdin even for 'unix' type secure migration Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
8071149be8
commit
ccab68c22c
@ -2048,7 +2048,7 @@ __PACKAGE__->register_method({
|
||||
|
||||
# read spice ticket from STDIN
|
||||
my $spice_ticket;
|
||||
if ($stateuri && ($stateuri eq 'tcp') && $migratedfrom && ($rpcenv->{type} eq 'cli')) {
|
||||
if ($stateuri && ($stateuri eq 'tcp' || $stateuri eq 'unix') && $migratedfrom && ($rpcenv->{type} eq 'cli')) {
|
||||
if (defined(my $line = <STDIN>)) {
|
||||
chomp $line;
|
||||
$spice_ticket = $line;
|
||||
|
@ -749,7 +749,7 @@ sub phase2 {
|
||||
|
||||
eval {
|
||||
PVE::QemuServer::vm_mon_cmd_nocheck($vmid, "client_migrate_info", protocol => 'spice',
|
||||
hostname => $proxyticket, 'tls-port' => $spice_port,
|
||||
hostname => $proxyticket, 'port' => 0, 'tls-port' => $spice_port,
|
||||
'cert-subject' => $subject);
|
||||
};
|
||||
$self->log('info', "client_migrate_info error: $@") if $@;
|
||||
|
Loading…
x
Reference in New Issue
Block a user