Unable to revert GPU passthrough

Zuki

New Member
Apr 18, 2025
1
0
1
I configured passthrough for my gpu into a VM, but turns out i need hardware Accel way more then i need my singular VM using my gpu. And from testing and what i have been able to research online, i cant do both.

I have been trying to get Frigate up and running on docker compose inside an LCX as that seems to be the best way to do it. And after alot of trials and tribulations, i think i have got it down to the last problem. Im unable to to use hardware acceleration on my Intel CPU as I'm missing the entire /dev/dri/.

I have completely removed everything i did for the passthrough to work, reboot multiple times, removed from VM that was using the GPU and tried various other things but i can't seem to get my host to see the cpu?

As far as im aware i belive i should see an output of my dedicated GPU and iGPU on this lspci -k | grep -A 3 "VGA". But i only get the GPU that comes back.

Any help is very much appreciated. Im at a loss for now.

List of things i did to configure the passthrough which have all been reverted. And updated Grub and initramfs.

Code:
Step 1: Edit GRUB
  Execute: nano /etc/default/grub
     Change this line from
   GRUB_CMDLINE_LINUX_DEFAULT="quiet"
     to
   GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt pcie_acs_override=downstream,multifunction nofb nomodeset video=vesafb:off,efifb:off"
  Save file and exit the text editor

Step 2: Update GRUB
  Execute the command: update-grub

Step 3: Edit the module files  
  Execute: nano /etc/modules
     Add these lines:
   vfio
   vfio_iommu_type1
   vfio_pci
   vfio_virqfd
  Save file and exit the text editor

Step 4: IOMMU remapping
 a) Execute: nano /etc/modprobe.d/iommu_unsafe_interrupts.conf
     Add this line:
   options vfio_iommu_type1 allow_unsafe_interrupts=1
     Save file and exit the text editor
 b) Execute: nano /etc/modprobe.d/kvm.conf
     Add this line:
   options kvm ignore_msrs=1
  Save file and exit the text editor

Step 5: Blacklist the GPU drivers
  Execute: nano /etc/modprobe.d/blacklist.conf
     Add these lines:
   blacklist radeon
   blacklist nouveau
   blacklist nvidia
   blacklist nvidiafb
  Save file and exit the text editor

Step 6: Adding GPU to VFIO
 a) Execute: lspci -v
     Look for your GPU and take note of the first set of numbers
 b) Execute: lspci -n -s (PCI card address)
   This command gives you the GPU vendors number.
 c) Execute: nano /etc/modprobe.d/vfio.conf
     Add this line with your GPU number and Audio number:
   options vfio-pci ids=(GPU number,Audio number) disable_vga=1
  Save file and exit the text editor

Step 7: Command to update everything and Restart
 a) Execute: update-initramfs -u
 
Last edited:
As far as im aware i belive i should see an output of my dedicated GPU and iGPU on this lspci -k | grep -A 3 "VGA". But i only get the GPU that comes back.

Have you ever seen the iGPU before?
Some mainboards respectively their bios/UEFI automatically disable the iGPU if there is a dGPU present.
Would check, if you can explicitly enable the iGPU in the bios/UEFI.