WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Running scripts on domU create/shutdown?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Running scripts on domU create/shutdown?
From: jez <jez@xxxxxxxxxx>
Date: Mon, 5 Mar 2007 22:25:12 +0000
Delivery-date: Mon, 05 Mar 2007 14:21:54 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070305214528.GA17051@xxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: xen-users@xxxxxxxxxxxxxxxxxxx
References: <20070305214528.GA17051@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
On Mon, Mar 05, 2007 at 09:45:29PM +0000, Steve Kemp wrote:
> 
>   So two questions:
> 
>     1.  Is there a simple method to get the domain name
>        from the ID, short of parsing "xm list N"?

Hi Steve

I think what you might be looking for is:
    
    xenstore-read ${XENBUS_PATH}/domain

If you take a look at the output of xenstore-ls you'll see there is a
whole tree of data that can be queried. Pretty useful!

> 
>     2.  Would this kind of startup/shutdown hook be useful
>        to others, and if so would a patch be applied?  (I'm
>        happy to submit my code.)

I'm too new to xen to offer a useful opinion on this one. Sorry.

Dig you're tutorials over at debian-administration!


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users