An Elastic Compute Service (ECS) image is a basic template used to create ECS instances and contains the operating system and pre-configuration data that are required to start and run an instance. When you create an ECS instance, you must select an image. The image can contain only system disk data or both system and data disk data, and must be compatible with your instance type. You can use images provided by Alibaba Cloud or other developers, or use custom images or images shared with you. This topic describes how to select an image when you create an ECS instance, image classification, and usage guidelines.
Select an image
When you select an image to create an ECS instance, consider the following factors:
Region for business deployment
Images are region-specific resources. Select the region for your business deployment to determine the scope of available images.
Alibaba Cloud releases public images to all regions.
Alibaba Cloud Marketplace images and community images are available only in the regions in which the images are released.
Custom images are available in the regions in which you create or import the images, and can be copied to other regions.
Operating system
Select an operating system based on your technology stack, team capabilities, and compliance requirements. For more information, see Overview.
Windows Server: provides a user-friendly interface, good usability, and extensive software support. Windows Server is suitable for running Windows applications, enterprise web services, databases such as SQL Server, and file and print services.
Linux or Unix
Alibaba Cloud Linux: developed by Alibaba Cloud and compatible with the CentOS ecosystem.
Anolis OS: an open source operating system.
CentOS: an open source distribution of Red Hat Enterprise Linux (RHEL) that is no longer maintained and not recommended.
RHEL: an operating system developed by Red Hat for enterprise applications with comprehensive features. You are charged if you use RHEL.
Instance type compatibility
Images explicitly provide system architecture information, such as 32-bit or 64-bit, memory size requirements, and boot program. This helps you check whether an instance type meets the requirements.
System architecture
Suitable memory size
Instance type requirement
32-bit
Less than 4 GiB of memory
Memory: less than or equal to 4 GiB.
CPU cores: up to 4 cores for Windows.
64-bit
At least 4 GiB of memory
Memory: more than 4 GiB.
For information about boot modes that are suitable for images and instance types, see Instance boot modes.
Specific image requirements
If you want a clean system image, select a public image provided by Alibaba Cloud. If your business requires a custom image or you want to package the entire business into an image, select an Alibaba Cloud Marketplace image or create a custom image.
Fees for operating system licenses used in images
When you use a paid commercial image or create an ECS instance from an image based on a paid commercial image, you are charged for operating system license fees. Proceed with caution. For information about image billing, see Images.
Image types
When you use images to create instances, Alibaba Cloud technical support varies based on the image type. The following table describes the types of images and related technical support.
Image type | Description | Technical support |
Operating system images officially provided by Alibaba Cloud, all of which are licensed and have passed Alibaba Cloud security and stability tests. Public images, including Windows Server images and major Linux images, are provided. The images help you quickly build basic environments. |
| |
Images that you create from ECS instances or snapshots. Custom images are suitable for deploying specific configurations or environments. | For the custom images that are derived from public images, Alibaba Cloud provides the same technical support that is provided for public images. For imported images:
| |
Images shared with you by other Alibaba Cloud accounts. Shared images are suitable for team collaboration scenarios. | Alibaba Cloud does not provide technical support. Contact the Alibaba Cloud accounts who shared the images for technical support. | |
Alibaba Cloud Marketplace images contain operating systems and pre-installed software and are thoroughly tested by the providers to ensure security and stability. Alibaba Cloud Marketplace images are classified into the following types based on the provider:
Alibaba Cloud Marketplace images are suitable for deploying specific applications. |
| |
Community images are published by Alibaba Cloud users for public use. | Alibaba Cloud does not provide technical support. |
The information in the Technical support column is valid only before the end of life (EOL) of images. For information about how to obtain technical support after the EOL of an image, see Operating system lifecycle.
Alibaba Cloud regularly updates public image versions to provide new features and security patches updates. When you select a public image on the ECS instance buy page, the latest version of the image is provided. To create an earlier version of an image, call the RunInstances operation and specify the image ID in a request.
Alibaba Cloud regularly synchronizes images from official open source communities or operating system vendors to Alibaba Cloud image site. You can update new features and security patches as needed.
Security is a shared responsibility between Alibaba Cloud and customers. Alibaba Cloud implements cloud platform security, involving hardware, software, and networks. Customers implement ECS instance security, involving managing the operating systems (installing updates and security patches), installing application software packages or tools on the instances, and configuring security groups that Alibaba Cloud provides. For more information, see ECS instance security.
Relationships between custom images, instances, and snapshots
An image serves as a template that is used to create and start ECS instances. An ECS instance is a virtual machine created by using an image and other parameters. Snapshots are point-in-time backups of ECS instance data.
Understanding the relationship between custom images, instances, and snapshots helps you better use custom images. The following figure shows that a snapshot is a data backup of an instance at a specific point in time. Both the ECS 1 instance and Snapshot can be used to create a custom image, and you can use the custom image to create the ECS 2 instance.
Limits
Item | Limit | Method to raise limits |
The maximum number of custom images that an Alibaba Cloud account can retain per region | You can view the quota based on the quota ID | |
The maximum number of accounts with which you can share a custom image | You can view the quota based on the quota ID | |
Images supported by instance types | Instance types with 4 GiB of memory or more do not support 32-bit images. | N/A |
Usage
Search for images
To quickly find an image among public images, Alibaba Cloud Marketplace images, custom images, and shared images to create ECS instances, follow the procedure described in Find an image.
Use custom images
Alibaba Cloud provides custom images to help you create custom images. For more information about custom images, see Overview. The following table describes the basic operations on custom images.
Operation
Description
References
Create an image
You can create a custom image from an instance or a snapshot to copy the system environment. This eliminates the need for repeated configurations.
Import an image
You can import images from your on-premises device or from other cloud service providers to Alibaba Cloud to generate custom images.
Update an image
You can use CloudOps Orchestration Service (OOS) to update a custom image to update the software and configurations of an ECS instance that uses the custom image.
Copy an image
You can copy images to deploy ECS instances across regions or change the encryption status of encrypted and unencrypted images in the same region or across regions.
Share an image
You can share a custom image that you created to other Alibaba Cloud accounts. The Alibaba Cloud accounts can create instances from the image that you shared.
Export an image
You can export a custom image that you created to an OSS bucket and then download the image to your on-premises device.
Modify image information
To facilitate custom image management, you can change the name, description, Non-Volatile Memory Express (NVMe) drive settings, and boot mode of a custom image based on your business requirements.
Delete an image
You can delete a custom image that you no longer need.
Use Image Builder
Image Builder provides a one-stop solution to allow you to configure custom image content, repair and test images, distribute images across regions, and share images across accounts. Image Builder defines a series of tasks during the image building process in an image template and executes the image building task. In the image template, you can specify the source image and image components and determine whether to repair an image, enable cross-region distribution, and share images cross accounts.