Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

On this page

Show all

Checking Whether a Private Image Needs to be Optimized

Updated on 2024-03-04 GMT+08:00
  • 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

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

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback