[one-users] default schedule action

Andreas Calvo Gómez andreas.calvo at scytl.com
Tue Aug 27 03:19:55 PDT 2013


Thanks Carlos,
That should do the trick!

On 27/08/13 11:26, Carlos Martín Sánchez wrote:
> Hi,
>
> For this kind of customization we provide Hooks [1].
>
> I would create a VM hook on CREATE, with the $TEMPLATE argument. Your 
> hook can be a small bash or ruby script, but any executable is fine. 
> This script will need to check the uid/gid of the vm template, and 
> call onevm shutdown --schedule now+24h.
>
> Let us know if you have any other specific question about hooks.
>
> Regards
>
> [1] http://opennebula.org/documentation:rel4.2:hooks
> [2] 
> http://opennebula.org/documentation:rel4.2:vm_guide_2#scheduling_actions
>
> --
> Join us at OpenNebulaConf2013 <http://opennebulaconf.com> in Berlin, 
> 24-26 September, 2013
> -- 
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - The Open-source Solution for Data Center Virtualization
> www.OpenNebula.org <http://www.OpenNebula.org> | 
> cmartin at opennebula.org <mailto:cmartin at opennebula.org> | @OpenNebula 
> <http://twitter.com/opennebula>
>
>
> On Mon, Aug 26, 2013 at 1:46 PM, Andreas Calvo Gómez 
> <andreas.calvo at scytl.com <mailto:andreas.calvo at scytl.com>> wrote:
>
>     Hello all,
>     Would it be possible to define a default schedule action based on
>     user/group?
>     For instance, imagine you want to delete a VM once it has been 24h
>     running, would it be possible?
>
>     Thanks
>     _______________________________________________
>     Users mailing list
>     Users at lists.opennebula.org <mailto:Users at lists.opennebula.org>
>     http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130827/4b59055d/attachment-0002.htm>


More information about the Users mailing list