<div dir="ltr">Hi,<div><br></div><div style>We changed a bit the VM template for 4.0 and it looks like we broke this.</div><div style>The fix is simple, so it will be included in the final release [1].<br></div><div style>

<br></div><div style>Thanks for testing the beta!</div><div class="gmail_extra"><br></div><div class="gmail_extra">[1] <a href="http://dev.opennebula.org/issues/1915">http://dev.opennebula.org/issues/1915</a><br></div><div class="gmail_extra">

<br clear="all"><div>--<br>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 href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a 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"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>

</div>
<br><br><div class="gmail_quote">On Tue, Apr 16, 2013 at 10:33 AM, Jean-Philippe Garcia Ballester <span dir="ltr"><<a href="mailto:giga@le-pec.org" target="_blank">giga@le-pec.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

  Hi,<br>
  Thank you for your reply and your patience. Unfortunately it does not work. I am using OpenNebula 4.0 beta (3.9.80). Maybe it is a regression ?<br>
  Regards,<br>
<br>
On Monday 15 April 2013 12:47:29 Campbell, Bill wrote:<br>
> Sorry, that was a misunderstanding of the question.  I misread in how we define HOSTNAME=<some random name here> in the contextualization script.<br>
><br>
> If you want to use the hostname, then add this as your context variable:<br>
><br>
> HOSTNAME=$NAME<br>
><br>
> That should do it.<br>
<div class="im">><br>
> ----- Original Message -----<br>
> From: "Jean-Philippe Garcia Ballester" <<a href="mailto:giga@le-pec.org">giga@le-pec.org</a>><br>
</div><div class="im">> To: "Bill Campbell" <<a href="mailto:bcampbell@axcess-financial.com">bcampbell@axcess-financial.com</a>><br>
> Sent: Monday, April 15, 2013 9:22:57 AM<br>
> Subject: Re: [one-users] Virtual machine hostname contextualization<br>
><br>
>    Hi,<br>
</div>>    I have not seen anything in the 3.8 contextualization package that<br>
> would use a variable named HOSTNAME, nor anything that would actually<br>
> change the hostname.<br>
>    Also, I have not found how to automatically fill a contextualization<br>
> variable with the actual name of the VM.<br>
>    For example<br>
> CONTEXT=[<br>
>    TEST="$VMID" ]<br>
>    in the vm template will be correctly replaced by<br>
> TEST="55"<br>
>    in the generated context.sh for the instantiated VM. But<br>
> CONTEXT=[<br>
>    TEST="$HOSTNAME" ]<br>
>    will not result in anything in context.sh.<br>
>    Regards,<br>
<div class="im">><br>
> On 15/04/2013 14:57, Campbell, Bill wrote:<br>
> > Should just be the HOSTNAME variable.  So long as your VM template<br>
> > has the contextualization packages installed it should take that<br>
> > variable and apply the appropriate hostname on boot.<br>
> ><br>
> > ----- Original Message -----<br>
> > From: "Jean-Philippe Garcia Ballester" <<a href="mailto:giga@le-pec.org">giga@le-pec.org</a>><br>
> > To: <a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a><br>
> > Sent: Monday, April 15, 2013 4:23:58 AM<br>
> > Subject: [one-users] Virtual machine hostname contextualization<br>
> ><br>
</div><div class=""><div class="h5">> >   Hi,<br>
> >   I am currently experimenting on opennebula 4.0 beta to satisfy my<br>
> > personal curiosity. I was thinking of creating a non-persistent image<br>
> > with a basic Debian installation, a chef-client, and just enough<br>
> > contextualization to let the VM connect to the chef server and<br>
> > configure itself.<br>
> >   However, I did not find any contexualization variable for the<br>
> > template that would be replaced by the name of the instantiated VM.<br>
> > Is<br>
> > there such a variable ?<br>
> >   Regards,<br>
><br>
><br>
--<br>
Jean-Philippe Garcia Ballester</div></div><br>_______________________________________________<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></blockquote></div><br></div></div>