To check and install Virtio on a cloud server, follow these steps:
Check if Virtio is already installed:
lsmod | grep virtio
If Virtio drivers are loaded, you'll see output like virtio_net, virtio_blk, etc.modinfo virtio
Install Virtio drivers (if missing):
sudo apt-get update && sudo apt-get install linux-virtual
sudo yum install kernel virtio-drivers
sudo reboot
Verify Virtio devices in the OS:
lsblk | grep virtio
ip link show | grep virtio
For Windows servers:
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".