Help Center/ Image Management Service/ FAQs/ Image Optimization/ How Do I Use a Private Image Created from a First-Generation ECS to Create a Second-Generation ECS?
Updated on 2024-07-17 GMT+08:00

How Do I Use a Private Image Created from a First-Generation ECS to Create a Second-Generation ECS?

Scenario

For general-purpose and memory-optimized ECSs, the second generation has a different virtualization architecture and driver type from the first generation. Therefore, you must optimize a private image created from a first-generation ECS before using it to create a second-generation ECS.

Procedure

The following operations use a general-purpose ECS as an example.

Method 1: automatic image optimization

  1. Log in to the management console.
  2. Under Compute, click Image Management Service.
  3. On the Image Management Service page, click Private Images to display the image list.
  4. Automatically optimize the image. For details, see How Do I Optimize an Image?.

    Only Linux images can be optimized automatically.

  5. Use the optimized private image to create a second-generation ECS.

Method 2: manual image optimization

  1. Log in to the management console.
  2. Under Compute, click Image Management Service.
  3. On the Image Management Service page, click Private Images to display the image list.
  4. Use this image to create a first-generation ECS.

    If first-generation ECSs have been sold out, use method 1.

  5. Optimize the image.
  6. Use the optimized general-purpose first-generation ECS to create a private image.
  7. Use the private image to create a second-generation ECS.