This topic describes how to create a custom image to store the data of a simple application server. The custom image can be shared with Elastic Compute Service (ECS) or used to create simple application servers that have the same configurations.
Prerequisites
A system disk snapshot of a simple application server is created. For more information, see Manage snapshots.
If you need the data on the data disk of a simple application server when you create a custom image, create a snapshot for the data disk first.
Background information
When you create a custom image, take note of the following items:
The custom image and the source simple application server must reside in the same region.
The maximum number of custom images that can be retained in an Alibaba Cloud account is triple the number of simple application servers that you maintain in the account. The number of custom images cannot be greater than 15.
You can directly create a custom image only based on the system disk snapshot of a simple application server. If you want a custom image to contain the data on the data disk of the simple application server, you must select a data disk snapshot when you create the custom image.
If a simple application server is released due to expiration or refunds, the custom images that are created based on a snapshot of the server are also released.
If you reset a simple application sever by changing the OS or image of the server, the disk data on the server is deleted. Back up your data before you change the OS or image of a server.
Procedure
- Log on to the Simple Application Server console.
In the left-side navigation pane, click Snapshots.
Find the system disk snapshot that you want to use to create a custom image and click Create Custom Image in the Actions column.
In the Create a custom image dialog box, configure parameters based on your business requirements.
The following table describes the parameters.
Parameter
Description
Snapshot Name
The name of the system disk snapshot. This parameter value is automatically generated.
Custom Image Name
The name of the custom image. The name is 2 to 128 characters in length and can contain special characteristics periods (.), underscores (_), hyphens (-), and colons (:). The name cannot start with a special character or a digit.
Custom Image Description
The description of the custom image. The description is 2 to 256 characters in length and cannot start with
http://
orhttps://
.Data Disk Snapshot
The snapshot of the data disk. This parameter is optional. If you want the custom image to contain the data on the data disk, select a data disk snapshot from the drop-down list. Otherwise, the custom image contains only the data on the system disk.
Click OK, and then click Go to View.
On the Image page, you can view the custom image that you created.
What to do next
You can perform the following operations after the custom image is created:
Share the image with ECS to back up data or create ECS instances. For more information, see Share a custom image.
Create new simple application servers based on the custom image. For more information, see Use a custom image to create one or more simple application servers.
Copy the custom image to another region to migrate the data on the server. For more information, see Copy a custom image.