Actions
action #17658
closedVNC reconnect feature needed for xen/svirt and stalled VNC connections
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Feature requests
Target version:
-
Start date:
2017-03-10
Due date:
% Done:
0%
Estimated time:
Description
Because Xen resets guest's VNC connection, we have couple of following provisions for Xen over svirt to make sure we have a live VNC connection after guest restarts:
script_run 'reboot';
reset_consoles;
if (check_var('VIRSH_VMM_FAMILY', 'xen')) {
sleep 4;
select_console 'sut';
}
That is: when the system is restarting, reset consoles, wait some time and re-connect to 'sut' console, when the system is booting. Of course this is prone to fail as we don't know how long to wait.
Decent workaround would be wait_serial
for serial device output from GRUB. But a proper one seems to me a VNC reconnect feature in os-autoinst, via polling or DOM events. virt-install
has it: https://github.com/SPICE/virt-viewer/blob/master/src/virt-viewer.c.
Actions