Help Center> Server Migration Service> FAQ> Agent Installation and Startup> How Do I Fix Error "SMS.6562: component i386-pc not found on source server. For solution, see SMS API Reference." When I Start the Agent on a Linux Source Server?

How Do I Fix Error "SMS.6562: component i386-pc not found on source server. 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.6562: component i386-pc not found on source server. For solution, see SMS API Reference."

Possible Causes

HUAWEI CLOUD requires that component i386-pc must be available on servers booted in BIOS mode for installing GRUB. The error message indicates that the source server is started in BIOS mode but does not have component i386-pc. In this case, during the target server configuration by the Agent, GRUB will fail to be installed. As a result, this error is reported during the configuration.

The i386-pc component is located is in the /usr/lib/grub/i386-pc directory.

Procedure

  1. Run the following command to check whether the source server is booted in BIOS mode:

    #[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
    • If the output is bios, the server is started in BIOS mode.
    • If the output is uefi, the server is booted in UEFI mode.

  2. Run the following command to check whether the i386-pc folder exists in the /usr/lib/grub/ directory:

    #ls /usr/lib/grub
    • If the i386-pc folder does not exist, go to step 3.
    • If the i386-pc folder exists, run the following command to check whether the i386-pc folder is empty:
    #ls /usr/lib/grub/i386-pc

  3. On the source cloud platform or HUAWEI CLOUD, use a public image to create a temporary server that runs the same OS as the source server.
  4. Log in to the temporary server and transfer the i386-pc folder in the /usr/lib/grub/ directory on the temporary server to the /usr/lib/grub/ directory on the source server. If an empty i386-pc folder exists on the source server, overwrite it.

    You can use Secure Copy (SCP) or Rsync to transfer the folder. The following command uses SCP as an example:

    #scp -r /usr/lib/grub/i386-pc   username@xx.xx.xx.xx:/usr/lib/grub/

    • Replace username with the username of the source server.
    • Replace xx.xx.xx.xx with the IP address of the source server.
    • Modify the security group of the source server to allow access from the temporary server.

  5. Log in to the source server, check that the i386-pc folder exists in the /usr/lib/grub/ directory, and restart the Agent.