Scenario 1: Creating a System Disk Image from a Windows ECS
If you have created and configured an ECS based on your service requirements (such as installing software and deploying an application environment), you can create a system disk image from the configured ECS. Then, any new ECSs created from this image will come with all the same software and other details preconfigured.
This guide describes how to create a system disk image from a Windows ECS.
Preparations
- Sign up for Huawei Cloud and complete real-name authentication.
Before using IMS, sign up for a HUAWEI ID and enable Huawei Cloud services and complete real-name authentication.
If you have enabled Huawei Cloud services and completed real-name authentication, skip this step.
- Create an ECS.
Step 1: Check the ECS
- Log in to the management console. In the service list, choose Compute > Elastic Cloud Server.
- Locate the ECS and click Remote Login.
- Perform the following operations on the ECS:
- Delete sensitive data from the ECS to prevent data leaks.
- Check the network configuration of the ECS and ensure that DHCP is configured for the ECS NICs. Enable remote desktop connection if needed. For details, see Configuring DHCP and Enabling Remote Desktop Connection.
- Check whether Cloudbase-Init has been installed in the ECS. After Cloudbase-Init is installed, user data can be injected into the new ECSs created from the image of this ECS. For example, you can use data injection to set the password of a new ECS. For details, see Installing and Configuring Cloudbase-Init.
- Check and install PV and VirtIO drivers in the ECS so that the new ECSs created from the image of this ECS support both KVM and XEN virtualization and that the network performance will be improved. For details, see Installing PV Drivers and Installing VirtIO Drivers.
- Run Sysprep on the ECS so that each of the new ECSs created from the image of this ECS has a unique SID in a domain. In a cluster, each ECS must have a unique SID. For details, see Running Sysprep.
Step 2: Create a Windows System Disk Image
- Select the ECS and in the Operation column choose More > Manage Image > Create Image.
- In the Image Type and Source area, select Create Image for Type and System disk image for Image Type. Then, select the ECS.
- In the Image Information area, enter basic information about the image.
Table 1 Image parameters Parameter
Example Value
Description
Name
win-image
Enter a name for the image.
Enterprise Project
default
Select an enterprise project from the drop-down list. This parameter is available only if you have enabled enterprise projects or your account is an enterprise account. To enable this function, contact your customer manager.
An enterprise project provides central management of cloud resources on a project.
Tag
Key: usage
Value: project
(Optional) Set a tag key and a tag value for the image to make identification and management of your images easier.
Description
imageTest
(Optional) Describe the image.
- Read and agree to the image disclaimer. Click Next.
- Confirm the parameter settings and click Submit.
- Go back to the private image list and view the image status.
The time required for creating an image depends on the image file size, network status, and number of concurrent tasks. When the image status changes to Normal, the image is created successfully.
Follow-up Procedure
After a system disk image is created, you can use it to create an ECS or change the OS of an existing ECS. This way, you can migrate data from a server to another. For details, see:
For more information, see Creating a System Disk Image from a Windows ECS.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.