Help Center> Image Management Service> Best Practices> Overview of IMS Best Practices

Overview of IMS Best Practices

This document summarizes operation practices in common application scenarios of Image Management Service (IMS). Each practice provides detailed solution description and operation guide, helping you easily build image-based services.

Table 1 IMS best practices

Practice

Description

Creating a Windows image from an ISO file using VirtualBox

Describes how to create a Windows image using VirtualBox. To do so, you need to install VirtualBox, use it to create a VM from an ISO file, and generate a VHD image using the created VM.

Creating a Linux image from an ISO file using VirtualBox

Describes how to create a Linux image using VirtualBox. To do so, you need to install VirtualBox, use an ISO file to create a VM, and generate a VHD image using the created VM.

Cleaning up the disk space of a Windows ECS

Describes how to clean up the disk space of a Windows ECS.

Converting the image format

Describes how to use qemu-img or Huawei-developed qemu-img-hw to convert the image format. qemu-img supports the mutual conversion of formats VHD, VMDK, QCOW2, RAW, VHDX, QCOW, VDI, and QED but does not support the conversion to ZVHD or ZVHD2. To convert an image file to any of the two formats, use qemu-img-hw.

Creating a private image using Packer

Describes how to create a Ubuntu 16.04 Server 64-bit private image from a CentOS 7.4 ECS using Packer and upload the created image to the cloud platform.

Configuring an ISO file as a local image source

Describes how to configure a local image source by using the yum, apt, and zypper package managers and provides configuration examples of Debian 10.1.0 and CentOS 8.0.

Migrating ECSs across accounts and regions

Describes how to migrate an ECS with a website deployed across regions and accounts.