Registering an External Image File as a Private Image

Scenarios

This section describes how to register an image file uploaded to the OBS bucket as a private image.

Procedure

  1. Log in to the management console.
  2. Under Computing, click Image Management Service.

    The IMS console is displayed.

  3. Click Create Image in the upper right corner.
  4. Configure the following information:

    Table 1 and Table 2 list the parameters in the Image Type and Source and Image Information areas, respectively.

    Table 1 Image type and source

    Parameter

    Description

    Region

    Select a region close to your business.

    If you select an incorrect region here, you can replicate the created image to your desired region. For details, see Replicating an Image Across Regions.

    Type

    Select System disk image.

    Source

    Select Image File for Source. Select the bucket storing the image file from the list and then select the image file.

    Fast Create

    This parameter is available only when you select a ZVHD2 or RAW image file.

    This function enables fast image creation and supports import of large files (no larger than 1 TB) on condition that the files to be uploaded must be converted to the ZVHD2 or RAW format and optimized. If you have a file that meets the requirements, select Enable Fast Create and select the confirmation information following Image File Preparation.

    NOTE:

    For how to convert image file formats and generate bitmap files, see Quickly Importing an Image File.

    Table 2 Image information

    Parameter

    Description

    Enable automatic configuration

    If you select this option, the system will automatically check and optimize the image file. For details, see What Changes Will Be Made to an Image File Used for Registering a Private Image?

    Function

    Specifies whether the image is used to create ECSs or BMSs. The value can be ECS system disk image or BMS system disk image. This section uses ECS system disk image as an example.

    Architecture

    Specify Architecture. Select x86 or ARM.

    • If the system detects an architecture type different from that you set, the architecture type detected by the system prevails.
    • If the system fails to detect the architecture type, the architecture type you set prevails.

    Boot Mode

    This parameter is optional. The value can be BIOS or UEFI. For details about the differences between the two, see How Is BIOS Different from UEFI?

    For details about the OSs that support the UEFI boot mode, see OSs Supporting UEFI Boot Mode.

    The boot mode must be the same as that of the image file. This is for you to confirm the boot mode in the image file. After you select the correct boot mode, the boot mode of the image file will be configured at the background. Select a correct boot mode. Otherwise, ECSs created using the image cannot be started.

    NOTE:

    If the image file uses the ARM architecture, only the UEFI mode is supported.

    OS

    To ensure that the image can be created and used properly, select an OS consistent with that in the image file. If you do not select an OS, the system automatically identifies the OS in the image file.

    NOTE:
    • If the system detects that the image file OS is different from the one you selected, the OS detected by the system will prevail.
    • If the system cannot detect the OS in the image file, the OS you selected will prevail.
    • If the OS you selected or identified by the system is inconsistent with the actual one, ECSs created from the image file may be affected.

    System Disk (GB)

    Specifies the system disk capacity. Ensure that the value is greater than or equal to the system disk size in the image file.

    Data Disk (GB)

    You can also add data disks to the image. You need to obtain the image file containing data disks in advance. This function is used to migrate VMs and data disks from other platforms to the current platform.

    To add data disks, click , set the data disk size, and click Select Image File. In the displayed dialog box, select the target bucket and then the target image file containing the data disk.

    A maximum of three data disks can be added.

    Name

    Set a name for the image.

    Encryption

    (Optional) If you want to encrypt the image, select KMS encryption and select the key to be used from the key list. After you select KMS encryption, the system will create a default master private key ims/default for you. You can also select a private key from the private key list.

    For how to encrypt an image, see Creating Encrypted Images.

    Enterprise Project

    Select an enterprise project from the drop-down list. This parameter is available only when you have enabled the enterprise project function, or your account is an enterprise account.

    An enterprise project provides a cloud resource management mode, in which cloud resources and members are centrally managed by project.

    Tag

    (Optional) Set a tag key and a tag value for the image to easily identify and manage it.

    Description

    (Optional) Enter description of the image.

  5. Click Next and confirm the image specifications. Select I have read and agree to the Statement of Commitment of Image Creation and Huawei Image Disclaimer, and click Submit.
  6. Go back to the Private Images page. The image is successfully registered when its status becomes Normal.

    The time required for image registration is determined by the image file size. You may need to wait a long period of time for the image file to be successfully registered as a private image.

    If you add data disks during image creation, a system disk image and data disk images will be generated. The number of data disk images depends on the number of data disks you add (a maximum of 3).