How Does Cloud-Init Affect the AS Service?
Cloud-Init is an open-source cloud initialization program, which initializes specified customized configurations, such as the hostname, key pair, and user data, of a newly created ECS. When creating an AS configuration, you can use Cloud-Init to initialize the ECS.
- If an ECS created using a Windows private image without Cloudbase-Init installed is used, the system will display a message indicating that the password for logging in to the ECS cannot be obtained when you obtain the password. In such a case, log in to the ECS using only the image password. If you forget the image password, use the password resetting function available on the Elastic Cloud Server page to reset the password.
- If an ECS created using a Linux private image without Cloud-Init installed is used, the ECS cannot be logged in using the password or key pair configured during ECS creation. In such a case, log in to the ECS using only the image password or key pair. If you forget the image password or key, use the password resetting function available on the Elastic Cloud Server page to reset the password.
- If an ECS created using a private image without Cloud-Init or Cloudbase-Init installed is used, user data injection fails.
To prevent the preceding issues from occurring, check whether the private image in the AS configuration has Cloud-Init or Cloudbase-Init installed before using the AS service. Delete the AS configurations that use the private images without Cloud-Init or Cloudbase-Init installed. Use the private images with Cloud-Init or Cloudbase-Init installed to create new AS configurations. The procedure is as follows:
- Log in to the management console.
- Under Computing, click Auto Scaling. In the navigation pane on the left, choose Instance Scaling.
- Click the AS Configurations tab and query the AS configuration list.
- Click Create AS Configuration and select a private image with Cloud-Init or Cloudbase-Init installed to create a desired AS configuration.
- Change the AS configuration in the AS group to the newly created one.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot