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> |
[email protected] <mailto:[email protected]> | @OpenNebula
<http://twitter.com/opennebula>
On Mon, Aug 26, 2013 at 1:46 PM, Andreas Calvo Gómez
<[email protected] <mailto:[email protected]>> 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
[email protected] <mailto:[email protected]>
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org