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] Contextualization Overview — OpenNebula 4.14.2 documentation

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

[3] Virtual Machine Definition File — OpenNebula 4.14.2 documentation
signature.asc (342 Bytes)