Agent安装与启动 [ d /sys/firmware/efi ] && echo UEFI echo BIOS 若输出为bios,则是以bios方式启动;若输出为uefi,则是以uefi方式启动。 2. 执行如下命令,检查 /usr/lib/grub/目录下是否有i386pc文件夹。 [ d /sys/firmware/efi ] && echo UEFI echo BIOS 如没有i386pc文件夹,请执行步骤3;如有i386pc文件夹,执行命令 ls /usr/lib/grub/i386pc,检查i386pc文件夹是否为空。 3. 在源端云平台或天翼云平台,使用公共镜像,创建一台与源端服务器操作系统、系统版本相同的临时服务器。 4. 登录临时服务器,将临时服务器 /usr/lib/grub/ 目录下的整个i386pc文件夹 ,传输到源端服务器的 /usr/lib/grub/ 目录下(如源端服务器存在空的i386pc文件夹,请直接覆盖)。您可以使用 SCP,Rsync等方式进行传输。SCP传输示例: scp r /usr/lib/grub/i386pc username@xx.xx.xx.xx:/usr/lib/grub/ 5. 登录源端服务器,确认 /usr/lib/grub/ 目录下,已存在传输过来的i386pc文件夹,重新启动迁移Agent。 Linux操作系统,启动Agent时,提示:SMS.6563:File initrd or initramfs of the xxxx version not found under /boot directory. For solution, see SMS API Reference. Linux系统,启动迁移Agent时,出现提示:SMS.6563:File initrd or initramfs of the xxxx version not found under /boot directory. For solution, see SMS API Reference。出现该提示说明源端服务器缺少initrd或initramfs镜像文件。因部分云服务平台的服务器系统使用了定制内核,启动时使用了特定机制,不需要initrd或initramfs镜像文件也能正常启动。但天翼云平台服务器,缺少initrd或initramfs镜像文件,会导致启动失败。Initrd和Initramfs镜像文件作用基本相同,都是为系统提供内核启动需要的驱动。不同操作系统,使用的镜像文件不同,例如:Ubuntu操作系统使用的是Initrd镜像文件,格式为initrd.imgxxx,而部分Centos操作系统使用的是Initramfs镜像文件,格式为initramfsxxx.img。请在源端安装更新相应的镜像文件,重新启动迁移agent。