[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Xen scripting



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.