Help Center > > FAQs> ECS Management> Modifying Specifications> What Should I Do If Executing a Driver Installation Script Failed on an ECS Running CentOS 5?

What Should I Do If Executing a Driver Installation Script Failed on an ECS Running CentOS 5?

Updated at: Jan 26, 2021 GMT+08:00

Scenarios

After executing the script for installing the Virtio driver on an ECS running CentOS 5, users cannot determine whether the driver has been successfully installed. This section describes how to check driver installation.

Procedure

  1. Log in to the ECS and create a temporary directory check.

    mkdir /check

  2. Copy the image file to the current directory.

    cp /boot/initrd-2.6.18-308.el5.img /check/

  3. Run the following commands to convert the file format to .gz:

    cd /check

    mv initrd-2.6.18-308.el5.img initrd-2.6.18-308.el5.img.gz

  4. Decompress the package.

    gzip -d initrd-2.6.18-308.el5.img.gz

  5. Check whether the driver has been successfully installed.

    cpio -t -F initrd-2.6.18-308.el5.img | grep virtio

    The check process is shown in the following figure.

    Figure 1 Checking driver installation

    If the command output contains virtio, virtio_blk, virtio_net, and virtio_pci, the driver has been successfully installed.

    In the preceding figure, the image is of an early version and has no virtio_scsi driver installed. As a result, the ECS is not allowed to attach SCSI disks.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel