Image overview
An ECS image is a template for creating ECS instances. It contains the operating system (OS) and pre-configured data required to launch and run an instance. You must select an image when you create an ECS instance. The image must be compatible with your chosen instance type and can include a system disk, or a combination of a system disk and data disks. You can use images provided by Alibaba Cloud or other developers, create your own custom image, or use an image shared with you by another user. This topic explains how to choose an image, describes the different types of images available, and provides guides for common tasks.
How to choose an image
When you choose an image to create an ECS instance, consider the following factors:
-
Deployment region
Choose your deployment region first to narrow the available image options. Images are specific to a region.
-
Alibaba Cloud typically provides public images in all regions.
-
The availability of Marketplace and community images depends on the regions where their publishers release them.
-
Custom images are available in the region where you create or import them. You can also copy custom images to other regions.
-
-
Operating system
Select an OS based on your technology stack, team expertise, and compliance requirements. For more information, see Public images.
-
Windows Server: Offers a user-friendly interface, ease of use, and broad software support. It is suitable for running Windows applications, enterprise web services, databases such as SQL Server, and file and print services.
-
Linux and Unix distributions
-
Alibaba Cloud Linux: Developed by Alibaba Cloud and is compatible with the CentOS ecosystem.
-
Anolis OS: An open source operating system.
-
CentOS: An open source distribution of Red Hat Enterprise Linux (RHEL). CentOS is no longer maintained and is not recommended for new deployments.
-
Red Hat Enterprise Linux: An operating system developed by Red Hat for enterprise applications. It offers a comprehensive set of features and is a paid product.
-
-
-
Instance type compatibility
Images provide information about their system architecture (32-bit or 64-bit), memory requirements, and boot mode. Use this information to ensure the image is compatible with your selected instance type.
System architecture
Memory size
Instance requirements
32-bit
For memory under 4 GiB
-
Instance memory: 4 GiB or less.
-
CPU cores: A maximum of 4 cores for 32-bit Windows operating systems.
64-bit
For memory of 4 GiB or more
Instance memory: More than 4 GiB.
For more information about image and instance type compatibility with boot modes, see Instance boot modes.
-
-
Special image requirements
For a clean operating system, use a public image from Alibaba Cloud. If your business requires a specially configured environment, or if you want to bundle your application with the OS, consider using a Marketplace image or building your own custom image.
-
Image costs
Creating an ECS instance from a paid commercial image or from a custom image that is based on a paid commercial image incurs licensing fees. For more information, see Image billing.
Image types
Alibaba Cloud's technical support varies by the image type used to create an instance.
|
Image type |
Description |
Technical support |
|
Images that are provided and maintained by Alibaba Cloud. They are licensed and have passed rigorous security and stability tests. Public images include Windows Server and popular Linux distributions to help you quickly set up a basic environment. |
|
|
|
An image that you create from an existing instance or a snapshot. This is useful for deploying applications with specific configurations or for setting up a standardized environment. |
Custom images created from public images receive the same support as the source public image. For imported images, the support is as follows:
|
|
|
An image that another Alibaba Cloud account has shared with you. This is ideal for team collaboration. |
Alibaba Cloud does not provide technical support for shared images. Contact the account owner who shared the image. |
|
|
Images provided by Alibaba Cloud or third-party independent software vendors (ISVs). These images often include pre-installed software and are suitable for deploying specific applications. Marketplace images are classified into the following types based on the provider:
All Marketplace images are tested for security and stability by their publishers. |
|
|
|
An image that any Alibaba Cloud user has published for public use in the image community. |
Alibaba Cloud does not provide technical support for community images. |
-
The technical support described above depends on the image's OS being within its support lifecycle. For operating systems that have reached their End of Life (EOL), a different support policy applies. For more information, see OS lifecycle overview.
-
Alibaba Cloud regularly updates public images with new features and security patches. For more information, see Public image release notes. When you select a public image on the ECS instance buy page, the latest version is selected by default. To use an older version, you can call the RunInstances API operation and specify the image ID.
-
Alibaba Cloud regularly synchronizes its repositories from official open source communities and OS vendors. You can update your systems with new features and security patches as needed. For more information, see the Alibaba Cloud Mirrors site.
-
Security is a shared responsibility between you and Alibaba Cloud. Alibaba Cloud is responsible for the security of the cloud platform itself, including its hardware, software, and networks. You are responsible for the security of your ECS instances. This includes managing the OS, such as applying updates and security patches, configuring any software you install, and managing the security group firewall rules. For more information, see ECS security.
Relationship between custom images, instances, and snapshots
An image is a template for creating and launching instances. An instance is a virtual machine created from an image and other configuration parameters. A snapshot is a point-in-time backup of an instance's disks.
Understanding the relationship between custom images, instances, and snapshots helps you use them more effectively. The following diagram shows how a snapshot serves as a data backup of an instance at a specific point in time. You can create a custom image from either an instance (ECS 1) or a snapshot. You can then use that custom image to launch another instance (ECS 2).
Limitations
|
Item |
Limit |
Quota increase |
|
Maximum number of custom images per Alibaba Cloud account in a region. |
To view the quota that corresponds to the quota ID |
|
|
Maximum number of accounts with which a single custom image can be shared. |
Check the quota with the ID |
|
|
Image and instance type compatibility |
Instance types with 4 GiB or more of memory cannot use 32-bit images. |
N/A |
How-to guides
-
Find an image
To quickly find the right image among the many public, Marketplace, custom, and shared images for creating your ECS instance, see Find an image.
-
Use custom images
You can create custom images to suit your specific needs. For more information, see Overview of custom images. The following table describes basic operations that you can perform on custom images.
Actions Description Related documentation Create an image You can create a custom image from an existing instance or snapshot to quickly replicate a system environment without repeated configuration. You can also use tools like Packer to create custom images. Import an image You can import a custom image from your local environment. Image import process Update an image Operation Orchestration Service (OOS) provides a public template for updating custom images. You can create a scheduled or on-demand task to update a custom image by selecting a source image and providing necessary parameters, such as a Cloud Assistant script. Update a custom image Copy an image If you need to use an image in a different region, you can copy it to the target region. The copied image is independent and has a unique image ID.
Copy a custom image Share an image After you create a custom image, you can share it with other Alibaba Cloud accounts. The recipient accounts can then use your shared image to quickly create ECS instances that run in the same environment. Share a custom image Publish a community image A community image is a publicly available image. You can publish your custom images as community images for others to use, or you can find and use community images published by others. Community images Export an image After you create a custom image, you can export it to an Object Storage Service (OSS) bucket and then download it to your local environment. Export a custom image Modify image information To help you manage your custom images, you can modify their names and descriptions as needed. Modify the attributes and tags of an image Delete an image You can delete custom images that you no longer need. Delete a custom image -
Use Image Builder
Image Builder provides a centralized service for customizing image content, performing maintenance and testing, and managing distribution and sharing across regions and accounts. In Image Builder, you define a template that specifies a source image, components, and other tasks to be performed during the build process. This process creates a new image based on your template.