Files
doc-exports/docs/ims/umn/en-us_topic_0037352185.html
Zaoxu, Li 8a03a26aba ims_umn_20240516
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>
2024-05-23 16:04:20 +00:00

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

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

      lsinitramfs /boot/initrd.img-`uname -r` |grep virtio

    • SUSE/openSUSE
      • SUSE 12 SP1/openSUSE 13 or earlier:

        lsinitrd /boot/initrd-`uname -r` | grep virtio

      • SUSE 12 SP1 or later than SUSE 12 SP1/openSUSE 13:

        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

    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.

<script language="JavaScript"> </script>