Skip to main content

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
43 views

Which Linux kernel config options are required to get QEMU virtio to work?

I am currently trying to boot a QEMU VM with a virtio-blk hard disk and I am failing. I cannot seem to get the kernel to recognize the virtio device. I am on a linux-6.1.97 source tree and ...
milck's user avatar
  • 151
1 vote
0 answers
33 views

How can I use a specific folder on my host as the home folder for the primary user of my Debian VM guest in virt-manager

I have a Debian host running virt-manager. Once a VM is up and running, I know how to create a filesystem share to share host:/home/user with vm:/blah. What I want to do is make it so vm:/home/person ...
IMTheNachoMan's user avatar
0 votes
0 answers
298 views

Virtiofsd, Problems with qemu VM launch script

I am in the process of writing a script to start my qemu Windows 10 VM on an Arch Linux host. My issue is that one of the commands won't run from the script, but will run in a terminal. Here is a test ...
Diamond White's user avatar
0 votes
0 answers
266 views

RSS (Receive Side Scaling) support on virtio vhost adapter

I’m running KVM guest (debian buster, kernel v6.1.36) with vhost interfaces configured like this: <interface type='bridge'> <mac address='52:54:00:b4:26:1b'/> <source bridge='ovsbr0'...
alexserkin's user avatar
1 vote
1 answer
144 views

Install base Linux on KVM virtualized hardware (dom0)

Goal: I would like to install my main Linux distro on top of KVM, equivalent to dom0 in Xen hypervisor parlance. I know that running an OS on top of a hypervisor is not uncommon and that KVM has been ...
Adam Erickson's user avatar
0 votes
2 answers
806 views

KVM windows 11 guest won't boot when `bus="sata" and address type="drive"` changed to `bus="virtio" and address type="pci"?

I am using a prebuilt qcow2 windows 11 image which and when change from bus="sata" and address type="drive" to bus="virtio" and address type="pci" my KVM ...
munish's user avatar
  • 8,057
1 vote
0 answers
786 views

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 ...
GuPe's user avatar
  • 111
0 votes
0 answers
458 views

KVM : virtio better?

I found many articles about changing to virtio, but I don't know the reason. Does virtio have higher performance?
张绍峰's user avatar
  • 135
1 vote
0 answers
641 views

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 ...
ohrenbaer's user avatar
0 votes
1 answer
986 views

Listing VirtIO devices from a shell in a linux guest

As the title already summarizes, is there a way (a tool or a simple command) to list available (thus recognized by a linux guest) VirtIO devices ?
Yves Lhuillier's user avatar
0 votes
1 answer
291 views

Gentoo kvm guest integrations (vmchannel)

I'm trying to get a working VMchannel to my gentoo kvm guest. I enabled the recommended kernel options for gentoo guests. As the channel appears to be a character device, I also enabled Virtio console ...
rudib's user avatar
  • 1,632
1 vote
1 answer
445 views

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 ...
Balvansh Heerekar's user avatar
1 vote
0 answers
2k views

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's user avatar
  • 365
0 votes
1 answer
501 views

Error using virtio-fs and qemu: "Failed to read msg header. Read 0 instead of 12. Original request 1."

I'm trying to use virtio-fs to mount a folder on the host in the guest, but running into an issue. On the host I have qemu 1:5.0-5ubuntu6. virtiofsd command and output: /usr/lib/qemu/virtiofsd -f -d -...
Gary van der Merwe's user avatar
2 votes
0 answers
1k views

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 ...
MrCalvin's user avatar
  • 699
4 votes
0 answers
1k views

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 \ -...
zeropoint's user avatar
1 vote
0 answers
466 views

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 ...
MrCalvin's user avatar
  • 699
0 votes
1 answer
3k views

How do I check if my VM is using vhost-net driver for networking

In KVM, NIC model can be set to virtio (latest) or the older e1000 (not recommended, emulated). In virtio, one has the option of using vhost-net driver or qemu. vhost-net and qemu differs in how ...
Vineet Menon's user avatar
9 votes
3 answers
8k views

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, ...
sourcejedi's user avatar
  • 51.1k
1 vote
1 answer
102 views

`cat` behaves strangely on a mounted virtio directory

When I'm in a mounted directory (9p) on my gentoo-guest and do the following: TMPDIR='./foo' # The directory './foo' exists and the name 'TMPDIR' is important cat <<EOF hello world EOF I get ...
Cosinus's user avatar
  • 111
1 vote
1 answer
1k views

How can I install a Windows 10 KVM VM on a ZVOL: pick the correct virtio drivers

I was trying to install windows 10 on an NTFS formatted zvol, but I kept getting BSODs: user@ubuntu:~$ virt-install \ > --name myWINVM1 \ > --ram 4096 \ > --disk path=/guest_images2/myWINVM1....
Stonecraft's user avatar
2 votes
0 answers
1k views

Accessing disk features in a QEMU/KVM VM

I recently setup a QEMU virtual machine with KVM running on Debian. The guest OS is FreeNAS (based on FreeBSD). I have given the guest access to a physical hard-disk on the host (not just a partition)....
wispi's user avatar
  • 348
1 vote
1 answer
803 views

Why Oracle Linux doesn't recognize virtio?

On KVM-libvirt I have setup a Oracle Linux VM (Oracle Linux 7) I run it with SATA, but I want to use virtio I put the virtio disk and network..but on boot don't load the driver, or better, the driver ...
elbarna's user avatar
  • 12.8k
0 votes
1 answer
1k views

Identify devices like virtio2 and virtio3 in QEmu

I'm running a virtual machine in QEmu. The following command in the guest VM cat /proc/interrupts | egrep 'virtio.*(input|output)' gives me the following output: 26: 0 3376 0 ...
Serge Rogatch's user avatar
3 votes
1 answer
4k views

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 ...
Ivan Kozik's user avatar
3 votes
1 answer
3k views

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 ...
user avatar
1 vote
2 answers
2k views

How to merge separate logical volumes in to one physical disk?

i can see my server disk like this Disk /dev/vda: 50.0 GB Disk /dev/vdb: 50.0 GB I need to combine these two virtual block devices into single physical disk as 100GB. I have installed CentOS 7. ...
user201696's user avatar
14 votes
1 answer
11k views

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. ...
Martin's user avatar
  • 7,636
4 votes
0 answers
6k views

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: ...
Kokizzu's user avatar
  • 9,941
3 votes
1 answer
4k views

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 ...
Brian O'Connell's user avatar
2 votes
1 answer
3k views

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 ...
Noob Doob's user avatar
  • 123
2 votes
0 answers
138 views

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 ...
Crischan's user avatar
  • 121
1 vote
1 answer
1k views

How to handle (with LVM or DM (device mapper)) when a drive has gone away and come back as a new block device

(This correct answer is to one that bears little surface resemblance to this one. Asking the question and answering it myself with reference to that one.) Consider a virtual host environment in which ...
Otheus's user avatar
  • 6,228
0 votes
1 answer
232 views

virtio-kmod in /usr/ports is not compatible; what can I do?

I tried to install virtio-kmod in a FreeBSD guest. make in /usr/ports/emulators/virtio-kmod gives virtio-kmod--0.250249 not supported ${OSREL} (10.1). The ports-tree is up to date. Is that a bug or ...
Jodka Lemon's user avatar
  • 3,183