10

Felipe Borges, Gnome Developer, spoke last year about new feature in gnome-boxes that allow simple PCI GPU passthrough to VM.

However, I can't find any information on the gnome documentation or examples of someone using the new GPU passthrough feature of Boxes. Seems like there would be strong demand for it. Is there a good simple 2021 guide I am missing?

I have a laptop with hybrid graphics Nvidia and need Windows VM for Fusion360.

I pass the gnome-boxes --checks for virtualization

I right click of gnome-boxes to launch selecting "with dedicated GPU"

My VM starts no problem, but Nvidia driver tool doesn't see the card.

Do I need to mess with grub to set kernel flags or go into virt-manager to make Boxes work with passthrough in my scenario or should it work out of the box?

andrew.46
  • 37,085
  • 25
  • 149
  • 228
Gary Z
  • 151
  • 2
  • 7

1 Answers1

0

Is IOMMU enabled in the UEFI ? Is the ACS group in the UEFI is correct and only contains the GPU ? If there is no ACS option in the UEFI you can use the ACSO patch for linux kernel 5.12 or anterior. For newer kernel use the ZEN or LIQUORIX kernel. Add "cpubrand"_iommu = on and pcie_acs_override=downstream,multifunctionat the end of "GRUB_CMDLINE_LINUX_DEFAULT=" in /etc/default/grub In the "/etc/initramfs-tools/modules" add vfio-pci ids=pci id of device 1,pci id of device 2 vfio vfio_iommu_type1 vfio_pci vhost-net The id is not XXXX:XX:XX.XX but XXXX:XXXX Then update grub and initramfs. To modify /etc/ do sudo chown -R yourusername:yourusername /etc/ don't reboot until you chown /etc/ to root of else you won't be able to use sudo. If you've reboot then use pkexec chown -R yourusername:yourusername /etc/ Hope that I'e helped you

someone
  • 1
  • 1