Hi, We changed a bit the VM template for 4.0 and it looks like we broke this. The fix is simple, so it will be included in the final release [1].
Thanks for testing the beta! [1] http://dev.opennebula.org/issues/1915 -- Carlos Martín, MSc Project Engineer OpenNebula - The Open-source Solution for Data Center Virtualization www.OpenNebula.org | [email protected] | @OpenNebula<http://twitter.com/opennebula><[email protected]> On Tue, Apr 16, 2013 at 10:33 AM, Jean-Philippe Garcia Ballester < [email protected]> wrote: > 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" <[email protected]> > > To: "Bill Campbell" <[email protected]> > > 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" <[email protected]> > > > To: [email protected] > > > 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 > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > >
_______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
