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-devel

RE: [Xen-devel] dom0 domU startup autorun script

To: Valtteri Kiviniemi <valtteri.kiviniemi@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-devel] dom0 domU startup autorun script
From: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Date: Fri, 11 Sep 2009 09:47:33 -0700 (PDT)
Cc:
Delivery-date: Fri, 11 Sep 2009 09:48:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4AAA76E9.9050702@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
You mean a script that runs in dom0 when a specific
domU starts/shutsdown?

A simple way to do this would be to write a shell script
that does something like:

while xm list | grep -q -w MY_GUEST_NAME; do sleep 1; done; my_shutdown_script &

and run it in background in dom0.

It probably wouldn't be hard to turn this into a generic
service that takes a config file like:

check_interval 10
GUEST1 start guest1_start_script
GUEST1 stop  guest1_stop_script
GUEST2 start guest2_start_script

etc.

> -----Original Message-----
> From: Valtteri Kiviniemi [mailto:valtteri.kiviniemi@xxxxxxxxxxxx]
> Sent: Friday, September 11, 2009 10:12 AM
> To: xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-devel] dom0 domU startup autorun script
> 
> 
> Hi,
> 
> Is it possible to automatically run some script when domU 
> start or domU 
> shuts down? I mean that I could make a script run when I start or 
> shutdown domU.
> 
> --
> 
> Dataproof
> Aleksanterinkatu 7 A 14
> 15110 LAHTI
> puh. 0405166397
> 
> Valtteri Kiviniemi
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>

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

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