Preparing an Image File
You need to prepare an image file that meets the platform requirements and understand known issues of the OS (see Known Issues).
- You are advised to complete the file system, network, and driver configurations in Table 1 on the VM and then export the image file. You can also complete the configurations on the created ECSs. For details, see What Do I Do If the Initial Configurations of a Linux External Image File Are Not Completed Before the File Is Exported?
- Currently, only RAW and ZVHD2 files can be imported (not larger than 1 TB). In addition to the requirements described in Table 1, a bitmap file needs to be generated for each RAW image file. The bitmap file is uploaded together with the image file. For details, see Quickly Importing an Image File.
| Image File Property | Requirement |
|---|---|
| OS |
For details about the supported OS versions, see Formats and OSs Supported for External Image Files. These OSs support automatic configuration. For details, see What Changes Will Be Made to an Image File Used for Registering a Private Image? For other OSs, check and install the VirtIO driver. On the image registration page, select Other Linux. After the image is imported, whether the system is started depends on the driver integrity. |
| Image format | VMDK, VHD, QCOW2, RAW, VHDX, QED, VDI, QCOW, ZVHD2, and ZVHD |
| Image size | The image size cannot exceed 128 GB. If the image size is between 128 GB and 1 TB, convert the image file into the RAW or ZVHD2 format and import the image through fast import.
|
| Network | The following operation is mandatory. If the operation is not performed, the startup or network capability will be abnormal. The following value-added operations are optional:
|
| Tool | You are advised to install Cloud-Init. Cloud-Init is an open-source cloud initialization tool. When creating an ECS from an image with Cloud-Init, you can use the user data injection function to inject customized initialization information (for example, setting the ECS login password). You can also configure and manage a running ECS by querying and using metadata. If Cloud-Init is not installed, you cannot configure an ECS. As a result, you can only use the password in the image file to log in to the created ECSs. For details, see Installing Cloud-Init. |
| Driver | |
| File system | |
| Other requirements |
|
Last Article: Overview
Next Article: Uploading an External Image File
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.