[one-users] Setting hostname for vm

Javier Fontan jfontan at opennebula.org
Tue Jul 22 05:37:55 PDT 2014


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. <thedragonsreborn at 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: kerryhall at gmail.com
> To: users at 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 at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
> _______________________________________________
> Users mailing list
> Users at 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


More information about the Users mailing list