Linux Install VMtool Show Error “Current System Is Not Support Virtio”

|
  • 238
  • 6

Issue Description

Linux migrates from other platform show an error when installing aCloud vmtool:
initrd file not find!
Update rd file failed!
Current system is not supported virtio
At the same time, the UI prompts the current OS unable to support VM optimization tool installation.

Handling Process

1. First, check whether there is a virtio in the virtual machine, mainly virtio_pci (disk network card), virtio_blk (disk), virtio_console (for reporting).
2. Check VM has it install virtio.
Command:
     find /usr/lib/ -name *virtio*  
     find /lib/ -name *virtio

Usually it will show under /usr/lib/ directory
If it does not show virtio_pci, virtio_blk and virtio_console driver mean the Linux OS does not support.

3. Confirm that the driver shown in step in 2 exists, and then check if the kernel rd file is loaded the virtio driver.
Command : lsinitrd /boot/initramfs-$(uname -r).img | grep virtio
Note: $(uname -r)is a variable and the result of the command “uname -r” will be added and replace to the $(uname -r) position.

4. If the Rd does not load the driver, we require to re-do a Rd file that loads the drive.

i) First, backup the existing Rd file initramfs-$(uname -r).img.
command:  cp  /boot/initramfs-$(uname -r).img   /boot/initramfs-$(uname -r).img.bak
ii) Second, execute below command to re-do the Rd file.
Command: mkinitrd -f –with=virtio_pci –with=virtio_blk  –with=virtio_console /boot/initramfs-$(uname -r).img $(uname -r)
iii)Third, after executing the above command, restart the VM and install the vmtool.

Root Cause

The Linux does not have virtio driver or the kernel Rd file does not load the virtio driver.

Solution

Re-do the Rd file.
Faisal Posted 26 Aug 2020 08:22
  
Thank you very much for the information ...
Muhammad Bilal Lv4Posted 19 Sep 2020 02:12
  
Thank you for the sharing information
Faisal Posted 15 Oct 2020 13:04
  
Nice article ...
Faisal Posted 24 Dec 2020 07:31
  
Great Info ...
Faisal Posted 25 Mar 2021 07:15
  
Very informative …
Faisal Posted 10 Jun 2021 08:50
  
Nice guidance ...

I want to write a case
Doc ID: 2290
Author: GodLike
Updated: 2019-12-19 15:40
Version: