Updated on 2024-03-15 GMT+08:00

Overview

Common IMS practices are provided in this document to help you easily use IMS.

Table 1 IMS practices

Practice

Description

Creating a Windows Image Using VirtualBox and an ISO File

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, configure the VM, and generate a VHD image using the configured VM.

Creating a Linux Image Using VirtualBox and an ISO File

Describes how to create a Linux image using VirtualBox. To do so, you need to install VirtualBox, use it to create a VM from an ISO file, configure the VM, and generate a VHD image using the configured 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 qemu-img-hw to convert the image format. qemu-img can be used for mutual conversion of formats VHD, VMDK, QCOW2, RAW, VHDX, QCOW, VDI, and QED but cannot be used for the format 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 an Ubuntu 22.04 Server 64-bit private image from a CentOS 8.2 ECS using Packer and upload it 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.

Migrating Service Data Across Accounts (Data Disks)

Generally, service data is stored on data disks. To migrate service data across accounts, you need to create data disk images and share them with the target account.