Skip to main content
8 votes
Accepted

Does VirtIO storage support discard (fstrim)?

Apparently discard wasn't supported on that setting. However it can work if you change the disk from "VirtIO" to "SCSI", and change the SCSI controller to "VirtIO". I found a walkthrough. There are ...
sourcejedi's user avatar
  • 53.5k
5 votes
Accepted

TCP checksum offloading on virtio-net paravirtualized interfaces

Well.. Let's see.. With virtio-net the Linux kernel does “checksum off-load in software”.. The guest TCP stack builds the packet but leaves the TCP checksum field empty and tags the skb as ...
Groovy's user avatar
  • 501
4 votes

Does VirtIO storage support discard (fstrim)?

I had to explicitly enable discard in the libvirt domain XML file for it to work: <devices> <disk type='file' device='disk'> - <driver name='qemu' type='raw'/> + &...
Vladimir Panteleev's user avatar
4 votes
Accepted

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

Something like this seems to work: first reduce the amount of memory available to the guest, then (optionally) restore it to the original setting. virsh --connect qemu:///system qemu-monitor-command -...
Ivan's user avatar
  • 231
2 votes
Accepted

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

To see which kernel modules are loaded use the lsmod command. You can use grep to pipe the output of lsmod to filter something more desirable. e.g. # lsmod | grep net vhost_net 24576 ...
Mylo Mylo's user avatar
  • 386
1 vote

Host: Manjaro, Guest: Artix Linux, Issue: No virtio internet/NAT connection on VM

First disconnect from the internet by the disconnect option if available. Then run this command in your VM : sudo dhclient eth0 When I had installed Kali Linux for the first time, I was also unable to ...
Rudra Das's user avatar
1 vote

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

Eventually I found something which appears to be working fine: A few things to watch out for: the QEMU microvm machine accepts a bunch of options to disable legacy devices, i.e. rtc=off,pit=off,pic=...
milck's user avatar
  • 171
1 vote

Install base Linux on KVM virtualized hardware (dom0)

As you noted, KVM is part of the Linux kernel (hence the K). Your dom0-equivalent hence is Linux kernel that you boot. KVM depends on a Linux userland to set up VMs. There's no KVM without a host ...
Marcus Müller's user avatar
1 vote

Listing VirtIO devices from a shell in a linux guest

As suggested by @berndbausch the lspci lists virtio devices when the guest uses a (virtual) PCI bus. Also as answered in a similar Superuser question, lsblk can help for block devices. Finally, it ...
Yves Lhuillier's user avatar
1 vote

Gentoo kvm guest integrations (vmchannel)

I realize it's been over 2 months; but try this: If you boot the VM from the Gentoo install cd, you should see vport* character devices listed in /dev, along with a virtio-ports directory. Give that ...
Joseph Mudloff's user avatar
1 vote

Does VirtIO storage support discard (fstrim)?

A small addition to sourcejedi's answer To support discard in virtio-blk, you also need to update "machine" in the VM config. in pc-q35-3.1, virtio-blk does NOT support discard in pc-q35-4....
Oleg Korchagin's user avatar
1 vote

Performance comparison of e1000 and virtio-pci drivers

You did perform a bandwidth test, that does not stress PCI. You need to simulate an environment with many concurrent sessions. There you should see a difference. Perhaps -P 400 might simulate that ...
Nils's user avatar
  • 18.6k
1 vote

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

I was picking the wrong drivers. This thread pointed me to the right ones (except I selected win10): https://askubuntu.com/questions/673957/how-do-you-install-the-virtio-hdd-drivers-for-kvm-on-windows-...
Stonecraft's user avatar
1 vote
Accepted

Why Oracle Linux doesn't recognize virtio?

With latest kernel 4.1.*(included in oracle linux for security fix for metldown bug) works perfect.
elbarna's user avatar
  • 14.3k
1 vote

Identify devices like virtio2 and virtio3 in QEmu

I have a method (taken on another forum few times ago) # vm mac address list for vm in $(virsh list | grep running | awk '{print $2}'); do \ echo -n "$vm "; \ virsh dumpxml $vm| grep -oP "52:54:[\...
francois P's user avatar
  • 1,299

Only top scored, non community-wiki answers of a minimum length are eligible