From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luke S Crawford Subject: Re: Domid for just created domain? Date: 31 May 2008 00:20:27 -0400 Message-ID: References: <20080530210127703.00000003600@djm-pc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <20080530210127703.00000003600@djm-pc> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "dan.magenheimer@oracle.com" Cc: "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org "Dan Magenheimer" writes: > 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.