How Do I Fix Error "SMS.6563: File initrd or initramfs of the xxxx version not found under /boot directory. For solution, see SMS API Reference." When I Start the Agent on a Linux Source Server?
Symptom
When you started the Agent installed on a Linux source server, you received error message "SMS.6563: File initrd or initramfs of the xxxx version not found under /boot directory. For solution, see SMS API Reference."

Possible Causes
The source server does not have the initrd or initramfs image file. Servers on some cloud platforms use custom kernels and a specific mechanism is used during the startup. The servers can be started without the initrd or initramfs image file. Servers on Huawei Cloud cannot be started without the initrd or initramfs image file.
The functions of Initrd and Initramfs are basically the same. They both provide the driver required for starting the kernel.
Different OSs use different image files. For example, Ubuntu uses Initrd with name in the format of initrd.img-xxx, and some CentOS distributions use Initramfs with name in the format of initramfs-xxx.img.
Procedure
This solution uses Ubuntu as an example.
- Run the following command on the source server to check whether all required boot files exist in the /boot directory:
#ls /boot
- If the following command output is displayed, the required boot files exist which include the kernel file kernel vmlinuz-xxx and the image file initrd.img-xxx of the corresponding version. Figure 1 Complete startup files
- If the following command output is displayed, the source server has the kernel file kernel vmlinuz-xxx and does not have the image file initrd.img-xxx of the corresponding version. Figure 2 Incomplete startup files
- If the following command output is displayed, the required boot files exist which include the kernel file kernel vmlinuz-xxx and the image file initrd.img-xxx of the corresponding version.
- Run the following command to check whether the component for updating the initrd image file is available:
#type update-initramfs
- If update-initramfs is displayed, the component is available. Go to step 4.

- If not found is displayed, the component is missing. Go to the next step.

- If update-initramfs is displayed, the component is available. Go to step 4.
- Run the following command to install the update component of the initrd image file:
#apt install initramfs-tools

Enter y to complete the installation. Run the command in step 2 again to check whether the installation is successful.
- Run the following command to update the initrd image file to the corresponding version, where xxxxx indicates the major version number, xxxx indicates the minor version number, and xxx indicates the kernel source:
#update-initramfs –c –k xxxxx-xxxx-xxx
As shown in the following figure, 5.4.0-1067-gcp is used as an example.

- Run the following command to go to the /boot directory and check that the initrd image file of the required version is added: Restart the Agent.
#ls /boot

Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.