[one-users] Virtual machine hostname contextualization
Jean-Philippe Garcia Ballester
giga at le-pec.org
Tue Apr 16 01:33:22 PDT 2013
Hi,
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 ?
Regards,
On Monday 15 April 2013 12:47:29 Campbell, Bill wrote:
> Sorry, that was a misunderstanding of the question. I misread in how we define HOSTNAME=<some random name here> in the contextualization script.
>
> If you want to use the hostname, then add this as your context variable:
>
> HOSTNAME=$NAME
>
> That should do it.
>
> ----- Original Message -----
> From: "Jean-Philippe Garcia Ballester" <giga at le-pec.org>
> To: "Bill Campbell" <bcampbell at axcess-financial.com>
> Sent: Monday, April 15, 2013 9:22:57 AM
> Subject: Re: [one-users] Virtual machine hostname contextualization
>
> Hi,
> I have not seen anything in the 3.8 contextualization package that
> would use a variable named HOSTNAME, nor anything that would actually
> change the hostname.
> Also, I have not found how to automatically fill a contextualization
> variable with the actual name of the VM.
> For example
> CONTEXT=[
> TEST="$VMID" ]
> in the vm template will be correctly replaced by
> TEST="55"
> in the generated context.sh for the instantiated VM. But
> CONTEXT=[
> TEST="$HOSTNAME" ]
> will not result in anything in context.sh.
> Regards,
>
> On 15/04/2013 14:57, Campbell, Bill wrote:
> > Should just be the HOSTNAME variable. So long as your VM template
> > has the contextualization packages installed it should take that
> > variable and apply the appropriate hostname on boot.
> >
> > ----- Original Message -----
> > From: "Jean-Philippe Garcia Ballester" <giga at le-pec.org>
> > To: users at lists.opennebula.org
> > Sent: Monday, April 15, 2013 4:23:58 AM
> > Subject: [one-users] Virtual machine hostname contextualization
> >
> > Hi,
> > I am currently experimenting on opennebula 4.0 beta to satisfy my
> > personal curiosity. I was thinking of creating a non-persistent image
> > with a basic Debian installation, a chef-client, and just enough
> > contextualization to let the VM connect to the chef server and
> > configure itself.
> > However, I did not find any contexualization variable for the
> > template that would be replaced by the name of the instantiated VM.
> > Is
> > there such a variable ?
> > Regards,
>
>
--
Jean-Philippe Garcia Ballester
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130416/1ec18d5a/attachment-0002.pgp>
More information about the Users
mailing list