For passing the card, you need to fiddle with modprobe
https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#Binding_vfio-pci_via_device_ID
Remember to first fiddle with IOMMU groups and note all the devices from your IOMMU group you want to pass (e.g. a GPU also has an audio device with it, like in group 13 in this arch wiki):
https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#Setting_up_IOMMU
Also, you may want to pass a USB port and use a hub to plug a keyboard, mouse and maybe a controller if you are into that.
Since we don’t have Arch, neither mkinitcpio, we can use Wendell’s Fedora guide to mess just with the grub and dracut part:
** DRAFT ** IntroductionIn the future, computer operating systems and hardware will be smart enough to allow apps to run in an operating system agnostic way. To me this means that a computer could run a windows app, a mac app, a Linux app (or BeOS,...
After all that is done, In the VM configuration you don’t have to mess with the cores you give it, but you can for some extra tuning.
Since you also have an nVidia card that you probably want to passthrough, you should also check this topic:
I managed to finally get started with running Windows 10 under KVM, but after a while, seems to be mostly at random, it never got passed 1 hour uptime before nVidia driver crashes and I get a black screen. I can’t even RDP into the VM when it does this (I can before it crashes).
Event Viewer reports “Event 4101, Display”:
Display driver nvlddmkm stopped responding and has successfully recovered.It never recovers though, it stays black. The next error I get is "Event 41, Kernel-Power" because I force shut it off from Virt-Manager. I get the Event 4101 every 4 seconds, I got like 10 to 20 errors logged in Event Viewer until I force off the VM. I disabled PCI-E power-saving, I disabled sleep and set display to never turn-off. I had the VM powered on 4 or 5 times and the same thing always happened.
PC specs Pentium G4560 (2 threads passed to Windows)
8 GB of RAM (4 GB for Windows)
nVidia GT1030 (passed to Windows)
Intel HD 610 (host GPU)
M.2 SSD where the host OS (Manjaro) is installed
SATA SSD where Windows is installed (also passed the whole drive to Windows VM)
PCI-E USB expansion card (passed to Windows)
I booted directly into Windows, did a clean install of 431.36 drivers WHQL, rebooted as a VM, same thing happened. Back on bare metal, then I turned off the internet, uninstalled this one, rebooted and installed the 431.36 DCH WHQL drivers (the new “UWP driver”). Rebooted (still on bare metal), everything seemed to work fine. Turned the internet back on, rebooted, then booted inside the VM. It did last a little longer, but after around 1h, the driver crashed again, same error (Event 4101).
Any ideas? I appreciate all help, I’m getting desperate after I managed to make the VM to work, only to encounter instability.
Edit: I forgot to mention that when I’m booted straight into Windows, the GPU works as expected and I don’t encounter any crashes or instability. It only happens when I boot Windows in KVM.
1 Like