This topic describes how to use a created or imported custom image, image copy, or shared image to quickly create Elastic Compute Service (ECS) instances that have the same operating system, applications, and data. This helps improve the O&M efficiency of your business in the cloud.
Prerequisite
A custom image exists in the account and region in which you want to create an instance.
Procedure
Log on to the ECS console.
In the left-side navigation pane, choose .
In the top navigation bar, select the region and resource group to which the resource belongs.
On the Custom Images or Shared Images tab, find the image that you want to use and click Create Instance in the Actions column.
The region and the image are automatically specified. Configure other parameters, such as Billing Method and Instance Type, based on your business requirements.
NoteIf the custom image that you selected contains one or more data disk snapshots, the same number of data disks are automatically created from the snapshots during the ECS instance creation.
For more information, see the "Parameters" section of the Create an instance on the Custom Launch tab topic.
What to do next
If you increase the capacity of an existing data disk when you create the ECS instance, you must log on to the instance to extend the partitions and file systems for the changes to take effect. For more information, see Extend the partitions and file systems of disks on a Linux instance and Extend the partitions and file systems of disks on Windows instances.
NoteIf you increase the system disk capacity and the cloud-init and growpart utilities are installed on the custom image, the root partition of the system disk automatically extends when the instance is created. For example, if you use a 20 GiB custom image on which the cloud-init and growpart utilities are installed to create an instance and you set the system disk size of the instance to 100 GiB, the root partition of the system disk automatically extends to 100 GiB when the instance is created. If the root partition fails to extend, resolve the issue based on the cause of the failure. For more information, see the I created an ECS instance from a custom image and specified a system disk capacity that is larger than the image size. However, the actual system disk capacity of the ECS instance is the same as the image size. What do I do? section of the "FAQ about images during instance creation" topic.
If you add new data disks when you create the instance, you must initialize the data disks before you can use them. For more information, see Initialize a data disk.