Create a custom image

Updated at:

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. You can prevent this by using the workarounds described in How do I prevent a custom image from being deleted when I unsubscribe from or release an instance?.

  • 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 or is stopped due to overdue payments, its data is retained for 15 days. During this period, you can still create a custom image from the instance. To access and use the instance again, renew it.

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

Can I still create a custom image after a Simple Application Server instance expires?

Yes. You can still create a custom image after a Simple Application Server instance expires or is stopped due to overdue payments. The instance data is retained for 15 days, and you can create custom images during this period.

Does Simple Application Server support exporting custom images?

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

  1. Share the image with ECS. Share a custom image to ECS.

  2. On the Share Image tab in the ECS console, copy the image. Copy a custom image.

  3. On the Custom Images tab in the ECS console, export the image. Export a custom image.

    Note

    Due to copyright restrictions, you cannot export custom images created from application images or Windows Server images.

Does Simple Application Server support uploading or importing local images?

Simple Application Server does not support uploading local images or importing custom images from external sources. Custom images can only be created from existing Simple Application Server instances. If you need to use local images, use Elastic Compute Service (ECS), which supports importing custom images.

How do I prevent a custom image from being deleted when I unsubscribe from or release an instance?

After you unsubscribe from (request a refund for) or release a Simple Application Server instance, its custom images are deleted at the same time. To retain a custom image, share it with Elastic Compute Service (ECS) and then copy it as an independent custom image in the ECS console. For more information, see Share an image with ECS and Copy a custom image in the ECS console. Alternatively, copy the image to another region in the Simple Application Server console. For more information, see Copy a custom image.

Related operations

After creating a custom image, you can: