Skip to contentSkip to conversation

xm: display domain id on domain creation

PATCH In review Kouya Shimura 2 participants 3 messages Nov 13, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

tools/python/xen/xm/create.py +3 -2
diff -r 5fd51e1e9c79 tools/python/xen/xm/create.py
@@ -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
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

Hi Kouya,

I would like it for the following commands too.
- xm start
- xm restore
- xm resume

Best regards,
Kan

Quoted 20 lines · Kouya Shimura

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

-------------------------------text/plain-------------------------------
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw

Hi Kan,

Hmm, I hardly use those commands.
They are currently quiet. I had a quick look at python code and it seems to take a lot of time to implement them.

Thanks,
Kouya

Quoted 32 lines · Masaki Kanno

Hi Kouya,

I would like it for the following commands too.
- xm start
- xm restore
- xm resume

Best regards,
Kan

Quoted 20 lines · Kouya Shimura

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

-------------------------------text/plain-------------------------------
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel