Advanced
Тема интерфейса

How Do I Configure an ECS or an Image File Before I Use It to Create an Image?

ECS or Image File Configurations

Table 1 ECS configurations

OS

Configuration

Reference

Windows

  • Configure DHCP.
  • Enable remote desktop connection.
  • (Optional) Install Cloudbase-Init.
  • Install Guest OS drivers (VirtIO drivers).
  • Run Sysprep.

Linux

  • Configure DHCP.
  • (Optional) Install Cloud-Init.
  • Delete files from the network rule directory.
  • Change disk identifiers in the GRUB file to UUID.
  • Change disk identifiers in the fstab file to UUID.
  • Install native KVM drivers.
  • Detach data disks from the ECS.
Table 2 Image file configurations

OS

Configuration

Reference

Windows

  • Configure DHCP.
  • Enable remote desktop connection.
  • Install Guest OS drivers (VirtIO drivers).
  • (Optional) Install Cloudbase-Init.
  • (Optional) Enable NIC multi-queue.
  • (Optional) Configure an IPv6 address.

Linux

  • Delete files from the network rule directory.
  • Configure DHCP.
  • Install native KVM drivers.
  • Change disk identifiers in the GRUB file to UUID.
  • Change disk identifiers in the fstab file to UUID.
  • Delete the automatic mount configuration of non-system disks from the /etc/fstab file.
  • (Optional) Install Cloud-Init.
  • (Optional) Enable NIC multi-queue.
  • (Optional) Configure an IPv6 address.
Note
  • When registering an external image file as a private image, you are advised to perform the preceding operations on the VM where the external image file is located.
  • When registering a Windows external image file as a private image, if the Guest OS drivers are installed, the cloud platform will check the image file after you select Enable automatic configuration. If the GuestOS drivers are not installed, the cloud platform will try to install them.