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] Xen scripting

To: Jonas Björklund <jb@xxxxxx>
Subject: Re: [Xen-users] Xen scripting
From: Tim Post <tim.post@xxxxxxxxxxxxxxx>
Date: Thu, 12 Oct 2006 12:55:47 +0800
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 11 Oct 2006 21:57:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.64.0610112216530.7602@natalia>
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>
Organization: Net Kinetics
References: <Pine.LNX.4.64.0610112216530.7602@natalia>
Reply-to: tim.post@xxxxxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Easiest to just make a start script for dom-u's that results in xm start
(cfgfile) being called after the laundry list of things needing to
happen to start the guest have been satisfied.

Herbert Zu's port of dash is a great shell to use for scripting on
dom-0, nice and lightweight :

http://gondor.apana.org.au/~herbert/dash/ (85k stripped) opposed to 630k
for bash and over a meg for perl. 

I further modified mine to take out things like printf, mail checks and
other stuff not really used to make it a bit smaller, and have been
adding some goodies in the builtins :)

I suggest making scripts named start, stop, pause, unpause, reboot,
usually those are the commands where you find you need to do extra
things such as check on network storage or bring up a bridge / nic in a
special way.

HTH 
-Tim

On Wed, 2006-10-11 at 22:18 +0200, Jonas Björklund wrote:
> Hello,
> 
> Is it possible to get the name of domU in any of the scripts in 
> /etc/xen/scripts/. I need to do some stuff when I start the domU.
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
> 
> 


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

<Prev in Thread] Current Thread [Next in Thread>