forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com> Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
4.9 KiB
4.9 KiB
Checking Whether a Private Image Needs to be Optimized
- 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
- 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
Parent topic: Optimizing a Linux Private Image
