Howto gpu passthrough: Difference between revisions

From Vidalinux Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 13: Line 13:
edit /etc/modprobe.d/vfio.conf file and adding the following line with your ids:
edit /etc/modprobe.d/vfio.conf file and adding the following line with your ids:
  options vfio-pci ids=10de:13c0,10de:0fbb
  options vfio-pci ids=10de:13c0,10de:0fbb
edit /etc/mkinitcpio.conf and add the following:
MODULES="vfio vfio_iommu_type1 vfio_pci vfio_virqfd"

Revision as of 23:36, 3 March 2023

configure grub

add the following to /etc/default/grub:

for intel:

GRUB_CMDLINE_LINUX_DEFAULT="quiet ... intel_iommu=on"

for amd:

GRUB_CMDLINE_LINUX_DEFAULT="quiet ... amd_iommu=on"

re-configure your grub:

grub-mkconfig -o /boot/grub/grub.cfg

isolating gpu

find the device id of the gpu:

lspci -nn

edit /etc/modprobe.d/vfio.conf file and adding the following line with your ids:

options vfio-pci ids=10de:13c0,10de:0fbb

edit /etc/mkinitcpio.conf and add the following:

MODULES="vfio vfio_iommu_type1 vfio_pci vfio_virqfd"