Before you import an image to Elastic Compute Service (ECS), we recommend that you read the following instructions to ensure image availability and improve import efficiency.
Windows Server images
Item | Description |
Operating system | Images that contain the following operating system versions of Windows can be imported to ECS:
|
Image format | Only images in RAW, VHD, and QCOW2 formats can be imported to ECS. For images in other formats, you must convert the images to the RAW, VHD, or QCOW2 format before you can import the images to ECS. For more information, see Convert the image file format. |
Virtual disk size | Configure the system disk size based on the virtual disk size rather than the image size. The system disk size ranges from 5 GiB to 2,048 GiB. |
File system and partition |
|
Security |
|
Others |
|
Linux images
Item | Description |
Operating system | Images that contain the following operating system versions of Linux can be imported to ECS:
Note
For more information, see the Other instructions for Linux images section of this topic. |
Image format | Only images in RAW, VHD, and QCOW2 formats can be imported to ECS. For images in other formats, you must convert the images to the RAW, VHD, or QCOW2 format before you can import the images to ECS. For more information, see Convert the image file format. |
Virtual disk size | Configure the system disk size based on the virtual disk size rather than the image size. The system disk size ranges from 5 GiB to 2,048 GiB. |
File system and partition |
|
Network |
Note Make sure that the virtio_net driver is configured in initd/initramfs, so that network interface (NIC) drivers can finish initializing NICs before network service configurations are started. For more information, see Install the virtio driver. |
Security |
|
Others |
|
Other instructions for Linux images
Limits
If the image that you want to import is an ARM64-based image or if the operating system of the image is CentOS Stream, Anolis, AlmaLinux, or Rocky Linux, take note of the following items:
To allow the password to be set or the key pair to be modified for an imported image, make sure that the image meets the following requirements before you import it:
The kernel of the operating system supports the
CONFIG_FW_CFG_SYSFS
feature.By default, Linux community kernel 4.6 or later and CentOS kernel 3.10.0-826.el7 or later support this feature. You can run the
grep -nr CONFIG_FW_CFG_SYSFS /boot/config-$(uname -r)
command on the source server of the image. If the command output containsCONFIG_FW_CFG_SYSFS=y
, the operating system kernel in the image supports theCONFIG_FW_CFG_SYSFS
feature.Alibaba Cloud cloud-init of the latest version is installed on the operating system.
If the version of cloud-init is 19.1, the minor version must be 19.1.18 or later. If the version of cloud-init is 0.7.6a in some early versions of operating systems, the minor version must be 0.7.6a15 or later. For more information, see Install cloud-init.
The operating system supports the SHA-512 encryption algorithm.
If you want an imported image to support resizing of disks and file systems, make sure that the image meets the following requirements before you import it:
The image supports the growpart command.
To support this command, you must install the
cloud-utils-growpart
package. The methods of installing the package vary based on operating systems. For more information, see Extend the partitions and file systems of disks on a Linux instance.The image supports the resize2fs command.
To support this command, you must install the
e2fsprogs
package. By default, the package is installed on operating systems. If the package is not installed on an operating system, you must manually install it. For example, to install thee2fsprogs
package on a CentOS 7 operating system, run the yum install -y e2fsprogs command.Alibaba Cloud cloud-init of the latest version is installed on the operating system.
If the version of cloud-init is 19.1, the minor version must be 19.1.18 or later. If the version of cloud-init is 0.7.6a in some early versions of operating systems, the minor version must be 0.7.6a15 or later. For more information, see Install cloud-init.
Non-standard Linux images
Linux images that are not listed as ECS public images are considered as non-standard platform images. Such images are developed on a standard operating system platform, but their critical system configuration files, basic system environments, or applications do not comply with the standard operating system requirements of ECS. If you want to use a non-standard platform image, you must complete the required configurations within the operating system of the image before and after the image is imported.
The following section describes the non-standard platform image types that can be imported and how to configure these images:
Others Linux: ECS identifies all images of this type as other Linux images. If you import an Others Linux image and then use it to create instances, ECS does not process the created instances. If DHCP is disabled in the Others Linux image, you must connect to the instances by using a remote connection feature in the ECS console and then manually configure IP addresses, routes, and passwords for the instances. If DHCP is enabled in the Others Linux image, networks are automatically configured for the instances when you log on to the instances.
Customized Linux: Before a customized Linux image is imported, you can create instances from this image and configure networks and passwords for the instances in the same way as you do with instances created from standard ECS images. For more information, see Customize Linux images.
Instructions for importing images to Alibaba Finance Cloud regions
To import custom images to an Alibaba Finance Cloud region, you must use the endpoint of the region and an Object Storage Service (OSS) bucket that resides in the region. Examples:
To import custom images to the cn-shanghai-finance-1 region of ECS, you must use a bucket that resides in the oss-cn-shanghai-finance-1-pub region of OSS.
To import custom images to the cn-shenzhen-finance-1 region of ECS, you must use a bucket that resides in the oss-cn-szfinance region of OSS.
To import custom images to the cn-beijing-finance-1 region of ECS, you must use a bucket that resides in the oss-cn-beijing-finance-1 region of OSS.