Graphics Cards: AMD vs Nvidia

Updated on March 23, 2024

A question that frequently pops up in VFIO or GPU passthrough forums is which graphics card to buy: AMD or Nvidia? And the answer often depends on whom you ask.

Some people will tell you to stay clear of Nvidia graphics cards since their driver detects the virtual machine and quits.

Others mention the “reset bug” that’s been haunting AMD graphics cards for the last couple of years (see Wendells video interview of Linux kernel maintainer Greg Kroah-Hartman). So what’s the story?

Continue reading “Graphics Cards: AMD vs Nvidia”

Blacklisting Graphics Driver

Update September 14, 2021: This is a complete revamp, adding new, more robust methods and dropping outdated ones.

Update November 17, 2022: Kernel 6 seems to break the grub method.

Update March 23, 2024: The grub method described below works fine again for some time. I’m now on kernel 6.6.19.

Update August 18, 2024: New driver_override script to add echo "$dev" > /sys/.../bind and updated some text.

When running a VM with GPU passthrough, that GPU should be bound to the VFIO driver. To make this happen, we need to prevent the regular graphics driver from binding to the passthrough GPU and instead bind the vfio-pci driver.

In the past we used to blacklist the graphics driver. This worked in most cases, but what if you need the graphics driver for another GPU, e.g. the host GPU?

Continue reading “Blacklisting Graphics Driver”

Low 2D Graphics Benchmark with Windows 10 (1803) KVM VM

Problem: bad 2D performance in Windows VM versus Windows on bare metal

For the past few months I noticed sluggish 2D graphics in my Windows 10 VM, something that hadn’t happened before. Below are the Passmark 8 results and comparisons between different configurations/releases:

Continue reading “Low 2D Graphics Benchmark with Windows 10 (1803) KVM VM”