[SOLVED] GPU passthrough Optiplex 7050 with intel iGPU

rupert160

New Member
Mar 2, 2024
4
0
1
I've been trying to get a Optiplex 7050 with an integrated Intel Corporation HD Graphics 630 GPU setup to do pass through.
Success is to get `lspci -nnk -d 8086:5912` | grep 'Kernel driver in use' == vfio-pci much like : forum[dot]level1techs[dot]com/t/passthrough-does-not-work/148313/16

I have used the suggestion in this post to rebuild: forum[dot]proxmox[dot]com/threads/problem-with-pass-through-cannot-change-initramfs.126627/#post-631013

and following along with: server-world[dot]info/en/note?os=Debian_12&p=kvm&f=13

I've got a fair way with the following script, have updated initramfs and by a miracle the system hasn't hung but vfio-pci is still not shown it keeps picking up i915 driver and if I remove `softdep ${module} pre: vfio-pci` no driver is picked up at all, and crashes. I have before creating a new initramfs been able to run without Graphics driver loaded.

The resultant environment is this:

Bash:
# lsmod | grep vfio
vfio_pci               16384  0
vfio_pci_core          86016  1 vfio_pci
irqbypass              12288  2 vfio_pci_core,kvm
vfio_iommu_type1       49152  0
vfio                   57344  3 vfio_pci_core,vfio_iommu_type1,vfio_pci
iommufd                77824  1 vfio

# dmesg | grep VFIO
[    2.583809] VFIO - User Level meta-driver version: 0.3

# lspci -nnk -d 8086:5912
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 630 [8086:5912] (rev 04)
    Subsystem: Dell HD Graphics 630 [1028:07a1]
    Kernel driver in use: i915
    Kernel modules: i915

# lspci -nnk -d 8086:a2f0
00:1f.3 Audio device [0403]: Intel Corporation 200 Series PCH HD Audio [8086:a2f0]
    Subsystem: Dell 200 Series PCH HD Audio [1028:07a1]
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel, snd_soc_avs

I've changed the hyphen to underscore and back again on `vfio-pci` and vfio_pci` - I'm currently at the following config:

Bash:
# cat /etc/initramfs-tools/modules
vfio
vfio_iommu_type1
vfio_pci

# cat /etc/modules-load.d/modules.conf
vfio
vfio_iommu_type1
vfio_pci

# cat /etc/modprobe.d/i915.conf
install i915 /bin/false
blacklist i915
softdep i915 pre: vfio-pci
options vfio-pci ids=8086:5912,8086:a2f0 disable_vga=1


linux    /boot/vmlinuz-6.5.11-8-pve root=UUID=XXX-XXX-X-XX-XXX ro quiet intel_iommu=on iommu=pt

linux    /boot/vmlinuz-6.5.11-8-pve root=UUID=XXX-XXX-X-XX-XXX ro quiet intel_iommu=on iommu=pt

linux    /boot/vmlinuz-6.5.11-8-pve root=UUID=XXX-XXX-X-XX-XXX ro single
# grep 'GRUB_CMDLINE_LINUX_DEFAULT' /boot/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt"

I'd appreciate any ideas.
 

Attachments

  • passthrough.txt
    1.4 KB · Views: 2
Last edited:
I discovered that what I thought was a frozen host screen was actually a desired outcome initially!
removing:
Bash:
softdep i915 pre: vfio-pci
and allowing a hung screen momentarily, pre-requisite.
When the iGPU is selected by the virtual machine it then changes to:
Bash:
# lspci -nnk -d 8086:5912
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 630 [8086:5912] (rev 04)
    Subsystem: Dell HD Graphics 630 [1028:07a1]
    Kernel driver in use: vfio-pci
    Kernel modules: i915
Which is exactly what I needed. Basically I prematurely thought my configuration was incorrect, it was actually correct and awaiting attachment to the VM.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!