To improve image importing efficiency and the availability of imported images, we recommend that you read the following instructions before you import an image.

Windows images

Considerations

  • Verify the integrity of the file system.
  • Do not modify critical system files.
  • Make sure that the system disk has sufficient storage space.
  • Configure the system disk size based on the virtual disk size rather than the image size. The system disk size can be 40 GiB to 500 GiB.
  • Disable the firewall and allow access to RDP port 3389.
  • The logon password for the administrator account must be 8 to 30 characters in length and must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include ( ) ` ~ ! @ # $ % ^ & * - _ + = | { } [ ] : ; ' < > , . ? /. In addition, the password cannot start with a forward slash (/).

Items not supported

  • ISO image files are not supported. Before importing ISO images to ECS, use tools such as VirtualBox installed on premises to create ISO images, and then convert the images to RAW, VHD, or qcow2 format.
  • Do not install qemu-ga in an imported image. If it is installed, some of the services that ECS needs may be unavailable.
  • Images running the following operating systems cannot be imported: Windows XP, Windows 7 (professional and enterprise editions), Windows 8, and Windows 10.

Items supported

  • Multi-partition system disks.
  • NTFS file systems and MBR partitions.
  • Images in RAW, qcow2, or VHD format. If the target image is not in one of the preceding formats, convert the image file format before you import it. For more information, see Convert image formats.
  • Images running the following operating systems:
    • Microsoft Windows Server 2016
    • Microsoft Windows Server 2012 R2
    • Microsoft Windows Server 2012
    • Microsoft Windows Server 2008 R2
    • Microsoft Windows Server 2008
    • Windows Server 2003 Service Pack 1 or later

Linux images

Considerations

  • Verify the integrity of the file system.
  • Do not modify critical system files, such as /sbin, /bin, and /lib*.
    • Do not modify /etc/issue*. Otherwise, the system release cannot be identified by ECS, leading to system creation failures.
    • Do not modify /boot/grub/menu.lst. Otherwise, the ECS instance cannot be started.
    • Do not modify /etc/fstab. Otherwise, the exception partition cannot be loaded and the ECS instance cannot be started.
    • Do not change /etc/shadow to read-only. Otherwise, the password file cannot be modified, leading to system creation failures.
    • Do not enable SELinux by modifying /etc/selinux/config. Otherwise, the system cannot start.
  • Make sure that the system disk has sufficient storage space.
  • Disable the firewall and allow access to SSH port 22.
  • Enable Dynamic Host Configuration Protocol (DHCP).
  • Install XEN or KVM virtualization drivers. For more information, see Install the virtio driver.
  • We recommend that you use cloud-init to configure the hostname, NTP source, and yum source. For more information, see Install cloud-init.
  • The logon password for the root account must be 8 to 30 characters in length and must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.Special characters include ( ) ` ~ ! @ # $ % ^ & * - _ + = | { } [ ] : ; ' < > , . ? /.

Items not supported

  • ISO image files are not supported. Before importing ISO images to ECS, use tools such as VirtualBox installed on premises to create ISO images, and then convert the images to RAW, VHD, or qcow2 format.
  • Multiple network interfaces.
  • IPv6 addresses.
  • Do not adjust system disk partitions. Only disks with a single root partition are supported.
  • Do not install qemu-ga in an imported image. If it is installed, some of the services that ECS needs may be unavailable.

Items supported

  • Images in RAW, qcow2, or VHD format. If the target image is not in one of the preceding formats, convert the image file format before you import it. For more information, see Convert image formats.
  • xfs, ext3, and ext4 file systems, and MBR partitions.
    Note The ext4 file system cannot contain the 64bit feature. The project and quota features cannot appear in pairs. To view the list of features contained in the ext4 file system, run the tune2fs -l ext4 file system disk directory | grep features command.
  • Images running the following operating systems:
    • Aliyun Linux
    • CentOS 5/6/7
    • CoreOS 681.2.0 or later
    • Debian 6/7
    • FreeBSD
    • OpenSUSE 13.1
    • Red Hat
    • Red Hat Enterprise Linux (RHEL)
    • SUSE Linux 10/11/12
    • Ubuntu 10/12/13/14/16/18

Non-standard Linux images

Linux images that are not listed as ECS public images are considered non-standard images. Such images are developed on a standard OS platform but do not comply with ECS requirements for a standard operating system, such as critical system configuration files, basic system environments, and applications. If you want to use a non-standard platform image, select one of the following image types and perform corresponding operations:

  • Others Linux: ECS identifies all images of this type as other Linux systems and does not process the instances created from such images. If you enable DHCP before you create an image, ECS automatically configures your network. If DHCP is not enabled, you must connect to the created instance by using the Management Terminal in the ECS console, and then manually configure the IP address, IP route, and password.
  • Customized Linux: After importing a customized Linux image, configure the network and password of the instance according to the standard system configuration of ECS. For more information, see Customize Linux images.