Updated on 2024-07-12 GMT+08:00

Exporting an Image

Scenarios

You can export a private image to a standard OBS bucket and then download it to your local PC.

Background

  • You can reproduce cloud servers and their running environments in on-promises clusters or private clouds by exporting their images from the cloud platform. The following figure shows the process of exporting an image.
    Figure 1 Exporting an image
  • The time required for exporting an image depends on the image size and the number of concurrent export tasks.
  • You can export images in ZVHD2, QCOW2, VMDK, VHD, or ZVHD format. The default format of a private image is ZVHD2. Images exported in different formats may vary in size.
  • If an image is larger than 128 GB, you can select Enable for Fast Export when exporting the image to an OBS bucket. The image will be exported as a ZVHD2 file. You can convert the image format after it is exported.

    is unavailable for encrypted images. To export an encrypted image, decrypt it first.

Constraints

  • An image can only be exported to a Standard bucket that is in the same region as the image.
  • The following private images cannot be exported:
    • Full-ECS images
    • ISO images
    • Private images created from an Ubuntu public image
  • The image size must be less than 1 TB. Images larger than 128 GB support only fast export.

Prerequisites

  • You have Administrator permissions for OBS.
  • An OBS bucket is available in the region where the private image is located.

    If no OBS bucket is available, create one by referring to Creating a Bucket. Select Standard for Storage Class.

You will be charged for storing exported images in the OBS bucket. For details, see OBS Pricing Details.

Procedure

  1. Access the IMS console.
    1. Log in to the management console.
    2. Under Compute, click Image Management Service.

      The IMS console is displayed.

  2. Locate the row that contains the image to be exported, click More in the Operation column and select Export.
  3. In the displayed Export Image dialog box, set the following parameters:
    • Fast Export: To export an image larger than 128 GB, you must enable fast export, and you cannot specify the format of the exported image (which can only be ZVHD2). After exporting the image, you can use qemu-img-hw to convert it to your desired format. For details, see Converting the Image Format Using qemu-img-hw.

      For details about differences between export and fast export, see Comparison Between Import and Fast Import, and Between Export and Fast Export.

    • Format: Select one from qcow2, vmdk, vhd, and zvhd as you need.
    • Name: Enter a name that is easy to identify.
    • Storage Path: Click to expand the bucket list and select an OBS bucket for storing the exported image.

      An image can only be exported to a Standard bucket that is in the same region as the image. So, only such buckets are available in the list.

  4. Click OK.

    You can view the image export progress above the private image list.

Follow-up Procedure

After the image is exported successfully, you can download it from the OBS bucket through the management console or OBS Browser+. For details, see Downloading a File.