Checking Whether a Private Image Needs to be Optimized
- If the virtualization type is Xen, optimization is required.
- If the virtualization type is KVM and VirtIO drivers are not installed, optimization is required.
- If the virtualization type is KVM and VirtIO drivers are installed, optimization is not required.
Procedure
- Run the following command to check the virtualization type of an ECS:
lscpu
- If the value of Hypervisor vendor is Xen, optimize the private image as instructed in Process.
- If the value of Hypervisor vendor is KVM, go to the next step for further check.
Figure 1 Checking the virtualization type of a Linux ECS
- Check whether VirtIO drivers have been installed.
- CentOS/EulerOS
For initramfs, run the following command:
lsinitrd /boot/initramfs-`uname -r`.img | grep virtio
For initrd, run the following command:
lsinitrd /boot/initrd-`uname -r` | grep virtio
- Ubuntu/Debian
- SUSE/openSUSE
If virtio is displayed, VirtIO drivers have been installed. For more information, see Creating a Linux System Disk Image from an External Image File.
Otherwise, VirtIO drivers have not been installed. Optimize the private image as instructed in Process.
- CentOS/EulerOS
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.
For any further questions, feel free to contact us through the chatbot.
Chatbot