Create a custom image by using an instance

Last Updated: Sep 28, 2017

You can create a custom image using an ECS instance, namely, you fully copy all its disks and pack them into an image.

During this process, snapshots are automatically created for all disks of the instance, including the system disk and data disks. All the created snapshots compose a new custom image. See the following picture.

principle

In addition, you can create a custom image based on the snapshot, see Create a custom image using a snapshot for instruction.

Prerequisites

  • To prevent the data privacy breach, make sure you delete all the confidential data in the ECS instance before creating a custom image.
  • During creation, do not change the status of the instance. Do not stop, start, or restart the instance.
  • If your custom image contains the data on the data disk, new data disk along with the ECS instance are created together. The data on the data disk duplicates the data disk snapshot in your custom image according to the mount device.
  • You cannot export custom images which contains the data on the data disk.
  • You cannot use a custom image which contains the data on the data disk to replace the system disk.

Operating procedure

See the following steps to create a custom image.

  1. Log on to the ECS console.
  2. Click Instances on the left navigation pane.
  3. Select a region.
  4. Select an instance, and then choose More > Create Custom Image.
  5. Enter the name and description.
  6. Click Create.
    OperationEN

Follow-up operation

After creating the custom image, you may want to Create an instance using a custom image.

Thank you! We've received your feedback.