You can import a local image file to Alibaba Cloud to create a custom image. This lets you quickly deploy ENS instances with a specific operating system and pre-installed applications to improve deployment efficiency. This topic describes how to import a custom image.
Notes
-
ENS nodes must be upgraded to support cloud-init.
-
ENS supports x86-based instance types.
-
ENS supports the Linux operating system.
-
Supported image formats include raw, vdi, vmdk, and vhd. You can also directly import compressed tar.gz files. The qcow2 format is not supported. You must convert image files in other formats before uploading. For more information, see Convert image formats.
-
The total size of the compressed files for the system and data disks cannot exceed 1 TB.
Procedure
-
Upload your image file(s) to Object Storage Service (OSS). If you are importing an image that includes a data disk, you must prepare and upload separate image files for the system and data disks. For more information, see Upload files.
-
Log on to the ENS console.
-
In the left-side navigation pane, choose .
-
Click the Images tab. On the Custom Image tab, click Import Image.
-
Confirm that you have completed all preparations and click Next.
Select the I Acknowledge checkbox to authorize the automatic creation of the
AliyunServiceRoleForENSservice-linked role. -
Enter an Image Name, select the Image File URL, and select the correct OS.
Note-
For Windows operating systems, you can select the license type. Instances created from images that use an Alibaba Cloud-provided license incur a license fee and are automatically activated. Instances created from BYOL images do not incur a license fee, and you must activate the operating system.
-
You can choose to store the custom image in different regions, such as China (Beijing) and Singapore.
-
If you need to import a data disk image, expand advanced configurations and select the OSS image file for the data disk. The system automatically detects the image format and capacity.
Select an Image Type (such as x86-based), and then click Confirm Import.
-
-
Verify that the information is correct and click OK. The import process can take several hours, depending on the task queue and the image file size.