All Products
Search
Document Center

Elastic Compute Service:Create an ECS instance by using a custom image

Last Updated:Feb 02, 2024

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 with the same operating system, applications, and data. This helps improve O&M efficiency of your business on the cloud.

Prerequisites

A custom image exists in the account and region where you want to create an instance.

If no custom images exist in the account or region where you want to create an instance, you can import, create, copy, or share a custom image to the account or region in the following scenarios.

Scenario

Solution

You have an image on an on-premises device.

Import the on-premises image to Alibaba Cloud as a custom image. For more information, see Import an image.

You have a custom image in another region.

Copy the custom image to the region where you want to create an instance. For more information, see Copy a custom image.

You have a custom image in another account.

Share the custom image with the account in which you want to create an instance. For more information, see Share a custom image.

You have an instance or snapshot from which you can create a custom image.

Procedure

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Instances & Images > Images.

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

  4. Click the Custom Images or Shared Images tab based on the image type that you want to use.

  5. Find the image that you want to use. Click Create Instance in the Actions column.

  6. The region and the image are automatically specified. Configure other parameters, such as Billing Method, Instance Type, and System Disk, based on your business requirements.

    For more information, see Create an instance by using the wizard.

What to do next

  • If you add data disks when you create the instance, initialize the data disks to use them. For more information, see Initialize a data disk.

  • If the custom image that you select contains one or more data disk snapshots, the system automatically creates the same number of data disks based on the snapshots. After you create an ECS instance, log on to the ECS instance to mount the disks . Then, you can use the disks without the need to initialize them. For more information, see Initialization overview.