• Image Management Service

ims
  1. Help Center
  2. Image Management Service
  3. User Guide
  4. Creating a Private Image
  5. Creating a Windows System Disk Image Using an External Image File
  6. Overview

Overview

Scenarios

You can use an external image file to create a Windows private image on the cloud platform.

If you have an external image file that meets the format and OS requirements listed in External Image Files and Supported OSs, you can use it to create a Windows private image.

Creation Process

To initialize an image, you need to configure the network attributes, install Cloudbase-Init, enable Remote Desktop Connection, and install the Guest OS driver. For details, see What Initial Configuration Needs to Be Performed on the Server or Image File Before It Is Used to Create an Image?

The procedure for creating a private image from an external image file varies depending on whether the image file has been initialized.

  • If the external image file has been initialized, the procedure for creating a private image is as follows.
    Figure 1 Creating a private image using an initialized image file

    As shown in the figure, the following steps are required to register an external image file as a private image:

    1. Upload the external image file to your OBS bucket. For details, see Uploading an External Image File.
    2. On the management console, select the uploaded image file and register it as a private image. For details, see Registering an Image File as a Private Image.
  • If the external image file has not been initialized, the procedure for creating a private image is as follows.
    Figure 2 Creating a private image using an uninitialized image file

    As shown in the figure, the following steps are required to register an external image file as a private image:

    1. Upload the external image file to your OBS bucket. For details, see Uploading an External Image File.
    2. On the management console, select the uploaded image file and register it as a private image that has not been initialized. For details, see Registering an Image File as a Private Image.
    3. Use the private image to create an ECS. For details, see Creating an ECS.
    4. Log in to the ECS created in 3 remotely and configure it. For details, see Configuring an ECS.
      NOTE:

      The Guest OS driver must be installed on Windows ECSs running on the cloud platform.

      For detailed operations, see the Elastic Cloud Server User Guide.

    5. Create a private image using the ECS. For details, see Creating a Windows Private Image from an ECS.

Constraints

  • External image files in QCOW2 format cannot be encrypted.
  • The size of external image files must not exceed 1 TB. If an image file is larger than 128 GB, you need to change the file format to ZVHD2 or RAW and use the fast image creation function.
    • The fast image creation function is only available for image files in RAW or ZVHD2, and the size of image files must be less than 1 TB.
    • Before using fast image creation to import RAW image files, ensure that image files have been optimized and that bitmap files have been generated for each image file.
    • Before using fast image creation to import ZVHD2 image files, ensure that image files have been optimized.
  • The system disk size in external image files is from 1 GB to 1024 GB.
  • The administrator account and its password must have been configured for the external image file using Windows. In subsequent operations, you may use the username and password to log in to and configure the ECS.
  • External image files must support the Integrated Drive Electronics (IDE) device driver, which is automatically loaded when the system starts.
  • The boot partition and system partition of external image files must be on the same disk.
  • BIOS must be selected as the boot mode during image creation.
  • Ensure that each external image file contains the password or certificate used to log in to ECSs made from the created private image, or ensure that Cloudbase-Init has been installed and configured in the image file.
  • To protect ECSs created from an external image file against attacks, ensure that the initial password of the image file contains at least the following types of characters:
    • Uppercase letters
    • Lowercase letters
    • Digits
    • Special characters, including !@$%^-_=+[{}]:,./?
  • If disks in an external image file use specific encryption mechanisms, ECSs created using the private image registered from the external image file may become unavailable.
  • Some default drivers are not supported on the cloud platform. Therefore, you cannot use external image files with OEM OSs to create private images.
  • OSs in external image files cannot be bound to specified hardware.
  • OSs in external image files must support full virtualization.
  • When uploading external image files to an OBS bucket, you must select one with Standard storage.