# Optimization Process

A Linux ECS can be switched from Xen to KVM if xen-pv and VirtIO drivers run on the ECS. Before changing a Xen-based ECS to a KVM-based ECS, ensure that the required drivers have been installed and the UUID has been configured for the Linux private image. In addition, optimizing the private image can improve network performance of the ECS.

1. Use the Linux image to be optimized to create an ECS, and start and log in to the ECS.
2. Uninstall the PV Driver installed on the ECS.

   For details, see Uninstalling the PV Driver from a Linux ECS.

3. 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.

4. Change the disk ID in the fstab file to UUID.

   For details, see Changing the Disk Identifier in the fstab File to UUID.

5. Install native KVM drivers.

   For details, see Installing Native KVM Drivers.

6. Delete log files and historical records, and stop the ECS.

   For details, see Clearing System Logs.

7. Create a Linux private image using the ECS.

Parent topic: Optimizing a Linux Private Image