You can export custom images for on-premise testing or Apsara stack environments.

Note
  • Exporting custom images is a time-consuming task, so you need to wait patiently. The duration of exporting depends on the size of the image file and the number of export tasks in the queue.
  • The exported images are stored in your OSS bucket. You are billed for the OSS storage and download traffic. For more information, see OSS Billing items.

Limitations

Currently, the image export function has the following limitations:

  • You cannot export the custom images that are created by a system disk snapshot from the marketplace.
  • You can export the custom images that contain four snapshots of data disks at most, and for a single data disk, the maximum volume must be no greater than 500 GiB.
  • When using exported images to create an instance by using the wizard, you need to confirm that the file device recorded in /etc/fstab corresponds to the exported data disk snapshot information.

Prerequisites

Before exporting a custom image, you need to do the following:

  • Open a ticket to activate the image export feature, and describe the use cases of the exported images in the ticket.
  • Activate OSS and make sure that the region where your custom images are located has an available OSS bucket. For more information, see OSS Create a bucket.

Procedure

To export a custom image in the ECS console, follow these steps:

  1. Log on to the ECS Console.
  2. In the left-side navigation pane, choose Snapshot & Images > Images.
  3. Select a region.
  4. Find the custom image you want to export. In the Action column, click Export Image.
    1. In the Export Image dialog box, click Confirm Address shown in the figure below.

    2. In the Cloud Resource Access Authorization window, click Confirm Authorization Policy to allow ECS to access your OSS resources.
  5. Return to the ECS Console homepage. In the Actions column of the Images page, click Export Image again.
  6. In the Export Image dialog box:
    • Select the OSS bucket in the specified region.
    • Set the prefix of the object name of the exported image. For example, if you set Demo as the prefix, then the exported image file displayed in the OSS bucket is named Demo-[automatically generated file name].
  7. Click OK to export the image.
  8. (Optional) Cancel the image export task. Before the task is completed, you can go to the Manage Tasks page in the ECS Console, find the relevant task in the specified region and cancel the task.

You can also use the ECS APIs ExportImage and CancelTask to perform the above operations.

Next steps

  1. Log on to the OSS Console to query the export result.
    Note When an exported custom image contains a data disk snapshot, multiple files appear in your OSS. The file name with system indicates a system disk shapshot and the file name with data indicates a data disk snapshot. A data disk snapshot has an identifier corresponding to the data disk, which is the mount point of the data disk, such as xvdb or xvdc.
  2. After the custom image is exported successful, download the object and then download the custom image file. The format of the image file is defaulted to RAW.