PCI Passthrough | System Configuration | Part 1
PCI Passthrough Explained! I go over the System Configuration with verification steps in this series of videos. This video goes over enabling IOMMU, Changing kernel for VFIO, and Whitelisting QEMU for your system.
Timestamps:
0:30 Overview and Explaining Steps with distribution and hardware differences
5:00 Step 1- Enabling IOMMU
6:37 Step 2 - Finding Device IDs and creating VFIO Passthrough kernel
12:28 Step 3 - Apparmor Setup
My Recommend Graphics Card
AMD RX 570 - https://amzn.to/2Fn6kfA
Cheat Sheet
*NVIDIA Disclaimer*: Extra steps needed when VM is created in Part 2
*Intel Disclaimer*: Steps shown are on an AMD CPU, make sure you sub out amd for intel in Part 1.
Add the following to /etc/default/grub
Check for line --- GRUB_CMDLINE_LINUX_DEFAULT="quiet"
Add -- iommu=1 amd_iommu=on (Sub amd to intel depending on CPU)
$ sudo update-grub
Reboot!
Verify IOMMU is enabled
$ dmesg | grep IOMMU
Lets Find the Card to passthrough
$ lspci -nn | grep -iP "VGA|audio"
Setup VFIO with Device numbers/id from above VIDEO AND AUDIO!
$ sudo nano /etc/initramfs-tools/modules
Add the following
softdep amdgpu pre: vfio vfio_pci
vfio
vfio_iommu_type1
vfio_virqfd
options vfio_pci ids=1002:67df,1002:aaf0
vfio_pci ids=1002:67df,1002:aaf0
vfio_pci
amdgpu
$ sudo nano /etc/modules
Add the following:
vfio
vfio_iommu_type1
vfio_pci ids=1002:67df,1002:aaf0
$ sudo nano /etc/modprobe.d/amdgpu.conf
softdep amdgpu pre: vfio vfio_pci
$ sudo nano /etc/modprobe.d/vfio_pci.conf
options vfio_pci ids=1002:67df,1002:aaf0
lspci -vnn | grep -iP "vga|amdgpu|nvidia|nouveau|vfio-pci"
Avoid BSODs on New Windows 10 Installs
$ sudo nano /etc/modprobe.d/kvm.conf
options kvm ignore_msrs=1
options kvm report_ignored_msrs=0
Fix Apparmor restrictions
$ sudo nano /etc/apparmor.d/abstractions/libvirt-qemu
--Modify--
# for usb access
/dev/bus/usb/** rw,
/etc/udev/udev.conf r,
/sys/bus/ r,
/sys/class/ r,
/run/udev/data/* rw,
--Append--
# Looking Glass
/dev/shm/looking-glass rw,
$ sudo systemctl restart apparmor
Support My Work
-----------------------------------------------------------------------------------
►► Get Updates, Launch Announcements and More ➜ https://www.cttstore.com/newsletter
►► Chris Titus Tech Digital Downloads ➜ https://www.cttstore.com/downloads
►► Product and Service Recommendations ➜ https://christitus.com/recommendations
►► My YouTube Gear and Computers ➜ https://www.amazon.com/shop/christitustech
Other Places to Find Me
-----------------------------------------------------------------------------------
►► Titus Tech Talk ➜ https://www.youtube.com/c/TitusTechTalk
►► Titus Tech Gaming ➜ https://www.youtube.com/c/TitusTechGaming
►► Chris Titus Fitness ➜ https://www.youtube.com/@christitusfitness
►► Twitch ➜ https://www.twitch.tv/christitustech
►► Twitter ➜ https://twitter.com/christitustech
DISCLAIMER: This video and description contain affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps supports the channel and allows us to continue to make videos like this. Thank you for your support!