All Products
Document Center

Elastic Compute Service:Create a custom image from a snapshot

Last Updated:Apr 12, 2024

You can create a custom image from a snapshot that contains the operating system and data of an Elastic Compute Service (ECS) instance. Then, you can use the custom image to create identical ECS instances. This topic describes how to use a system disk snapshot to create a custom image.



Before you create custom images from snapshots, take note of the items described in the following table.




A custom image resides in the same region as the snapshot from which the image was created. For information about how to use images across regions, see Copy a custom image.


You are charged for snapshots. For information about the billing of snapshots, see Snapshots.


  • Only system disk snapshots can be used to create custom images, and data disk snapshots cannot.

  • Both encrypted and unencrypted snapshots can be used to create custom images.

  • Shared snapshots cannot be used to create custom images.

  • If the ECS instance from which a snapshot was created expires or is released, the custom images created from the snapshot and the ECS instance created from the images are not affected.

ECS instance

For ECS instances that are created from custom images, take note of the following items:


This section describes how to create a custom image from a system disk snapshot on the Snapshots page in the ECS console. You can also go to the Images page (Instances & Images > Images) or go to the Snapshot tab of the Instance Details page from the Instance page (Instances & Images > Instances) to create a custom image from a system disk snapshot.

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Storage & Snapshots > Snapshots.

  3. In the top navigation bar, select the region and resource group to which the resource belongs. 地域

  4. On the Disk Snapshots tab, find a snapshot whose Disk Type is System Disk and click Create Custom Image in the Actions column.

  5. In the Create Custom Image dialog box, configure the parameters that are described in the following table.




    Image Name

    Enter a name for the custom image.


    Image Check

    Optional. The image check feature checks whether imported custom images are valid and whether the images can be used to create full-featured ECS instances.

    By default, Check After Creation is selected, and the image check feature checks the custom image immediately after the image is created. After the image is checked, you view the check results in the Check Results column corresponding to the image on the Custom Images tab and resolve issues by using the repair feature of Image Builder or based on the solutions that are provided in the check results. For information about check items and solutions to image issues, see Overview.


    Only specific operating systems support the image check feature. For information about the operating systems that do not support the image check feature, see Operating system limits for image check.


    Image Family

    Optional. Select an image family.

    Custom images that belong to an image family can be deprecated or restored to allow seamless image updates and rollbacks.


    Snapshot Details

    Optional. Select increaseData Disk, click increases, and then select the ID of a data disk snapshot.

    • If you leave the Snapshot ID field empty, an empty data disk will be created when you use the custom image to create an ECS instance. By default, the data disk is 5 GiB in size.

    • If you select the ID of a data disk snapshot, a data disk is created from the data disk snapshot and has the same size as the snapshot when you use the custom image to create an ECS instance.


    Image Description

    Optional. Enter a description for the custom image.



    Select a tag.

    • The Tag parameter is optional in most cases.

    • The Tag parameter is required when you log on as a Resource Access Management (RAM) user and a policy attached to the RAM user requires that tags be added. In this case, if you do not specify the Tag parameter, an error is reported indicating insufficient permissions.


    Resource Group

    Optional. Select a resource group to manage the custom image based on the usage and permissions.

    Resource groups

    Automatic release time has been set for the selected snapshot. To ensure that the snapshot can be automatically released, you must delete the associated image before the snapshot expires. Otherwise, the snapshot cannot be released and will continue to incur charges.

    If a retention period is configured for the selected snapshot, select this option.

    Create a snapshot of a disk

  6. In the message that appears, click OK.