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 Management Console
- 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.
- Use the image file to create a private image on the IMS console.
- Log in to the management console and click Image Management Service under Compute.
- On the Image Management Service page, click Create Image.
- Set Type to Import Image and Image Type to System disk image.
- Select the image file uploaded to your OBS bucket.
- Set Boot Mode to UEFI.
- Use the private image to 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 management 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.
- 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" } ]
- Use the updated image to create an ECS as the target server.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.