Help Center/ Image Management Service/ FAQs/ Image Optimization/ How Do I Configure an ECS, a BMS, or an Image File Before I Use It to Create an Image?
Updated on 2024-11-06 GMT+08:00

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

ECS or Image File Configurations

Table 1 ECS configurations

OS

Configuration

Reference

Linux

  • Configure DHCP.
  • Install the one-click password reset plug-in.
  • (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 Xen and KVM drivers.
  • Detach data disks from the ECS.

Creating a System Disk Image from a Linux ECS

Table 2 Image file configurations

OS

Configuration

Reference

Linux

  • Delete files from the network rule directory.
  • Configure DHCP.
  • Install native Xen and 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.

Preparing an Image File (Linux)

  • 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.

BMS or Image File Configurations

Table 3 BMS configurations

OS

Configuration

Reference

Windows

  • Install the bms-network-config package.
  • Install Cloudbase-Init.
  • Delete residual files from the OS.

Creating a Private Image from a BMS

Linux

  • Install software in the bms-network-config package.
  • Install Cloud-Init.
  • Delete residual files from the OS.

Creating a Private Image from a BMS

Table 4 Image file configurations

OS

Configuration

Reference

Windows

  • Install drivers for x86 V5 BMSs.
  • Install Cloudbase-Init.
  • Install software in the bms-network-config package.
  • (Optional) Install the SDI iNIC driver.
  • (Optional) Install the one-click password reset plug-in.
  • Set the Windows time zone.
  • Set the virtual memory.
  • (Optional) Configure automatic Windows update.
  • Configure SID.

Private Image Creation Guide

Linux

  • Install and configure Cloud-Init.
  • Modify the hardware device driver that boots the OS.
  • Install software in the bms-network-config package.
  • (Optional) Install the SDI iNIC driver.
  • (Optional) Install the Hi1822 NIC driver.
  • (Optional) Install the IB driver.
  • (Optional) Install drivers for x86 V5 BMSs.
  • (Optional) Install the UltraPath software.
  • (Optional) Install the one-click password reset plug-in.
  • Perform security configuration.
  • Configure remote login to the BMS.
  • Configure automatic root partition expansion.

Private Image Creation Guide