Updated on 2022-09-16 GMT+08:00

Using a Script to Optimize a Xen Private Image

  1. Use the Linux image to be optimized to create an ECS, and start and log in to the ECS.
  2. Run the following command to download the driver installation script to the root directory:

    curl URL > ~/resize_ecs_modify_linux.sh

    URL indicates the script download address.

    https://latin-server-resize.obs.na-mexico-1.myhuaweicloud.com/resize_ecs_modify_linux.sh

  3. Run the following command to execute the script:

    bash resize_ecs_modify_linux.sh

    Figure 1 Executing the script
  4. Wait until the script execution is complete. If the message "{Image name} already contain xen and virtio driver" is displayed, the drivers have been installed.
    Figure 2 Successful script execution