All Documents
Image Management ServiceImage Management Service
- What's New
- Function Overview
- Service Overview
- Getting Started
-
User Guide
- Managing Public Images
-
Creating a Private Image
- Introduction
- Creating a System Disk Image from a Windows ECS
- Creating a System Disk Image from a Linux ECS
- Creating a Windows System Disk Image from an External Image File
- Creating a Linux System Disk Image from an External Image File
- Creating a BMS System Disk Image
- Creating a Data Disk Image from an ECS
- Creating a Data Disk Image from an External Image File
- Creating a Full-ECS Image from an ECS
- Creating a Full-ECS Image from a CSBS Backup
- Creating a Full-ECS Image from a CBR Backup
- Creating a Windows System Disk Image from an ISO File
- Creating a Linux System Disk Image from an ISO File
- Quickly Importing an Image File
-
Managing Private Images
- Modifying an Image
- Exporting Image List
- Checking the Disk Capacity of an Image
- Creating an ECS from an Image
- Deleting Images
- Sharing Images
- Importing an Image
- Exporting an Image
- Optimizing a Windows Private Image
- Optimizing a Linux Private Image
- Encrypting Images
- Replicating Images Within a Region
- Replicating Images Across Regions
- Tagging an Image
- Auditing Key Operations
- Windows Operations
- Linux Operations
- Permissions Management
- Change History
-
Best Practices
- Overview of IMS Best Practices
- Creating a Windows Image Using VirtualBox and an ISO File
- Creating a Linux Image Using VirtualBox and an ISO File
- Cleaning Up the Disk Space of a Windows ECS
- Converting the Image Format
- Creating a Private Image Using Packer
- Configuring an ISO File as a Local Image Source
- Change History
-
API Reference
- Before You Start
- API Overview
- Calling APIs
- Getting Started
- IMS APIs
-
Native OpenStack APIs
-
Image (Native OpenStack APIs)
- Querying Images (Native OpenStack API)
- Querying Image Details (Native OpenStack API)
- Updating Image Information (Native OpenStack API)
- Uploading an Image (Native OpenStack API)
- Deleting an Image (Native OpenStack API)
- Creating Image Metadata (Native OpenStack API)
- Deleting an Image (Native OpenStack API v1.1 - Abandoned and Not Recommended)
- Querying Image Metadata (Native OpenStack API v1 - Abandoned and Not Recommended)
- Querying Image Details (Native OpenStack API v1.1 - Abandoned and Not Recommended)
- Image Tagging (Native OpenStack APIs)
- Image Schema (Native OpenStack APIs)
- Image Sharing (Native OpenStack APIs)
- API Version Query (Native OpenStack API)
-
Image (Native OpenStack APIs)
- Examples
- Permission Policies and Supported Actions
- Common Parameters
- Status Codes
- Error Codes
- Change History
- SDK Reference
-
FAQs
-
Image Consulting
- How Do I Select an Image?
- What Do I Do If I Cannot Find a Desired Image?
- What Do I Do If I Want to Set Up an OpenVPN or PyTorch Environment But No Public Images Containing OpenVPN or PyTorch Are Available?
- How Do I Increase the Image Quota?
- What Are the Differences Between Images and Backups?
- Can I Tailor an Image?
- How Do I Migrate an ECS to a Different Region of Another Account?
- How Can I Back Up the Current Status of an ECS for Restoration in the Case of a System Fault?
- How Can I Apply a Private Image to an Existing ECS?
- Can I Import Data from a Data Disk Image to a Data Disk?
- Can I Use Private Images of Other Tenants?
-
Image Creation
- Image Creation FAQs
- Full-ECS Image FAQs
- How Can I Use a Backup to Create an EVS Disk or ECS?
- Is There Any Difference Between the Image Created from a CSBS/CBR Backup and That Created from an ECS?
- Why Can't I Find an ISO Image When I Want to Use It to Create an ECS or Change the OS of an ECS?
- How Do I Create a Full-ECS Image Using an ECS That Has a Spanned Volume?
- Why Is Sysprep Required for Creating a Private Image from a Windows ECS?
- What Do I Do If an ECS Created from a Windows Image Failed to Start After Running Sysprep?
- Image Sharing
-
OS
- How Do I Select an OS?
- How Is BIOS Different from UEFI?
- How Do I Delete Redundant Network Connections from a Windows ECS?
- What Do I Do If an ECS Starts Slowly?
- What Do I Do If the One-Click Password Resetting Plug-In Failed to Start?
- Why Can't I Find My Private Image When I Want to Use It to Create an ECS or Change the OS of an ECS?
-
Image Importing
- Can I Use Images in Formats Other Than the Specified Ones?
- What Are the Impacts If I Do Not Pre-configure an ECS Used to Create a Private Image?
- How Do I Import an OVF or OVA File to the Cloud Platform?
- What Do I Do If I Configured an Incorrect OS or System Disk Size During Private Image Registration Using an Image File?
- What Do I Do If the System Disk Size in a VHD Image File Exceeds the One I Have Specified on the Management Console When I Use This File to Register a Private Image?
- How Do I Import Existing HUAWEI CLOUD Private Images to a Specified Region?
-
Image Exporting
- Can I Download My Private Images to a Local PC?
- Can I Use the System Disk Image of an ECS on a Physical Server After I Export It from the Cloud Platform?
- Why Is the Image Size in an OBS Bucket Different from That Displayed in IMS?
- Can I Download a Public Image to My Local PC?
- What Are the Differences Between Import/Export and Fast Import/Export?
- What Do I Do If the Export Option Is Unavailable for My Image?
-
Image Optimization
- Why Do I Need to Install and Update VMTools for Windows?
- What Will the System Do to an Image File When I Use the File to Register a Private Image?
- How Do I Configure an ECS, BMS, or Image File Before I Use It to Create an Image?
- What Do I Do If a Windows Image File Is Not Pre-Configured When I Use It to Register a Private Image?
- What Do I Do If a Linux Image File Is Not Pre-Configured When I Use It to Register a Private Image?
- How Do I Enable NIC Multi-Queue for an Image?
- How Do I Configure an ECS to Dynamically Acquire IPv6 Addresses?
- How Do I Make a System Disk Image Support Fast ECS Creation?
- How Do I Install Native Xen and KVM Drivers?
- Image Replication
- Image Deletion
- Image Encryption
- Accounts and Permissions
- Cloud-Init
-
ECS Creation
- Can I Change the Image of a Purchased ECS?
- Can I Use a Private Image to Create ECSs with Different Hardware Specifications from the ECS Used to Create the Private Image?
- Can I Specify the System Disk Size When I Create an ECS Using an Image?
- What Do I Do If No Partition Is Found During the Startup of an ECS Created from an Imported Private Image?
- What Do I Do If the Disks of an ECS Created from a CentOS Image Cannot Be Found?
- What Do I Do If an ECS Created from a Windows Image Failed to Start When I Have Enabled Automatic Configuration During Image Registration?
- What Do I Do If an Exception Occurs When I Start an ECS Created from an Image Using the UEFI Boot Mode?
- Billing
- Change History
-
Image Consulting
- Videos
- Glossary
-
More Documents
-
User Guide (ME-Abu Dhabi Region)
- Overview
-
Creating a Private Image
- Introduction
- Creating a System Disk Image from a Windows ECS
- Creating a System Disk Image from a Linux ECS
- Creating a Windows System Disk Image from an External Image File
- Creating a Linux System Disk Image from an External Image File
- Creating a Data Disk Image from an ECS
- Creating a Data Disk Image from an External Image File
- Creating a Full-ECS Image from an ECS
- Creating a Full-ECS Image from a CBR Backup
- Creating a Windows System Disk Image from an ISO File
- Creating a Linux System Disk Image from an ISO File
- Quickly Importing an Image File
-
Managing Private Images
- Modifying an Image
- Checking the Disk Capacity of an Image
- Creating an ECS from an Image
- Deleting Images
-
Sharing Images
- Overview
- Obtaining the Account Name and Project Name
- Sharing Specified Images
- Accepting or Rejecting Shared Images
- Rejecting Accepted Images
- Accepting Rejected Images
- Stopping Sharing Images
- Adding Tenants Who Can Use Shared Images
- Deleting Image Recipients Who Can Use Shared Images
- Replicating a Shared Image
- Exporting an Image
- Optimizing a Windows Private Image
- Optimizing a Linux Private Image
- Replicating Images Within a Region
- Replicating Images Across Regions
- Exporting Image List
- Auditing Key Operations
- Converting the Image Format
- Windows Operations
- Linux Operations
- Permissions Management
-
FAQs
- Image Consulting
- Image Creation
- Image Sharing
- OS
-
Image Importing
- Can I Use Images in Formats not Described in This Document?
- What Are the Impacts If I Do Not Pre-configure an ECS Used to Create a Private Image?
- How Do I Import an OVF or OVA File to the Cloud Platform?
- What Do I Do If I Configured an Incorrect OS or System Disk Size During Private Image Registration Using an Image File?
- What Do I Do If the System Disk Size in a VHD Image File Exceeds the One I Have Specified on the Management Console When I Use This File to Register a Private Image?
- Image Exporting
-
Image Optimization
- Must I Install Guest OS Drivers on an ECS?
- Why Do I Need to Install and Update VMTools for Windows?
- What Will the System Do to an Image File When I Use the File to Register a Private Image?
- How Do I Configure an ECS or Image File Before I Use It to Create an Image?
- What Do I Do If a Windows Image File Is Not Pre-Configured When I Use It to Register a Private Image?
- What Do I Do If a Linux Image File Is Not Pre-Configured When I Use It to Register a Private Image?
- How Do I Set NIC Multi-Queue for an Image?
- How Do I Configure an ECS to Dynamically Acquire IPv6 Addresses?
- How Do I Make a System Disk Image Support Fast ECS Creation?
- What Is the Cause of the Failure to Install a Guest OS Driver on a Windows ECS?
- How Do I Install Native Xen and KVM Drivers?
- Accounts and Permissions
- Cloud-Init
-
ECS Creation
- Can I Use a Private Image to Create ECSs with Different Hardware Specifications from the ECS Used to Create the Private Image?
- Can I Specify the System Disk Size When I Create an ECS Using an Image?
- What Do I Do If the Disks of an ECS Created from a CentOS Image Cannot Be Found?
- What Do I Do If an ECS Created from a Windows Image Failed to Start When I Have Enabled Automatic Configuration During Image Registration?
- What Do I Do If an Exception Occurs When I Start an ECS Created from an Image Using the UEFI Boot Mode?
- Change History
-
API Reference (ME-Abu Dhabi Region)
- Before You Start
- API Overview
- Calling APIs
- Getting Started
- IMS APIs
-
Native OpenStack APIs
-
Image (Native OpenStack APIs)
- Querying Images (Native OpenStack API)
- Querying Image Details (Native OpenStack API)
- Updating Image Information (Native OpenStack API)
- Uploading an Image (Native OpenStack API)
- Deleting an Image (Native OpenStack API)
- Creating Image Metadata (Native OpenStack API)
- Deleting an Image (Native OpenStack API v1.1 - Abandoned and Not Recommended)
- Querying Image Metadata (Native OpenStack API v1 - Abandoned and Not Recommended)
- Querying Image Details (Native OpenStack API v1.1 - Abandoned and Not Recommended)
- Image Schema (Native OpenStack APIs)
- Image Sharing (Native OpenStack APIs)
- API Version Query (Native OpenStack API)
-
Image (Native OpenStack APIs)
- Permission Policies and Supported Actions
- Common Parameters
- Status Codes
- Error Codes
- Change History
-
User Guide (Paris and Amsterdam Regions)
- Overview
-
Creating a Private Image
- Introduction
- Creating a System Disk Image from a Windows ECS
- Creating a System Disk Image from a Linux ECS
- Creating a Windows System Disk Image from an External Image File
- Creating a Linux System Disk Image from an External Image File
- Creating a BMS System Disk Image
- Creating a Full-ECS Image from an ECS
- Creating a Full-ECS Image from a CSBS Backup
- Creating a Windows System Disk Image from an ISO File
- Creating a Linux System Disk Image from an ISO File
- Quickly Importing an Image File
-
Managing Private Images
- Modifying an Image
- Exporting Image List
- Checking the Disk Capacity of an Image
- Creating an ECS from an Image
- Deleting Images
- Sharing Images
- Exporting an Image
- Optimizing a Windows Private Image
- Optimizing a Linux Private Image
- Encrypting Images
- Replicating Images
- Tagging an Image
- Auditing Key Operations
- Converting the Image Format Using qemu-img
- Converting the Image Format Using qemu-img-hw
- Windows Operations
- Linux Operations
-
FAQs
- Image Consulting
-
Image Creation
- Image Creation FAQs
- Why Can't I Find an ISO Image When I Want to Use It to Create an ECS or Change the OS of an ECS?
- How Do I Create a Full-ECS Image Using an ECS That Has a Spanned Volume?
- Why Is Sysprep Required for Creating a Private Image from a Windows ECS?
- What Do I Do If I Cannot Create an Image in ZVHD2 Format Using an API?
- Image Sharing
- OS
-
Image Importing
- Can I Use Images in Formats Other Than the Specified Ones?
- What Are the Impacts If I Do Not Pre-configure an ECS Used to Create a Private Image?
- What Do I Do If I Configured an Incorrect OS or System Disk Size During Private Image Registration Using an Image File?
- What Do I Do If the System Disk Size in a VHD Image File Exceeds the One I Have Specified on the Management Console When I Use This File to Register a Private Image?
-
Image Exporting
- Can I Download My Private Images to a Local PC?
- Can I Use the System Disk Image of an ECS on a Physical Server After I Export It from the Cloud Platform?
- Why Is the Image Size in an OBS Bucket Different from That Displayed in IMS?
- Can I Download a Public Image to My Local PC?
- What Do I Do If the Export Option Is Unavailable for My Image?
-
Image Optimization
- Must I Install Guest OS Drivers on an ECS?
- Why Do I Need to Install and Update VMTools for Windows?
- What Will the System Do to an Image File When I Use the File to Register a Private Image?
- How Do I Configure an ECS, BMS, or Image File Before I Use It to Create an Image?
- What Do I Do If a Windows Image File Is Not Pre-Configured When I Use It to Register a Private Image?
- What Do I Do If a Linux Image File Is Not Pre-Configured When I Use It to Register a Private Image?
- How Do I Enable NIC Multi-Queue for an Image?
- How Do I Make a System Disk Image Support Fast ECS Creation?
- What Is the Cause of the Failure to Install a Guest OS Driver on a Windows ECS?
- How Do I Install Native Xen and KVM Drivers?
- Image Encryption
- Cloud-Init
-
ECS Creation
- Can I Use a Private Image to Create ECSs with Different Hardware Specifications from the ECS Used to Create the Private Image?
- Can I Specify the System Disk Size When I Create an ECS Using an Image?
- What Do I Do If No Partition Is Found During the Startup of an ECS Created from an Imported Private Image?
- What Do I Do If the Disks of an ECS Created from a CentOS Image Cannot Be Found?
- What Do I Do If an ECS Created from a Windows Image Failed to Start When I Have Enabled Automatic Configuration During Image Registration?
- What Do I Do If an Exception Occurs When I Start an ECS Created from an Image Using the UEFI Boot Mode?
- Change History
-
API Reference (Paris and Amsterdam Regions)
- Before You Start
- API Overview
- Calling APIs
- Getting Started
- IMS APIs
-
Native OpenStack APIs
-
Image (Native OpenStack APIs)
- Querying Images (Native OpenStack API)
- Querying Image Details (Native OpenStack API)
- Updating Image Information (Native OpenStack API)
- Uploading an Image (Native OpenStack API)
- Deleting an Image (Native OpenStack API)
- Creating Image Metadata (Native OpenStack API)
- Deleting an Image (Native OpenStack API v1.1 - Abandoned and Not Recommended)
- Querying Image Metadata (Native OpenStack API v1 - Abandoned and Not Recommended)
- Querying Image Details (Native OpenStack API v1.1 - Abandoned and Not Recommended)
- Image Tagging (Native OpenStack APIs)
- Image Schema (Native OpenStack APIs)
- Image Sharing (Native OpenStack APIs)
- API Version Query (Native OpenStack API)
-
Image (Native OpenStack APIs)
- Examples
- API Actions
- Common Parameters
- Status Codes
- Error Codes
- Change History
-
User Guide (ME-Abu Dhabi Region)
(Optional) Installing Cloudbase-Init
To configure the ECS created from an image (for example, changing the ECS password), you are advised to install Cloudbase-Init. If you do not install it, the ECS cannot be configured and you can log in to the ECS only with the image password.
Install Cloudbase-Init
- Download the Cloudbase-Init installation package.
The version of Cloudbase-Init may vary depending on the OS bit. The downloaded package must be saved to a local shared folder (download path: http://www.cloudbase.it/cloud-init-for-windows-instances/).
- On the VirtualBox Windows VM, choose Computer > Network > VBOXSVR.
- Double-click the shared folder, copy the Cloudbase-Init installation package to the newly created VM, and double-click the installation package.
In this section, CloudbaseInitSetup_0_9_11_x64 is used as an example.
Configure Cloudbase-Init
- Edit the configuration file C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init.conf in the Cloudbase-Init installation path.
- Add netbios_host_name_compatibility=false to the last line of the file so that the hostname supports a maximum of 63 characters.
NetBIOS contains no more than 15 characters due to Windows system restrictions.
- Add metadata_services=cloudbaseinit.metadata.services.httpservice.HttpService to enable the agent to access the IaaS OpenStack data source.
- (Optional) Add the following configuration items to configure the number of retry times and interval for obtaining metadata:
retry_count=40 retry_count_interval=5
- (Optional) Add the following configuration item to prevent metadata network disconnections caused by the default route added by Windows:
[openstack] add_metadata_private_ip_route=False
- (Optional) When the Cloudbase-Init version is 0.9.12 or later, you can customize the length of the password.
Change the value of user_password_length to customize the password length.
- (Optional) Add the configuration item first_logon_behaviour=no to the cloudbase-init.conf configuration file in the C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\ directory to disable password changing.
Add first_logon_behaviour=no.
- Add netbios_host_name_compatibility=false to the last line of the file so that the hostname supports a maximum of 63 characters.
- Release the current DHCP address so that the created ECSs can obtain correct addresses.
In the Windows command line, run the following command to release the current DHCP address:
ipconfig /release
This operation will interrupt network connection and adversely affect ECS use. The network will automatically recover after the ECSs are started again.
- When creating an image using a Windows ECS, you need to change the SAN policy of the ECS to OnlineAll. Otherwise, EVS disks attached to the ECSs created from the image may be offline.
Windows has three types of SAN policies: OnlineAll, OfflineShared, and OfflineInternal.
Table 1 SAN policies Type
Description
OnlineAll
All newly detected disks are automatically brought online.
OfflineShared
All disks on sharable buses, such as iSCSI and FC, are left offline by default, while disks on non-sharable buses are kept online.
OfflineInternal
All newly detected disks are left offline.
- Execute cmd.exe and run the following command to query the current SAN policy of the ECS using DiskPart:
diskpart
- Run the following command to view the SAN policy of the ECS:san
- If the SAN policy is OnlineAll, run the exit command to exit DiskPart.
- If the SAN policy is not OnlineAll, go to 3.c.
- Run the following command to change the SAN policy of the ECS to OnlineAll:
san policy=onlineall
- Execute cmd.exe and run the following command to query the current SAN policy of the ECS using DiskPart: