<div dir="ltr">Hi<div><br></div><div>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).</div><div>
<br></div><div>Simply go and update the clone/ln scripts of the TM. Add whatever you need after the cp or qemu-img snapshot operation.</div><div><br></div><div>Cheers</div><div><br></div><div>Ruben</div><div class="gmail_extra">
<br><br><div class="gmail_quote">
On Thu, Jan 2, 2014 at 3:05 PM, Ricardo Duarte <span dir="ltr"><<a href="mailto:rjtd21@hotmail.com" target="_blank">rjtd21@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Hi there,<br><br>I need to run a "qemu-img resize" command after a machine is created, to resize the boot qcow2.<br>What hook should I use?<br>As far as I see it, none of the following will do it:<br>
<br>- If I use the CREATE hook, the disk will still not be stored on the systemds<br>- If I use the PROLOG hook, the disk will still not be stored on the systemds<br>- If I use the BOOT hook, the command will run every time a user boots the machine (ex.: initial boot, poweroff-poweron)<br>
<br>What I need is, conceptually, a POST PROLOG.<br>Any suggestion?<br><br>Regards,<br>Ricardo Duarte<br> </div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><div>-- <br></div></div>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<div>OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula</div></div>
</div></div>