Hi Yes none of the hooks can be used. Note also that hooks are executed asynchronously, so a hook is not the solution in this case, (i.e. you need to delay boot till the hook ends).
Simply go and update the clone/ln scripts of the TM. Add whatever you need after the cp or qemu-img snapshot operation. Cheers Ruben On Thu, Jan 2, 2014 at 3:05 PM, Ricardo Duarte <[email protected]> wrote: > Hi there, > > I need to run a "qemu-img resize" command after a machine is created, to > resize the boot qcow2. > What hook should I use? > As far as I see it, none of the following will do it: > > - If I use the CREATE hook, the disk will still not be stored on the > systemds > - If I use the PROLOG hook, the disk will still not be stored on the > systemds > - If I use the BOOT hook, the command will run every time a user boots the > machine (ex.: initial boot, poweroff-poweron) > > What I need is, conceptually, a POST PROLOG. > Any suggestion? > > Regards, > Ricardo Duarte > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > > -- -- Ruben S. Montero, PhD Project co-Lead and Chief Architect OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | [email protected] | @OpenNebula
_______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
