mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
The new merged qemu no longer has the ability to spawn a vnc viewer process in the bowels of the xend/qemu stack. In this patch we provide support for this use case in a different manner - one more akin to the mechanism used for `xm console' and `xm create -c'. We introduce new xm options: xm create --vncviewer [--vncviewer-autopass] xm vncviewer [--vncviewer-autopass] These spawn a VNC viewer, obtaining the relevant information (including the port number and if you tell it your viewer supports it the password to use) directly from xenstore. Like xm console it waits in the foreground for the vnc port to become available; the timeout case isn't handled as well as it might be - it just causes the whole program (xm) to die with `Alarm clock' but this is difficult to deal with given the current structure of the xs Python lowlevel interface, which doesn't provide a timeout on the call to wait for a xenstore watch. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
The file test.py here is from the Zope project, and is Copyright (c) 2001, 2002 Zope Corporation and Contributors. This file is released under the Zope Public License, version 2.0, a copy of which is in the file ZPL-2.0.