Help Center/ Server Migration Service/ FAQs/ OS Compatibility and Migration Restrictions/ How Do I Resolve Error "Inconsistent firmware type. Source: UEFI, Target: BIOS" When I Create a Migration Task?
Updated on 2024-11-29 GMT+08:00

How Do I Resolve Error "Inconsistent firmware type. Source: UEFI, Target: BIOS" When I Create a Migration Task?

Symptom

When you created a migration task for a source server booted from UEFI, you selected a target server booted from BIOS, and the system reported this error.

Possible Causes

The target server uses a different boot mode from the source server. In this case, the target server cannot be launched after the migration. You must select a target server created from an image with UEFI configured.

SMS requires that the target server OS uses the same type of firmware as the source server OS.

  • If the source server uses BIOS, Huawei Cloud will automatically provide a public image with BIOS configured for you to create the target server. You can also use a private image configured with BIOS to create the target server.
  • If the source server uses UEFI, you need to use an image with UEFI configured to create the target server.

Solution Using the Console

  1. Obtain an image file with UEFI configured and upload the image file to your OBS bucket. If you already have such an image file stored in your bucket, go to 2.
  2. Use the image file to create a private image on the IMS console.

    1. Sign in to the console and choose Compute > Image Management Service.
    2. On the Image Management Service page, click Create Image.
    3. Set Type to Import Image and Image Type to System disk image.
    4. Select the image file uploaded to your OBS bucket.
    5. Set Boot Mode to UEFI.

  3. Use the private image created in 2to create an ECS as the target server.

    For details, see Creating a Windows System Disk Image from an External Image File or Creating a Linux System Disk Image from an External Image File.

Solution Using APIs

If changing the boot mode specified in an image through the console is not supported in the current region, you can call the API described here to change the value of hw_firmware_type to uefi.

  1. Call the API with the URI of PATCH /v2/cloudimages/{Image_id}.

    For details about how to call the API, see Updating Image Information.

    [
        {
            "op": "add",
            "path": "/hw_firmware_type",
            "value": "uefi"
        }
    ]

  2. Use the updated image to create an ECS as the target server.