* [PATCH] Fix xm start -c / --vncviewer
@ 2008-09-25 11:27 Kevin Wolf
0 siblings, 0 replies; only message in thread
From: Kevin Wolf @ 2008-09-25 11:27 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 334 bytes --]
In xm start the --vncviewer option has no effect, instead -c tries to
both connect to the console and start vncviewer. Additionally, to start
vncviewer it uses the domid variable which is only defined a few lines
later. Thus xm start -c doesn't work at all.
This patch fixes both problems.
Signed-off-by: Kevin Wolf <kwolf@suse.de>
[-- Attachment #2: fix-xm-start.patch --]
[-- Type: text/x-patch, Size: 831 bytes --]
Index: xen-unstable.hg/tools/python/xen/xm/main.py
===================================================================
--- xen-unstable.hg.orig/tools/python/xen/xm/main.py
+++ xen-unstable.hg/tools/python/xen/xm/main.py
@@ -1224,9 +1224,6 @@ def xm_start(args):
if console_autoconnect:
start_do_console(dom)
- if console_autoconnect:
- console.runVncViewer(domid, vncviewer_autopass, True)
-
try:
if serverType == SERVER_XEN_API:
server.xenapi.VM.start(get_single_vm(dom), paused)
@@ -1241,6 +1238,10 @@ def xm_start(args):
if domid == -1:
raise xmlrpclib.Fault(0, "Domain '%s' is not started" % dom)
+ if vncviewer:
+ console.runVncViewer(domid, vncviewer_autopass, True)
+
+
def xm_delete(args):
arg_check(args, "delete", 1)
dom = args[0]
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-25 11:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-25 11:27 [PATCH] Fix xm start -c / --vncviewer Kevin Wolf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.