Help Center/
Image Management Service/
User Guide/
Managing Private Images/
Optimizing a Linux Private Image/
Using a Script to Optimize a Xen Private Image
Updated on 2022-09-16 GMT+08:00
Using a Script to Optimize a Xen Private Image
- Use the Linux image to be optimized to create an ECS, and start and log in to the ECS.
- 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
- Run the following command to execute the script:
bash resize_ecs_modify_linux.sh
Figure 1 Executing the script
- 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
Parent topic: Optimizing a Linux Private Image
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot