[one-users] default schedule action

Carlos Martín Sánchez cmartin at opennebula.org
Tue Aug 27 02:26:05 PDT 2013


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 | cmartin at opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>


On Mon, Aug 26, 2013 at 1:46 PM, Andreas Calvo Gómez <
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
> http://lists.opennebula.org/**listinfo.cgi/users-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/148b1a46/attachment-0002.htm>


More information about the Users mailing list