From: Kevin Wolf <kwolf@suse.de>
To: xen-devel@lists.xensource.com
Subject: [PATCH] Fix xm start -c / --vncviewer
Date: Thu, 25 Sep 2008 13:27:55 +0200 [thread overview]
Message-ID: <48DB75BB.9000400@suse.de> (raw)
[-- 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
reply other threads:[~2008-09-25 11:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48DB75BB.9000400@suse.de \
--to=kwolf@suse.de \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.