Creating a System Disk Image from a Windows ECS

Scenarios

If you have created and configured a Windows ECS based on your service requirements (for example, by installing software and setting up an application environment), you can create a system disk image based on this configured ECS. Then, all new ECSs created from this image will have the same software and environment preinstalled.

Creating a system disk image does not affect the running of services on the ECS or cause data loss.

Background

The following figure shows the process of creating a system disk image from an ECS.

Figure 1 Creating a system disk image and using it to create ECSs

Prerequisites

Before creating a private image from an ECS:

If an ECS is created from a public image, Cloudbase-Init has been installed by default. You can follow the guide in the prerequisites to verify the installation.

Procedure

  1. Access the IMS console.

    1. Log in to the management console.
    2. Under Compute, click Image Management Service.

      The IMS console is displayed.

  2. Create a system disk image.

    1. Click Create Image in the upper right corner.
    2. Set image parameters.

      Table 1 and Table 2 list the parameters in the Image Type and Source and Image Information areas, respectively.

      Table 1 Image type and source

      Parameter

      Description

      Type

      Select System disk image.

      Source

      Select ECS and select an ECS with required configurations.

      Table 2 Image information

      Parameter

      Description

      Encryption

      This parameter specifies whether the image will be encrypted. The value is provided by the system and cannot be changed.

      • Only an unencrypted private image can be created from an unencrypted ECS.
      • Only an encrypted private image can be created from an encrypted ECS.

      Name

      Set a name for the image.

      Tag

      (Optional) Set a tag key and a tag value for the image to make identification and management of your images easier.

      Description

      (Optional) Enter a description of the image.

    3. Click Create Now.
    4. Confirm the parameters and click Submit.

  3. Go back to the Private Images page and view the new system disk image.

    The time required for creating an image depends on the ECS system disk size, network quality, and the number of concurrent tasks. When the image status changes to Normal, the image creation is complete.

    • Do not perform any operations on the selected ECS or its associated resources during image creation.
    • An ECS created from an encrypted image is also encrypted. The key used for encrypting the ECS is the same as that used for encrypting the image.
    • An image created from an encrypted ECS is also encrypted. The key used for encrypting the image is the same as that used for encrypting the ECS.

Follow-up Procedure

After a system disk image is created, you can use either of the following methods to migrate data between two servers: