If you are using the UI to create the VM, set the name of the VM - this field 
sets the hostname and the display name. So you should see this value in the 
local-hostname file in the VR metadata folder.
If you are using the API, explicitly set the name field.

Let us know if you see the desired name in the metadata after setting the name 
parameter.

Thanks,
________________________________
From: cristian.c@istream.today <cristian.c@istream.today>
Sent: August 4, 2023 10:22 AM
To: users@cloudstack.apache.org <users@cloudstack.apache.org>
Subject: RE: set display_name as hostname to instances

Hi Pearl,

   I will test this when I upgrade to 4.18.x I'm waiting for 4.18.1.

Thank you,
Cristian

 


-----Original Message-----
From: Pearl d'Silva <pearl.dsi...@shapeblue.com>
Sent: Friday, August 4, 2023 4:24 PM
To: users@cloudstack.apache.org
Subject: Re: set display_name as hostname to instances

Hi Cristian,

In addition, in 4.18 a new feature - managed User data was introduced. This
can be used to register userdata with custom parameters - here, the
hostname. And when deploying the VM, the custom parameters could be set to
the desired values. You could refer to
https://www.shapeblue.com/cloudstack-managed-user-data/ for more
information.

Thanks,
Pearl
________________________________
From: Rohit Yadav <rohit.ya...@shapeblue.com>
Sent: August 4, 2023 9:12 AM
To: users@cloudstack.apache.org <users@cloudstack.apache.org>
Subject: Re: set display_name as hostname to instances

Hi Cristian,

I'm not sure, but could you try user data (cloud-init data) when you deploy
a VM. In there, you'll have flexibility to set the hostname of the VM to
whatever you'd like.


Regards.

________________________________
From: cristian.c@istream.today <cristian.c@istream.today>
Sent: Thursday, August 3, 2023 20:28
To: users@cloudstack.apache.org <users@cloudstack.apache.org>
Subject: set display_name as hostname to instances

Hello,



Is there a method to set as hostnames to the instances the display name? I
did not see the display name in the metadata.



I am asking this because the display name allows any format, such as
fqdn.tld, and it does not matter if it's a duplicate or not.

Thank you,

Cristian








Reply via email to