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.
35
questions
1
vote
0
answers
28
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 ...
0
votes
0
answers
225
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 ...
0
votes
0
answers
224
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'...
0
votes
1
answer
109
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 ...
0
votes
0
answers
75
views
Feed output from dpdk-created TAP into QEMU Virtual Network Interface
I have this DPDK command line:
sudo dpdk-testpmd -l 0-3 -n 4 \
--vdev 'net_pcap0,rx_pcap=/path/to/input.pcap' \
--vdev 'net_tap0,mac=fixed' -- -i --no-flush-rx
This works within the host, as ...
0
votes
0
answers
259
views
mount command hang with virtio 9p with QEMU build on CentOS 7
When I am using virtio-9p-pci device with qemu 6.1 build on CentOS 7.3(kernel 3.10.0) to transfer files from HOST to Guest. Command to run QEMU with virtio device ::
qemu-system-x86_64 \
-m 4G \
...
0
votes
2
answers
654
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 ...
1
vote
0
answers
661
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 ...
0
votes
0
answers
438
views
KVM : virtio better?
I found many articles about changing to virtio, but I don't know the reason.
Does virtio have higher performance?
1
vote
0
answers
572
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 ...
0
votes
1
answer
842
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 ?
0
votes
1
answer
276
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 ...
1
vote
1
answer
422
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 ...
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 (...
0
votes
1
answer
486
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 -...
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 ...
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 \
-...
1
vote
0
answers
436
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 ...
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 ...
9
votes
3
answers
7k
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, ...
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 ...
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....
1
vote
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)....
1
vote
1
answer
770
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 ...
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 ...
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 ...
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 ...
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.
...
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.
...
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:
...
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 ...
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 ...
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 ...
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 ...
0
votes
1
answer
228
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 ...