Questions tagged [virtio]

VirtIO is a standardized API for accessing virtual devices that a guest OS can use in a Virtual Machine. The drivers are simpler to code and give better performance than emulating real hardware devices.

VirtIO presents itself to a guest OS as an API that allows network, block (disk), console and other devices to be implemented through a simple mechanism of queues of buffers. It is implemented on Linux by qemu and KVM, and is supported by many guest OSes including some non-UNIX ones.

A (slightly outdated) introduction is at IBM developerWorks.

33 questions
14
votes
1 answer

Performance comparison of e1000 and virtio-pci drivers

I made a following setup to compare a performance of virtio-pci and e1000 drivers: I expected to see much higher throughput in case of virtio-pci compared to e1000, but they performed identically. Test with virtio-pci(192.168.0.126 is configured to…
Martin
  • 7,284
  • 40
  • 125
  • 208
9
votes
3 answers

Does VirtIO storage support discard (fstrim)?

$ uname -r 5.0.9-301.fc30.x86_64 $ findmnt / TARGET SOURCE FSTYPE OPTIONS / /dev/vda3 ext4 rw,relatime,seclabel $ sudo fstrim -v / fstrim: /: the discard operation is not supported Same VM, but after switching the disk from VirtIO to…
sourcejedi
  • 48,311
  • 17
  • 143
  • 296
4
votes
0 answers

Qemu disk virtio performance on Windows 10 guest

Is this speed normal? Host: 64-bit archlinux Guest: WIndows 10 64-bit Education Edition with redhat virtio stable driver, raw disk format, 32GB size, virtio enabled, kvm enabled. start command: qemu-system-x86_64 -drive…
Kokizzu
  • 9,257
  • 12
  • 55
  • 82
3
votes
0 answers

QEMU kernel for raspberry pi 3 with networking and virtio support

I used the QEMU(qemu-system-aarch64 -M raspi3) for emulating the Raspberry pi3 with the kernel from the working image. Everything was working but there was no networking. qemu-system-aarch64 \ -kernel ./bootpart/kernel8.img \ -initrd…
zeropoint
  • 31
  • 3
3
votes
1 answer

How can I manually trigger the virtio balloon driver on a guest?

I would like a certain Linux guest running in QEMU to release memory before the host is under memory pressure. How can I manually trigger the virtio balloon driver on a guest so that it releases as much memory as possible?
Ivan Kozik
  • 201
  • 2
  • 9
3
votes
1 answer

No network connectivity with virtio drivers under WinXP guest (libvirt/Qemu on Linux host)

I've been using libvirt for a couple of years now and it's worked a treat so far. Just until recently (probably after a few system updates on my Manjaro Linux host): none of my Windows (XP) guests have network connectivity with virtio drivers…
user86969
3
votes
1 answer

QEMU VM using virtio drivers without kernel support / module on host?

I was trying to verify that my Win 8.1 VM running in QEMU is getting the full VirtIO benefit for the disk (raw image format) and for the network card. I read this related post and accessed the QEMU human monitor interface and found that it…
2
votes
0 answers

Shared folder between QEMU Windows guest and Linux host with virtio-fs

In QEMU 5.0 and kernel 5.4. Virtio-FS(D) was introduced for better access to shared folder on Linux host. It seems guests access the shared folder using something like FUSE technology. I found a guide for Linux guest setup at libvirt.org But can…
MrCalvin
  • 659
  • 7
  • 22
2
votes
1 answer

Use of virtio on QEMU without KVM

I want to write a simple driver for use inside a QEMU virtual machine, which will be communicating with the host through a respective backend special virtual device. The said driver and backend device will be using the VirtIO functionality to work.…
Noob Doob
  • 123
  • 1
  • 5
2
votes
0 answers

virtio network interface stops after wake

I'm running vagrant with the Virtualbox provider on my laptop and use the virtio network interface to mitigate super slow DNS lookups with the standard network device used by Virtualbox. Now putting my laptop to sleep and waking it up later, I can't…
Crischan
  • 121
  • 2
1
vote
0 answers

Stuck at booting kernel when running in VM with VirtIO GPU

I compiled the most recent version of the kernel along with the most recent version of busybox by following this tutorial. To test whether my build was successful, I used an Ubuntu-mate LiveCD to partition the disk and install grub, then booted from…
GuPe
  • 111
  • 3
1
vote
0 answers

How to get write permissions on Linux host from Windows 10 guest, using virtiofs shared folders

I am trying to share a folder from an Ubuntu 20.04.3 host with a Windows 10 build 19042 (20H2) guest, using QEMU 5.2 / libvirt 7.0.0 on the host and virtio-win 0.1.208 (driver 100.85.104.20800 and associated virtiofs service) on the guest. So far I…
1
vote
1 answer

QEMU virtio-scsi: Cannot see the number of queues after booting VM with virtio-scsi command

QEMU newbie here. I am trying to boot a VM using QEMU, for increased performance I am trying to use a virtio-scsi mounted drive. I am following the steps given here. However when I boot my VM and I try to check for the virtio-scsi queues using ls…
1
vote
0 answers

virtio filesystem mounted as readonly -- why?

On the guest I mounted a directory of the host as follows: # mount -t 9p -o trans=virtio /sharepoint /share Indeed, the filesystem seems to be read/write: # mount ... /sharepoint on /share type 9p…
Attilio
  • 345
  • 3
  • 12
1
vote
0 answers

Transfer files between host and guest using virtio-serial

I have a Windows 10 guest with very limited network access (limited by Check-Point VPN firewall) which I access through the spice viewer. But I need to transfer files to/from the guest. I tried to setup Folder Sharing (a function of the virt remote…
MrCalvin
  • 659
  • 7
  • 22
1
2 3