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
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.
Quoted 28 lines
-----Original Message-----
From: Valtteri Kiviniemi [mailto:[email protected]]
Sent: Friday, September 11, 2009 10:12 AM
To: [email protected]
Subject: [Xen-devel] dom0 domU startup autorun scriptHi,
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. 0405166397Valtteri Kiviniemi
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel