Updated on 2023-11-27 GMT+08:00

Practices

Common practices are provided to help you easily use IMS.

Create a Private Image

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.

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.

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.

Optimize Images

Practice

Description

Cleaning Up the Disk Space of a Windows ECS

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

Migrate Images

Practice

Description

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.