- 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
- Importing an Image
- Fast Import of 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
- Optimization Process
- Checking Whether a Private Image Needs to be Optimized
- Uninstalling PV Drivers from a Linux ECS
- 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
- Installing Native KVM Drivers
- Clearing System Logs
- Encrypting Images
- Replicating Images Within a Region
- Replicating Images Across Regions
- Tagging an Image
- Auditing Key Operations
- Windows Operations
- Linux Operations
- Permissions Management
-
Best Practices
- Overview
- 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
- Migrating Service Data Across Accounts (Data Disks)
-
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
- SDK Reference
-
FAQs
-
Image Consulting
- Basic Concepts
- How Do I Select an Image?
- Are There Any Public Images Already Containing Certain Applications, Such as OpenVPN or PyTorch?
- How Do I Increase the Image Quota?
- What Are the Differences Between Images and Backups?
- Can I Tailor an Image?
- 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 Accounts?
- End-of-Support for OSs
-
Image Creation
- General 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?
- How Do I Handle the Startup Failure of a Windows ECS Created from a Windows Image Generalized by Sysprep?
- What Do I Do If I Cannot Create an Image in ZVHD2 Format Using an API?
- Image Sharing
- OS
-
Image Import
- 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 Chose the Wrong OS or System Disk Capacity When Registering a Private Image?
- Why Did My VHD Upload Fail? Why Does the System Say the System Disk in the VHD Image File Is Larger Than What I Specified on the Management Console?
-
Image Export
- Can I Download My Private Images to a Local PC?
- Can I Use the System Disk Image of an ECS on a BMS 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 PC?
- What Are the Differences Between Import/Export and Fast Import/Export?
- Why 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 VirtIO Drivers 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, a BMS, or an 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 Use DHCPv6?
- How Do I Clean Up the Disk Space of a Windows ECS?
- How Do I Make a System Disk Image Support Fast ECS Creation?
- Why Did I Fail to Install Guest OS Drivers on a Windows ECS?
- 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 Change the Specifications Defined by a Private Image When I Use the Image to Create an ECS?
- Can I Specify the System Disk Capacity When I Create an ECS Using an Image?
- What Do I Do If a Partition Is Not Found During the Startup of an ECS Created from an Imported Private Image?
- What Do I Do If the Disks of a CentOS ECS Created from an Image Cannot Be Found?
- What Do I Do If I Enabled Automatic Configuration During Image Registration for an ECS Created from a Windows Image and Now It Won't Start?
- What Do I Do If an Exception Occurs When I Start an ECS Created from an Image Using UEFI Boot?
- Billing
-
Image Consulting
- Videos
Migrating Service Data Across Accounts (Data Disks)
Scenarios
Generally, service data is stored on data disks. To migrate the data across accounts, you need to create data disk images and share them with the target account. This section uses Linux as an example to describe how to migrate service data (only data disks) across accounts in the same region.
Cross-Account Service Data Migration (Data Disks)
To migrate service data stored on a data disk across accounts, create an image from the data disk, share the image with the target account. The target account accepts the shared image and attaches the new data disk created from the shared image to an existing or new ECS.

Step 1: Create a Data Disk Image
Assume that qianyi.txt is stored on the data disk of your ECS and you want to migrate the file to another account.
- Log in to the management console and switch to the CN-Hong Kong region.
- Under Service List, choose Compute > Image Management Service.
The Image Management Service page is displayed.
- In the upper right corner, click Create Image.
The Create Image page is displayed.
- Set parameters.
Figure 2 Creating a data disk image
- Type: Select Create Image.
- Image Type: Select Data disk image.
- Source: Select ECS and then select the data disk ecs-disk-image-test-volume data disk.
- Name: Enter a name for the data disk image, for example, disk-image-test.
- Enterprise Project: Select default.
- Click Next.
- Confirm the settings, read and agree to the agreement, and click Submit.
- The system redirects to the private image list. Wait for several minutes and check whether the data disk image is successfully created.
Figure 3 Viewing private images
Step 2: Share the Image with the Target Account
Share the data disk image created in Step 1: Create a Data Disk Image with the target account. Before the image sharing, obtain the project ID of the target account. (You can obtain the project ID from My Credentials.)
- Locate the row that contains the disk-image-test private image. Choose More > Share in the Operation column.
The Share Image dialog box is displayed.
- In the Share Image dialog box, enter the project ID of the target account.
- Click OK.
Step 3: Accept the Shared Image
Accept the shared data disk image.
- Log in to the management console using the account the image is shared with and switch to the EU-Dublin region.
- Under Service List, choose Compute > Image Management Service. Then, click the Images Shared with Me tab.
- Select disk-image-test and click Accept.
Figure 4 Accepting a shared image
After the image is accepted, it is displayed in the shared image list.
Step 4: Create a Data Disk or an ECS
Use the shared image to create a new data disk and attach it to an existing ECS. Alternatively, create an ECS with a data disk created from the shared image. Then, check whether the service data is successfully migrated.
- Create a new data disk and attach it to an existing ECS.
- Locate the row that contains the shared image disk-image-test, and click Create Data Disk in the Operation column.
Figure 5 Creating a data disk
The page for purchasing EVS disks is displayed.
- Configure the billing mode and disk specifications as needed. The AZ must be the same as that of the ECS to which the data disk will be attached. Click Next.
- Return to the EVS disk list. Wait for several minutes until the EVS disk is created successfully.
- Locate the row that contains the new EVS disk and click Attach in the Operation column to attach the data disk to the ECS.
- Log in to the ECS and check whether the service data is successfully migrated.
Run the fdisk -l command. The command output shows that the new data disk has been partitioned.
Mount the new partition to a directory of the ECS and check the qianyi.txt file. The file content is properly printed, which means that the service data migration is successful.
- Locate the row that contains the shared image disk-image-test, and click Create Data Disk in the Operation column.
- Create an ECS with a data disk attached.
- Under Service List, choose Compute > Elastic Cloud Server.
- In the upper right corner, click Buy ECS.
The page for purchasing ECSs is displayed.
- Configure the billing mode, AZ, and specifications as needed and add a data disk which will be created from the shared data disk image. Complete the ECS creation as instructed.
Figure 6 Adding a data disk
- Wait for several minutes and check whether the new ECS is displayed in the ECS list.
- Log in to the new ECS and check whether the service data is successfully migrated.
Run the fdisk -l command. The command output shows that the new data disk has been partitioned. Mount the new partition to a directory of the ECS and check the qianyi.txt file. The file content is properly printed, which means that the service data migration is successful.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.