When you deploy your business in the cloud, you can import image files from your computer or other cloud servers to Alibaba Cloud Elastic Compute Service (ECS). After you import the image files, you can use the image files to create ECS instances or replace the system disks of existing ECS instances. This topic describes how to import an image.

Import a Linux image

The following figure shows how to import a Linux image. Procedure
  1. Before you import a custom Linux image, you must complete the following preparations:
    1. Install an image compliance tool and then use the tool to automatically check whether Linux settings meet the import requirements. For more information, see Use the image compliance tool.
    2. Install cloud-init to allow ECS instances that run the image to complete the initialization configuration. For more information, see Install cloud-init.
    3. Install VirtIO drivers to allow ECS instances created from the image to start. For more information, see Install the virtio driver.
    4. If the operating system of the custom image is not supported by Alibaba Cloud and cloud-init cannot be installed, you can select Customized Linux when you import the custom image. For more information, see Customize Linux images.
  2. For information about the requirements for importing custom images, see Instructions for importing images.
  3. ECS instances support only image files in the RAW, VHD, and QCOW2 formats. If the image file that you want to import is in another format, you must convert the image file format first. For more information about how to convert the format of an image file, see Convert the format of an image.
  4. Import the custom image. For more information, see Import custom images.

Import a Windows image

The following figure shows how to import a Windows image.Procedure
  1. Install VirtIO drivers to allow ECS instances created from the image to start. For more information, see Install the virtio driver.
  2. For information about the requirements for importing custom images, see Instructions for importing images.
  3. ECS instances support only image files in the RAW, VHD, and QCOW2 formats. If the image file that you want to import is in another format, you must convert the image file format first. For more information about how to convert the format of an image file, see Convert the format of an image.
  4. Import the custom image. For more information, see Import custom images.