mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 15:43:52 +00: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>
(cherry picked from commit ccab68c22c
)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
89099a07c7
commit
e95dda64bd
@ -2059,7 +2059,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…
Reference in New Issue
Block a user