Optimization Process¶
A Linux ECS can run properly only when VirtIO drivers have been installed on it and the disk ID in its GRUB configuration file and fstab file has been changed to UUID.
Preparations¶
Use the Linux image to be optimized to create an ECS, and start and log in to the ECS.
Check whether the private image needs to be optimized.
For details, see Checking Whether a Private Image Needs to be Optimized.
The virtualization type may cause slice differences in an optimization process.
Process¶
Uninstall PV drivers from the ECS.
For details, see Uninstalling PV Drivers from a Linux ECS.
Note
If the ECS is using KVM virtualization, skip this step.
Change the disk ID in the GRUB configuration file to UUID.
For details, see Changing the Disk Identifier in the GRUB Configuration File to UUID.
Change the disk ID in the fstab file to UUID.
For details, see Changing the Disk Identifier in the fstab File to UUID.
Install native virtualization drivers.
For KVM, install native KVM drivers. For details, see Installing Native KVM Drivers.
Delete log files and historical records, and stop the ECS.
For details, see Clearing System Logs.
Create a Linux private image using the ECS.