[TUTORIAL] Intel 8th Gen Coffee Lake PCI Passthrough iGPU UHD630 for Ubuntu 23.04

PSteinberg

Member
Nov 28, 2019
14
8
23
41
Hey folks yet another guide how it worked for me after getting DRM error or Memory errors or total VM crashes

Proxmox VE 8

Code:
1)
Ubuntu 23.04 VM
Machine : Default (i440fx)
Bios : OMVF (Uefi)
PCI device (hostpic0): Activate "All functions" & "ROM-Bar"
Queme Guest Agent : Enabled

a) After installation
nano /etc/enviroment
>>add
LIBVA_DRIVER_NAME=iHD
>>save&exit

b) sudo apt install qemu-guest-agent



2)
root@pve:~# nano /etc/default/grub
>>change to
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on pcie_acs_override=downstream video=efifb:off"
>>save&exit

3)
root@pve:~# update-grub

4)
root@pve:~# nano /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
vfio_iommu_type1
vfio_pci
vfio_virqfd

# Module required normally for Intel GVT but needed
kvmgt

>>save&exit

5)
root@pve:~# update-initramfs -u -k all

6)
root@pve:~# nano /etc/modprobe.d/blacklist.conf
>>add
blacklist i915
blacklist snd_hda_intel
blacklist snd_hda_codec_hdmi
>>save&exit

7)
root@pve:~# nano /etc/modprobe.d/vfio.conf
>>add
options vfio-pci ids=8086:3e92 vfio_iommu_type1 allow_unsafe_interrupts=1
>>save&exit

8) reboot Proxmox

That was the only configuration which worked for me. I did not get PCIE in Q35 machine running at all. :/ I hope I can save some time to somebody
 
Last edited:
  • Like
Reactions: Bingo600 and helio
Hey folks yet another guide how it worked for me after getting DRM error or Memory errors or total VM crashes

Proxmox VE 8

Code:
1)
Ubuntu 23.04 VM
Machine : Default (i440fx)
Bios : OMVF (Uefi)
PCI device (hostpic0): Activate "All functions" & "ROM-Bar"
Queme Guest Agent : Enabled

a) After installation
nano /etc/enviroment
>>add
LIBVA_DRIVER_NAME=iHD
>>save&exit

b) sudo apt install qemu-guest-agent



2)
root@pve:~# nano /etc/default/grub
>>change to
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on pcie_acs_override=downstream video=efifb:off"
>>save&exit

3)
root@pve:~# update-grub

4)
root@pve:~# nano /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
vfio_iommu_type1
vfio_pci
vfio_virqfd

# Module required normally for Intel GVT but needed
kvmgt

>>save&exit

5)
root@pve:~# update-initramfs -u -k all

6)
root@pve:~# nano /etc/modprobe.d/blacklist.conf
>>add
blacklist i915
blacklist snd_hda_intel
blacklist snd_hda_codec_hdmi
>>save&exit

7)
root@pve:~# nano /etc/modprobe.d/vfio.conf
>>add
options vfio-pci ids=8086:3e92 vfio_iommu_type1 allow_unsafe_interrupts=1
>>save&exit

8) reboot Proxmox

That was the only configuration which worked for me. I did not get PCIE in Q35 machine running at all. :/ I hope I can save some time to somebody
Hi thanks for writting this , one question does it work with lxc too? not at the sametime . Thanks