Technology Encyclopedia Home >How to check and install Virtio on a cloud server?

How to check and install Virtio on a cloud server?

To check and install Virtio on a cloud server, follow these steps:

  1. Check if Virtio is already installed:

    • On a Linux server, run:
      lsmod | grep virtio  
      
      If Virtio drivers are loaded, you'll see output like virtio_net, virtio_blk, etc.
    • Alternatively, check the kernel modules:
      modinfo virtio  
      
  2. Install Virtio drivers (if missing):

    • Most modern Linux distributions (e.g., Ubuntu, CentOS, Debian) include Virtio drivers by default. If not, install them via the package manager:
      • For Ubuntu/Debian:
        sudo apt-get update && sudo apt-get install linux-virtual  
        
      • For CentOS/RHEL:
        sudo yum install kernel virtio-drivers  
        
    • Reboot the server if required:
      sudo reboot  
      
  3. Verify Virtio devices in the OS:

    • Check for Virtio-based disks:
      lsblk | grep virtio  
      
    • Check for Virtio network interfaces:
      ip link show | grep virtio  
      
  4. For Windows servers:

    • Virtio drivers must be manually installed. Download the Virtio ISO from a trusted source (e.g., Fedora's VirtIO drivers) and mount it in the cloud server's virtual CD/DVD drive.
    • During Windows setup, select the Virtio drivers from the mounted ISO. After installation, update drivers via Device Manager.

Cloud-Specific Tip:
If you're using Tencent Cloud, ensure your instance uses a Virtio-based image (e.g., Tencent Cloud's public Linux images). For Windows instances, Tencent Cloud provides pre-configured Virtio drivers in the image. If needed, you can also attach a Virtio driver ISO from the Tencent Cloud console under the instance's "More Actions" > "CD/DVD Drive".