If you cannot find the operating system that you need in the console when you create
an instance, you can create a custom image and import it to the console to create
an instance. This topic describes how to create a custom image and import it to Alibaba
Cloud.
Prerequisites
- VirtualBox is installed. If not, click here to download VirtualBox.
- The network connection is stable.
- The ISO or binary file of the operating system is installed. Example: Red Hat Enterprise Linux.
- ossbrowser is installed. For more information, see Quick start.
Procedure
- Create a new virtual machine (VM) on VirtualBox.
- Start VirtualBox and click New.
- Enter the name of the new VM and select the corresponding operating system and its
version. For example, set Type to Microsoft Windows and set Version to Windows 7 (64-bit).
- Configure the memory size.
- Create a virtual hard disk.
- Select VHD (Virtual Hard Disk) as the file type of the hard disk.
Alibaba Cloud supports the RAW, VHD, and qcow2 formats.

- Select Dynamically allocated as the storage type of the hard disk.
- Enter the name of the virtual hard disk and click Create.
- After the VHD file is created, double-click the new VM to start it.
- Run the following command to install KVM:
yum install qemu-kvm qemu-img libvirt
- Run the following command to disable the firewall of the VM:
- Upload the VHD file to Object Storage Service (OSS) and use ossbrowser to upload the
file to the region where you want to create an instance.
- Import the custom image.
- Log on to the ECS console.
- In the left-side navigation pane, choose .
- In the top navigation bar, select the region where the VHD file is uploaded and click
Import Image.
- Configure the parameters and click OK.
Note You can log on to the OSS console to obtain the OSS object URL. For more information,
see
Download objects.
After the custom image is imported, it is displayed in the image list.
