Help Center/ Server Migration Service/ FAQs/ Known Errors and Solutions/ SMS.6563 File initrd or initramfs of the xxxx version Not Found Under /boot Directory. For solution, see SMS API Reference
Updated on 2024-11-29 GMT+08:00

SMS.6563 File initrd or initramfs of the xxxx version Not Found Under /boot Directory. For solution, see SMS API Reference

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. The servers can be started without the initrd or initramfs image file. However, 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 drivers required for starting the kernel.

Different OSs use different image files. For example, Ubuntu uses Initrd and the filename format is initrd.img-xxx, and some CentOS distributions use Initramfs and the filename format is initramfs-xxx.img.

Solution

The following operations will generate an image file that matches the kernel file on the source server. This may affect the OS on the source server.

OS

Configuration

Reference

CentOS and EulerOS

CentOS 7.0 is used as an example in the following.

  1. In the /etc/dracut.conf file, add VirtIO drivers to add_drivers, including virtio_blk, virtio_scsi, virtio_net, virtio_pci, virtio_ring, and virtio. Separate driver names with spaces.
  2. Save and exit the /etc/dracut.conf file and run the dracut -f command to generate initrd again.

CentOS and EulerOS

Ubuntu and Debian

  1. In the /etc/initramfs-tools/modules file, add VirtIO drivers, including virtio_blk, virtio_scsi, virtio_net, virtio_pci, virtio_ring, and virtio. Separate driver names with spaces.
  2. Save and exit the /etc/initramfs-tools/modules file and run the update-initramfs -u command to generate initrd again.

Ubuntu and Debian

SUSE and openSUSE

If the OS version is earlier than SUSE 12 SP1 or openSUSE 13:

  1. In the /etc/sysconfig/kernel file, add VirtIO drivers to INITRD_MODULES="". VirtIO drivers include virtio_blk, virtio_scsi, virtio_net, virtio_pci, virtio_ring, and virtio. Separate driver names with spaces.
  2. Run the mkinitrd command to generate initrd again.

SUSE and openSUSE (Earlier than SUSE 12 SP1 or openSUSE 13)

If the OS version is SUSE 12 SP1:

  1. In the /etc/dracut.conf file, add VirtIO drivers to add_drivers, including virtio_blk, virtio_scsi, virtio_net, virtio_pci, virtio_ring, and virtio. Separate driver names with spaces.
  2. Run the dracut -f command to generate initrd again.

SUSE and openSUSE (SUSE 12 SP1)

If the OS version is later than SUSE 12 SP1 or openSUSE 13:

  1. In the /etc/dracut.conf file, add VirtIO drivers to add_drivers, including virtio_blk, virtio_scsi, virtio_net, virtio_pci, virtio_ring, and virtio. Separate driver names with spaces.
  2. Save and exit the /etc/dracut.conf file and run the dracut -f command to generate initrd again.

SUSE and openSUSE (Later than SUSE 12 SP1 or openSUSE 13)