Checking the Cloud-Init Status
SLES 11 SP4
- Run the yast command and select System.
- Press Tab and select System Services (Runlevel).
- Press Enter. The following figure indicates that automatic startup has been enabled for the four services of Cloud-Init. If it is not enabled for any service, enable it.
SLES 12 SP1
- Check whether the Cloud-init services will automatically start when the system starts.
To query the Cloud-Init status, run the yast command and use up and down arrow keys to select System. Then, press Tab and use up and down arrow keys to select System Manager.
- As shown in the preceding figure, automatic startup has been enabled for the four services of Cloud-Init. Active indicates that the service has been started. If automatic startup is not enabled for any service, select the service using up and down arrow keys, press Tab, and use the Enable/Disable option to enable it.
SLES 12 SP2/SLES 12 SP3/SLES 15/Oracle Linux 7/RHEL 7/CentOS 7/CentOS 8/XenServer 7
- Check whether the Cloud-init services will automatically start when the system starts.
systemctl status cloud-init-local
systemctl status cloud-init
systemctl status cloud-config
systemctl status cloud-final
- enabled indicates that the service will automatically start.
Otherwise, run the following commands to enable automatic startup for them.
systemctl enable cloud-init-local
systemctl enable cloud-init
systemctl enable cloud-config
systemctl enable cloud-final
- Run the following commands to start Cloud-Init services:
systemctl start cloud-init-local
systemctl start cloud-init
systemctl start cloud-config
systemctl start cloud-final
- Run the commands in 1 to check whether the Cloud-Init status is active.
EulerOS/OpenEuler
- Check whether the Cloud-init services will automatically start when the system starts.
systemctl status cloud-init-local
systemctl status cloud-init
systemctl status cloud-config
systemctl status cloud-final
- enabled indicates that the service will automatically start.
Otherwise, run the following commands to enable automatic startup for them.
systemctl enable cloud-init-local
systemctl enable cloud-init
systemctl enable cloud-config
systemctl enable cloud-final
- Run the following commands to start Cloud-Init services:
systemctl start cloud-init-local
systemctl start cloud-init
systemctl start cloud-config
systemctl start cloud-final
- Run the commands in 1 to check whether the Cloud-Init status is active.
RHEL 6/CentOS 6/Oracle Linux 6
- Run the following command:
As shown in the following figure, on indicates that automatic startup has been enabled for the service.
- If automatic startup is not enabled for Cloud-Init services, run the following commands to enable it:
chkconfig cloud-init-local on
chkconfig cloud-config on
chkconfig cloud-final on
Ubuntu 16.04/Ubuntu 18.04
- Run the following commands:
systemctl status cloud-init-local
systemctl status cloud-config
systemctl status cloud-final
As shown in the following figure, enable indicates that automatic startup has been enabled for the service.
- If automatic startup is not enabled for Cloud-Init services, run the following commands to enable it:
systemctl enable cloud-init-local
systemctl enable cloud-config
systemctl enable cloud-final
- Run the following commands to start Cloud-Init services:
systemctl start cloud-init-local
systemctl start cloud-init
systemctl start cloud-config
systemctl start cloud-final
- Run the commands in 1 to check whether the Cloud-Init status is active.
Ubuntu 14.04
Run the following commands:
initctl status cloud-init
initctl status cloud-init-local
initctl status cloud-config
initctl status cloud-final
If Cloud-Init installation information is displayed, the installation is successful.
[root@ubuntu:~]# initctl status cloud-init cloud-init stop/waiting [root@ubuntu:~]# initctl status cloud-init-local cloud-init-local stop/waiting [root@ubuntu:~]# initctl status cloud-config cloud-config stop/waiting [root@ubuntu:~]# initctl status cloud-final cloud-final stop/waiting
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