All of lore.kernel.org
 help / color / mirror / Atom feed
* dom0 domU startup autorun script
@ 2009-09-11 16:12 Valtteri Kiviniemi
  2009-09-11 16:47 ` Dan Magenheimer
  0 siblings, 1 reply; 2+ messages in thread
From: Valtteri Kiviniemi @ 2009-09-11 16:12 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: dom0 domU startup autorun script
  2009-09-11 16:12 dom0 domU startup autorun script Valtteri Kiviniemi
@ 2009-09-11 16:47 ` Dan Magenheimer
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Magenheimer @ 2009-09-11 16:47 UTC (permalink / raw)
  To: Valtteri Kiviniemi, xen-devel

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@dataproof.fi]
> Sent: Friday, September 11, 2009 10:12 AM
> To: xen-devel@lists.xensource.com
> 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@lists.xensource.com
> http://lists.xensource.com/xen-devel
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-11 16:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-11 16:12 dom0 domU startup autorun script Valtteri Kiviniemi
2009-09-11 16:47 ` Dan Magenheimer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.