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 ...
            
        
       
    
            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 ...
            
        
       
    
            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'/>
+      &...
            
        
       
    
            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 -...
            
        
       
    
            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  ...
            
        
       
    
            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 ...
            
        
       
    
            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=...
            
        
       
    
            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 ...
            
        
       
    
            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 ...
            
        
       
    
            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 ...
            
        
       
    
            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....
            
        
       
    
            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 ...
            
        
       
    
            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-...
            
        
       
    
            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.
            
        
       
    
            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:[\...
            
        
       
    Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
virtio × 41qemu × 18
kvm × 15
virtual-machine × 11
libvirt × 9
linux × 6
kernel × 4
windows × 4
networking × 3
linux-kernel × 3
drivers × 3
devices × 2
virt-manager × 2
tap × 2
debian × 1
centos × 1
rhel × 1
mount × 1
virtualbox × 1
freebsd × 1
raspberry-pi × 1
lvm × 1
hard-disk × 1
memory × 1
network-interface × 1
 
         
         
         
         
         
         
        