PCI Passthrough | System Configuration | Part 1

Subscribers:
687,000
Published on ● Video Link: https://www.youtube.com/watch?v=3yhwJxWSqXI



Duration: 15:36
87,434 views
1,455


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!







Tags:
chris titus tech
pci passthrough
gpu passthrough
passthrough
qemu pci passthrough
linux pci passthrough
linux pci passthrough vfio
passthrough gpu
esxi passthrough
iommu passthrough
passthrough pci
gpu passtrough
vmware snapshots pci passthrough
pcie passthrough
setup passthrough
howto passthrough
passthrough gpu osx
vmware passthrough
install passthrough
windows passthrough
gpu pass through
how to configure passthrough