Hi A common way to have a bootstrap mechanism in many clouds, so also in cloudstack, is to use cloud-init [1] as described in the docs [2].
You would need to create a template (or iso) with cloud-init installed and then pass userdata as base64 encoded cloud-config, an example for a hostname setting would be https://cloudinit.readthedocs.io/en/latest/topics/modules.html#update-hostname cloud init will be executed on boot. [1] https://cloudinit.readthedocs.io/en/latest/ [2] http://docs.cloudstack.apache.org/en/latest/adminguide/virtual_machines/user-data.html?#using-cloud-init On 4/25/19 3:06 PM, Fariborz Navidan wrote: > hello folks, > > When creating a new instance, it does not aceept dots to use in instance > name and there seems to be no way to explicitly set hostname for VM. It > means hostnames cannot be a FQDN in ACS. How do you deal with this? Is > there any setting to allow dots in instance name or assign hostnames > explicitly and not to use VM name as hostname? > > Kind Regards >
