Updated on 2025-03-31 GMT+08:00

Checking the Cloud-Init Status

SLES 11 SP4

  1. Run the yast command and select System.
  2. Press Tab and select System Services (Runlevel).
  3. 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

  1. 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.

  2. 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

  1. 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

  2. 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

  3. 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

  4. Run the commands in 1 to check whether the Cloud-Init status is active.

EulerOS/OpenEuler

  1. 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

  2. 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

  3. 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

  4. Run the commands in 1 to check whether the Cloud-Init status is active.

RHEL 6/CentOS 6/Oracle Linux 6

  1. Run the following command:

    chkconfig --list | grep cloud

    As shown in the following figure, on indicates that automatic startup has been enabled for the service.

  2. If automatic startup is not enabled for Cloud-Init services, run the following commands to enable it:

    chkconfig cloud-init on

    chkconfig cloud-init-local on

    chkconfig cloud-config on

    chkconfig cloud-final on

Ubuntu 16.04/Ubuntu 18.04

  1. Run the following commands:

    systemctl status cloud-init

    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.

  2. If automatic startup is not enabled for Cloud-Init services, run the following commands to enable it:

    systemctl enable cloud-init

    systemctl enable cloud-init-local

    systemctl enable cloud-config

    systemctl enable cloud-final

  3. 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

  4. 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