[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] xm: display domain id on domain creation
This patch adds display of domain id as follows: $ xm create vm1 Using config file "/etc/xen/vm1". Started domain VM1 (id=8) ^^^^^^ It's useful, isn't it? Thanks, Kouya Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx> diff -r 5fd51e1e9c79 tools/python/xen/xm/create.py --- a/tools/python/xen/xm/create.py Wed Nov 05 10:57:21 2008 +0000 +++ b/tools/python/xen/xm/create.py Thu Nov 13 13:30:44 2008 +0900 @@ -1202,8 +1202,9 @@ def make_domain(opts, config): except: server.xend.domain.destroy(dom) err("Failed to unpause domain %s" % dom) - opts.info("Started domain %s" % (dom)) - return int(sxp.child_value(dominfo, 'domid')) + domid = int(sxp.child_value(dominfo, 'domid')) + opts.info("Started domain %s (id=%d)" % (dom, domid)) + return domid def get_xauthority(): _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |