Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-LAB-HELP
-
Labels:None
-
HD-Chapter:Ops
-
HD-Enabler:Ops - Deploy
Description
Dear,
You could try to setup a cloud-init script with specific configuration for your instance. Here you have an example: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/4/html/End_User_Guide/user-data.html on how to write it.
You should be able to inject the configuration to your instance from the section under tab “4. Post-Creation” in the instance launch window.
Best,
Daniele
> On 14 Sep 2015, at 22:06, Oscar Castro <oscar.castro@itech.expert> wrote:
>
> FI-WARE Lab Identification data:
> User full name
> Jon Murcia
> User account
> artiamob@gmail.com
> Accelerator submission name
> Artiamob
> FIWARE Lab Node
> Spain
>
> Help request about changing the hostname of the VM instances/nodes launched on the Lab.
>
> I built the node without blueprint, template or any other assistance; just launched an instance of a CentOS 6.5 based image. It seems that when you do it in this way, the cloud environment sets the hostname automatically with a name based on the image name itself. Later, when I try to modify the hostname following the CentOS typical procedures (hostnames file, hostname command, etc) the image seems to do it correctly but if I reboot the machine the hostname is reverted to the original one. ¿How could I prevent this to happen?.
>
> Regards,
>
> - Oscar Castro
> _______________________________________________
> Fiware-lab-help mailing list
> Fiware-lab-help@lists.fiware.org
> https://lists.fiware.org/listinfo/fiware-lab-help-new
_______________________________________________
Fiware-lab-help mailing list
Fiware-lab-help@lists.fiware.org
https://lists.fiware.org/listinfo/fiware-lab-help-new
Thanks Daniele,
Does it mean that I can only do that when creating the instance? Is there
any procedure to modify it once created?.
----
Mensaje original----De: Daniele Santoro daniele.santoro@create-net.org
Enviado el: lunes, 14 de septiembre de 2015 23:32
Para: Oscar Castro
CC: fiware-lab-help@lists.fiware.org; Jon Murcia; Pasquale Vitale
Asunto: Re: [Fiware-lab-help] FIWARE Lab Assistance
Dear,
You could try to setup a cloud-init script with specific configuration for
your instance. Here you have an example:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenS
tack_Platform/4/html/End_User_Guide/user-data.html on how to write it.
You should be able to inject the configuration to your instance from the
section under tab “4. Post-Creation” in the instance launch window.
Best,
Daniele
launched on the Lab.
launched an instance of a CentOS 6.5 based image. It seems that when you do
it in this way, the cloud environment sets the hostname automatically with
a name based on the image name itself. Later, when I try to modify the
hostname following the CentOS typical procedures (hostnames file, hostname
command, etc) the image seems to do it correctly but if I reboot the machine
the hostname is reverted to the original one. ¿How could I prevent this to
happen?.
_______________________________________________
Fiware-lab-help mailing list
Fiware-lab-help@lists.fiware.org
https://lists.fiware.org/listinfo/fiware-lab-help-new