[one-users] POST-PROLOG Hook?

Ruben S. Montero rsmontero at opennebula.org
Thu Jan 2 09:36:34 PST 2014


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 <rjtd21 at hotmail.com> 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
> Users at lists.opennebula.org
> 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 | rsmontero at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140102/733c4aaa/attachment-0002.htm>


More information about the Users mailing list