<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thanks Carlos,<br>
    That should do the trick!<br>
    <br>
    <div class="moz-cite-prefix">On 27/08/13 11:26, Carlos Martín
      Sánchez wrote:<br>
    </div>
    <blockquote
cite="mid:CAEPYvFLH3sdqQRK1Zny=8qvQGgCZPpnUzPFJvaJTUH4CeCC+uQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>For this kind of customization we provide Hooks [1].</div>
        <div><br>
        </div>
        <div>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.</div>
        <div><br>
        </div>
        <div>Let us know if you have any other specific question about
          hooks.</div>
        <div><br>
        </div>
        <div>Regards</div>
        <div><br>
        </div>
        <div>[1] <a moz-do-not-send="true"
            href="http://opennebula.org/documentation:rel4.2:hooks">http://opennebula.org/documentation:rel4.2:hooks</a><br>
        </div>
        <div>[2] <a moz-do-not-send="true"
href="http://opennebula.org/documentation:rel4.2:vm_guide_2#scheduling_actions">http://opennebula.org/documentation:rel4.2:vm_guide_2#scheduling_actions</a><br>
        </div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div dir="ltr">--<br>
            Join us at <a moz-do-not-send="true"
              href="http://opennebulaconf.com" target="_blank">OpenNebulaConf2013</a>
            in Berlin, 24-26 September, 2013<br>
            --
            <div>Carlos Martín, MSc<br>
              Project Engineer<br>
              OpenNebula - The Open-source Solution for Data Center
              Virtualization
              <div>
                <span
style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a
                    moz-do-not-send="true"
                    href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a>
                  | <a moz-do-not-send="true"
                    href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>
                  | <a moz-do-not-send="true"
                    href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span
style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"></span></div>
            </div>
          </div>
        </div>
        <br>
        <br>
        <div class="gmail_quote">On Mon, Aug 26, 2013 at 1:46 PM,
          Andreas Calvo Gómez <span dir="ltr"><<a
              moz-do-not-send="true"
              href="mailto:andreas.calvo@scytl.com" target="_blank">andreas.calvo@scytl.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            Hello all,<br>
            Would it be possible to define a default schedule action
            based on user/group?<br>
            For instance, imagine you want to delete a VM once it has
            been 24h running, would it be possible?<br>
            <br>
            Thanks<br>
            _______________________________________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org"
              target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
  </body>
</html>