Skip to contentSkip to conversation

Domid for just created domain?

DISCUSSION Dan Magenheimer 2 participants 2 messages May 31, 2008

lore
Share & tools
lore
#0 lore raw

Is there any easy way in a shell script to find out the domid of "the domain I just created" with xm create?

===================================
Thanks... for the memory
I really could use more / My throughput's on the floor The balloon is flat / My swap disk's fat / I've OOM's in store Overcommitted so much
(with apologies to the late great Bob Hope)

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

#1 lore raw
Quoted 2 lines · Dan Magenheimer

Is there any easy way in a shell script to find out the domid of "the domain I just created" with xm create?

xm create domain
xm list domain

is the best way I know of getting it... you just need to sed it out.

But usually I try not to use the numeric domain id for anything; if you set vifname= on the vif= line, to my knowledge there isn't anything you can't do with symbolic names that you can do with the numeric id.