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>
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)
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]