All VMs have the same hostname ubuntu

Hi,

I am using the ubuntu 14.04 image in the OpenNebula Marketplace for my vms. However I have observed that all the vms created with this image has the same hostname ubuntu. Is this the expected behavior or is there is a bug in the image?

Thanks & Regards
Paul

pmathew forum@opennebula.org writes:

Hi,

Hello,

I am using the ubuntu 14.04 image in the OpenNebula Marketplace for my
vms. However I have observed that all the vms created with this image
has the same hostname ubuntu. Is this the expected behavior or is
there is a bug in the image?

You should use context[1] to configure per VM hostname[2].

You can use a static value for SET_HOSTNAME or the name of the VM.

You may want to ask for user input[3].

Regards.

Footnotes:
[1] http://docs.opennebula.org/4.14/user/virtual_machine_setup/context_overview.html

[2] https://github.com/OpenNebula/addon-context-linux/blob/master/base_deb/etc/one-context.d/05-hostname

[3] http://docs.opennebula.org/4.14/user/references/template.html#user-inputs
signature.asc (342 Bytes)