Why Is the Hostname of My ECS Restored to the Original Name After the ECS Is Restarted?
The following uses an ECS running CentOS 7 as an example:
- Log in to the Linux ECS and view the Cloud-Init configuration file.
- In the /etc/cloud/cloud.cfg file, comment out or delete update_hostname.Note
- update_hostname indicates that the hostname is changed in Cloud-Init each time the ECS is restarted.
Parent topic: ECS Failure