Help Center> Image Management Service> FAQ> Image Optimization> What Initial Configuration Needs to Be Performed on the ECS, BMS, or Image File Before It Is Used to Create an Image?

What Initial Configuration Needs to Be Performed on the ECS, BMS, or Image File Before It Is Used to Create an Image?

ECS or Image File Configurations

Table 1 ECS configurations

OS

Configuration Item

Reference

Windows

  • Setting the NIC to DHCP
  • Enabling remote desktop connection
  • (Optional) installing special Windows drivers
  • Installing the one-click password reset plug-in
  • (Optional) Installing Cloudbase-Init
  • Installing the Guest OS drivers, including the PV driver and UVP VMTools
  • Running Sysprep

Creating a System Disk Image from a Windows ECS

Linux

  • Setting the NIC to DHCP
  • (Optional) installing special Linux drivers
  • Installing the one-click password reset plug-in
  • (Optional) Installing Cloud-Init
  • Deleting files in the network rule directory
  • Changing the disk identifier in the GRUB configuration file to UUID
  • Changing the disk identifier in the fstab file to UUID
  • Installing native Xen and KVM drivers
  • Detaching data disks from the ECS

Creating a System Disk Image from a Linux ECS

Table 2 Image file configurations

OS

Configuration Item

Reference

Windows

  • Setting the NIC to DHCP
  • Enabling remote desktop connection
  • Installing the Guest OS drivers, including the PV driver and UVP VMTools
  • (Optional) Installing Cloudbase-Init
  • (Optional) Enabling NIC multi-queue
  • (Optional) Configuring an IPv6 address

Preparing an Image File (Windows)

Linux

  • Deleting files in the network rule directory
  • Setting the NIC to DHCP
  • Installing native Xen and KVM drivers
  • Changing the disk identifier in the GRUB configuration file to UUID
  • Changing the disk identifier in the fstab file to UUID
  • Deleting the automatic attachment information of non-system disks from the /etc/fstab file
  • (Optional) Installing Cloud-Init
  • (Optional) Enabling NIC multi-queue
  • (Optional) Configuring 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 Item

Reference

Windows

  • Installing the bms-network-config software package
  • Installing Cloudbase-Init
  • Deleting residual files in the OS

Creating a Private Image from a BMS

Linux

  • Installing the bms-network-config software package
  • Installing Cloud-Init
  • Deleting residual files in the OS

Creating a Private Image from a BMS

Table 4 Image file configurations

OS

Configuration Item

Reference

Windows

  • Installing the V5 server driver
  • Installing Cloudbase-Init
  • Installing the bms-network-config software package
  • (Optional) Installing the SDI iNIC driver
  • (Optional) Installing the One-Click Password Reset Plug-in
  • Setting the Windows time zone
  • Setting the virtual memory
  • (Optional) Configuring automatic Windows update
  • Configuring the SID

Private Image Creation Guide

Linux

  • Installing and configuring Cloud-Init.
  • Modifying the hardware device driver that boots the OS
  • Installing the bms-network-config software package
  • (Optional) Installing the SDI iNIC driver
  • (Optional) Installing the Hi1822 NIC driver
  • (Optional) Installing the IB driver
  • (Optional) Installing the V5 server driver
  • (Optional) Installing the UltraPath software
  • (Optional) Installing the one-click password reset plug-in
  • Performing security configuration
  • Configuring remote login to the BMS
  • Configuring automatic root partition expansion

Private Image Creation Guide