You should use SET_HOSTNAME variable instead: http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html#using-user-template-variables
On Tue, Jul 22, 2014 at 10:37 AM, Diego M. <thedragonsreb...@hotmail.com> wrote: > I was checkign the documentation, and you can use for HOSTNAME=$NAME on the > contextualization part of your template. > I tried it and didn't worked for me, but it is supposed to work. Maybe I'm > doing something wrong. > > ________________________________ > Date: Mon, 21 Jul 2014 17:14:56 -0700 > From: kerryh...@gmail.com > To: users@lists.opennebula.org > Subject: [one-users] Setting hostname for vm > > > Hi folks, > > I'm trying to determine how I can set the hostname for the vms I spin up. It > looks like the web interface for vms has no place to enter additional > one-off type properties, like hostname. This is true for both the user web > interface and the admin web interface. > > The template creation interface certainly has a place for raw data, but I'm > assuming I shouldn't have to create one template per vm just to set the > hostname. Perhaps setting up a template correctly will change the vm > interface, allowing a place to type in a hostname. > > Host and guest are both CentOS 6. > > Thanks! > Kerry > > > _______________________________________________ Users mailing list > Users@lists.opennebula.org > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > > _______________________________________________ > Users mailing list > Users@lists.opennebula.org > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan _______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org