Create a custom image

更新时间:
复制 MD 格式

You can create a custom image to back up a Simple Application Server instance. Once created, you can share it with ECS or use it to create new instances with the same configurations.

Precautions

  • A custom image is created in the same region as the source Simple Application Server instance.

  • You can only create a custom image directly from a system disk snapshot. If you want the custom image to include data from a data disk, you must select the corresponding data disk snapshot when creating the image.

  • When a Simple Application Server instance is released due to expiration or a refund, its associated custom images are also released.

  • Resetting the operating system or replacing the image of an instance erases all disk data. Back up your data before performing these actions.

Limitations

  • The number of custom images you can create is limited to three times the number of your Simple Application Server instances, up to a maximum of 15.

  • After an instance expires, its data is retained for 15 days. During this period, you cannot create an image from the instance. Renew the instance to restore it and re-enable image creation.

Billing

Creating custom images is free of charge.

Procedure

  1. Choose a method to create a custom image based on your needs.

    From an instance

    To create a custom image that includes data from both the system disk and data disks, create it directly from the instance.

    1. Go to the Servers page in the Simple Application Server console.

    2. On the instance card, choose More > Create Custom Image.

      You can also click the instance ID on the instance card. On the Server Overview tab, in the Basic Information section, click Create Custom Image next to Image Information.

    3. In the Create Custom Image dialog box, configure the parameters.

      Parameter

      Description

      Name

      Enter a unique name for the custom image. The name must be 2 to 128 characters long. It cannot start with a special character or a digit but can contain periods (.), underscores (_), hyphens (-), and colons (:).

      Description

      Enter a description for the custom image. The description must be 2 to 256 characters long and cannot start with http:// or https://.

    From a snapshot

    Use this method if you only need to create a custom image from the system disk.

    1. If you do not have a system disk snapshot, create one first. For more information, see Create a snapshot.

      If you also want to include a data disk in the custom image, you must create a snapshot for the data disk as well.

    2. In the left-side navigation pane, click Snapshots.

    3. Find the system disk snapshot of the instance, and in the Actions column, click Create Custom Image.

    4. In the Create Custom Image dialog box, configure the parameters.

      Parameter

      Description

      Name (Required)

      Enter a unique name for the custom image. The name must be 2 to 128 characters long. It cannot start with a special character or a digit but can contain periods (.), underscores (_), hyphens (-), and colons (:).

      Description (Required)

      Enter a description for the custom image. The description must be 2 to 256 characters long and cannot start with http:// or https://.

      Data Disk Snapshot (Optional)

      Optional. If you want the custom image to include data from a data disk, select the corresponding data disk snapshot. If you do not select a data disk snapshot, the custom image contains only system disk data by default.

  2. Click OK.

  3. In the left-side navigation pane, click Image to view your custom image.

FAQ

Creating images from an expired instance

No. You cannot create an image from an expired instance because it is inaccessible. However, the instance data is retained for 15 days. If you renew the instance, you can access it again and create images.

Exporting custom images

You cannot directly export custom images from Simple Application Server. To export an image, follow these steps:

  1. Share the simple application server image with ECS. For more information, see Share custom image to ECS.

  2. On the Share Image tab in the ECS console, you can copy the image to create a custom image. For more information, see Copy a custom image.

  3. You can export the custom image from the Custom Images tab in the ECS console. For more information, see Export a custom image.

    Note

    Due to image copyright restrictions, you cannot export custom images created from application images or images of the Windows Server operating system.

Related operations

After creating a custom image, you can: