Thanks for tips..<br><br>This "onetemplate" feature is for 3.0 version, right?<br>I'm using ON2.2 and was trying to add dinamically the context information to a VM in pending state, to simplify to final user. But it seems cant be done in this version.<br>
<br>I'm gonna try ON3.0.<br><br>Regards<br><br><div class="gmail_quote">2011/11/1 Robert Parrott <span dir="ltr"><<a href="mailto:parrott@seas.harvard.edu">parrott@seas.harvard.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Paulo,<br>
<br>
One thing that we've done is to use "onetemplate" to store a template<br>
" template", i.e. a template that has fields in the context that are<br>
placeholder tokens. Then we've wrapped the deploy command line with a<br>
script that will pull the contents of the template, modify it in<br>
place, and then feed it into the onevm create command. If you set<br>
"EDITOR=cat" in your shell and then do a "onetemplate update", the<br>
contents of the template will be written to stdout. A few well placed<br>
"sed" commands can customize that template dynamically for your needs<br>
(for example we specify a public key to add, and a local user account<br>
to create based on the currently login name).<br>
<br>
Rob<br>
<div><div></div><div class="h5"><br>
<br>
On Mon, Oct 31, 2011 at 11:41 AM, Paulo A L Rego <<a href="mailto:pauloalr.alu@gmail.com">pauloalr.alu@gmail.com</a>> wrote:<br>
> Hi,<br>
> is it possible to change the virtual machine's template while the vm is in<br>
> pending state?<br>
><br>
> We can see the template by using vm.template_str and the xml using<br>
> vm.to_xml.<br>
> Can we update the template or the xml before deploying?<br>
> I would like to update the name and/or include other fields at template.<br>
> Thanks a lot.<br>
> Paulo Rego<br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">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>
><br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Robert E. Parrott, Ph.D. (Phys. '06)<br>
Director, Academic Computing<br>
Harvard University Sch. of Eng. and App. Sci.<br>
Maxwell-Dworkin 211,<br>
33 Oxford St.<br>
Cambridge, MA 02138<br>
<a href="tel:%28617%29-496-1520" value="+16174961520">(617)-496-1520</a><br>
</font></blockquote></div><br>