Chris Lalancette
2007-May-15 17:15 UTC
[Xen-devel] [RFC][PATCH]: Give "xm start" a -c parameter for connecting to the console
All,
Current 3.1.0 "xm start" doesn''t allow you to connect to
the console of an
already defined domain at domain creation time. Because of this, you
can''t get
access to pygrub to select kernels, edit parameters, etc. The attached patch
fixes this by adding a "-c" option to xm_start. Most of the code is
copied from
the equivalent option in "xm create". I know this patch is ugly in
that copies
the "do_console" code from create.py; I tried to put this function in
console.py, but it ended up spitting the error below when I did that. Since
python is not my strong suit, does anyone have better ideas about this?
Thanks,
Chris Lalancette
XM ERROR:
[root@lore xm]# xm start -c f7pv
Unexpected error: <type ''exceptions.OSError''>
Please report to xen-devel@lists.xensource.com
Traceback (most recent call last):
File "/usr/sbin/xm", line 10, in <module>
main.main(sys.argv)
File "/usr/lib/python2.5/site-packages/xen/xm/main.py", line 2503,
in main
_, rc = _run_cmd(cmd, cmd_name, args)
File "/usr/lib/python2.5/site-packages/xen/xm/main.py", line 2527,
in _run_cmd
return True, cmd(args)
File "/usr/lib/python2.5/site-packages/xen/xm/main.py", line 1180,
in xm_start
console.do_console(dom)
File "/usr/lib/python2.5/site-packages/xen/xm/console.py", line 34,
in do_console
(p, rv) = os.waitpid(cpid, os.WNOHANG)
OSError: [Errno 10] No child processes
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel