Create a System Disk Image from a Cloud Server

2025-12-31 03:25:55

Operation Scenarios

After creating an Elastic Cloud Server (ECS), you can install software and deploy application environments as needed, and then create a system disk image from the ECS. New ECS instances created from this image will include your custom configurations, saving the time for replicating ECS configuration.


Description 

Currently, the steps for creating a system disk image using a Windows or Linux ECS as the image source are the same. However, for Linux ECSs, it is recommended to comment out /etc/fstab before creating the image. Otherwise, ECSs created from the private image may enter maintenance mode due to missing data disks and require secondary commenting or deletion of data disks mounted in /etc/fstab followed by a reboot.


Prerequisites

1. You have created an ECS. For details, see Creating an ECS.

2. Ensure the ECS is in the shutdown status. Some resource pools support creating private images while the ECS is powered on. The cached data in the running ECS is not flushed to the disk, and the image data produced may be inconsistent with the instance data. Therefore, we recommend that you create an image after the ECS is powered off.

3. If the system disk is encrypted, creating a system disk image is not supported.

4. Before creating a private image for the ECS, check the following:

  • Verify the ECS network configuration and ensure the NIC uses DHCP.

  • Check whether the ECS has installed the Cloudbase-Init or Cloud-init tool.

  • Check whether the ECS has installed the password reset plug-in (qga).

  • Check whether the ECS has installed the virtio drive so that ECS instances created from the image can boot properly.


Note 

  • Creating a private image is free of charge.

  • Make sure to remove sensitive data from the instance to avoid security risks.

  • An ECS and the created private images must be in the same region. Cross-region usage is not supported.

  • During image creation, do not perform other operations on the selected ECS or related resources.

  • The time required for creating a system disk image depends on the size of the ECS system disk. Please wait until the private image is created before use.


Procedure

1. Log in to the eSurfing Cloud Console.

2. Click at the top of the Console to select a region.

3. In the left navigation pane, choose Compute > IMS.

4. On the Image page, click Create Private Image in the upper right corner.

5. On the Create Private Image page, select System Disk Image as the image type and ECS as the image source. Choose the system disk of the target ECS.

6. Set Min Memory and Max Memory. After setting, the image will only be available for ECS specifications within this memory range.

7. Enter basic information of the image, such as enterprise project, image name, and description, then click Next.


Description 

  • Min/max memory settings are supported only in some resource pools.

  • Min memory options: Unlimited, 1 GB, 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, 64 GB, 128 GB, 256 GB, and 512 GB; Max memory options: Unlimited, 1 GB, 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, 64 GB, 128 GB, 256 GB, and 512 GB.

  • Max memory must be greater than or equal to min memory. If conditions are not met, grayed options are disabled.

  • Min and max memory values can be modified.

  • Memory limits apply to scenarios including: ECS application, ECS re-installation, and auto scaling. Images are filtered by memory range during selection.

  • For images that have already been shared, if the max/min memory values are modified again, users who receive and use the shared image will use the modified max/min memory values. That is, for shared images, the max/min memory values will change along with the modifications made to the source image.

  • For images that have already been used to create ECSs, modifying the max/min memory values does not affect ECSs that were created previously. Operations on existing ECSs may not match the updated max/min memory values. Applicable operations include: creating the same configuration, configuration change, clone, applying for an ECS through CSBS, applying for an ECS from a snapshot, creating an AS group, and creating AS configuration.

  • The image length is 2–32 characters. It supports numbers, hyphens (-), and letters. It cannot start with a number or a hyphen and cannot end with a hyphen.


8. Confirm image parameters, select I have read and agreed to the relevant agreement, and click Confirm.


Next Steps

1. On the Private Images page, you can view the image creation progress, starting at 0% and reaching 100% when the status becomes Normal.

Description 

Scenarios supporting progress bars include: 

  • Creating a system disk image from an ECS

  • Creating a data disk image from an ECS

  • Creating a system disk image from an ECS snapshot

2. After creation, you can view the image in the private image list.

3. For system disk images, disk capacity equals the ECS system disk size at the time of creation.

4. Images created from an ECS support the following operations: viewing details, applying for an ECS, modifying, deleting, exporting, sharing, and canceling sharing.



XjeVh_YofuvE