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

Re: [Xen-users] Xen Guest VM shutdown hook



On Tue, 2016-12-13 at 19:26 -0500, Richie Daniel Johnson wrote:
> Hi All,
> 
> I am trying to create a script that automates creating/destroying
> virtual machines and corresponding networks in my environment. Is
> there a way to trigger a shell script or python script when a Guest
> VM is shutdown? Something like a shutdown hook for each VMs? I use
> the XL tool stack. I have a set of activities that needs to be done
> on shutdown of a virtual machine. 
> 
I think libvirt has something like that:

https://libvirt.org/hooks.html

Have a look at the libxl hooks.

Note, however, that I've never used these, and am not sure they
actually do what you need (not even whether or not they're functional,
TBH).

Regards,
Dario
-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
https://lists.xen.org/xen-users

 


Rackspace

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