Proxmox 5.2 Gemini Lake and IGD (graphics) passthrough for Ubuntu 18

I Managed to get run Linux to run in Proxmox 6.1 on my Odroid H2 ( Intel J4105 Gemini Lake )

HDMI and Sound is fully working.

PCI Passtrough Gemini Lake Proxmox 6.1

1. Grub

nano /etc/default/grub

change

GRUB_CMDLINE_LINUX_DEFAULT="quiet"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on video=efifb:eek:ff"

then save and quit

run:

update-grub

2. Blacklist module

nano /etc/modprobe.d/pve-blacklist.conf

add:

blacklist snd_hda_intel
blacklist i915
blacklist sof_pci_dev

save and quit

3. VFIO

nano /etc/modules

add:

vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

save and quit

4. VGA and Sonud Adapter (HDMI):

run:

lspci

Output:

00:00.0 Host bridge: Intel Corporation Device 31f0 (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Device 3185 (rev 03)
00:0e.0 Audio device: Intel Corporation Device 3198 (rev 03)
00:0f.0 Communication controller: Intel Corporation Celeron/Pentium Silver Processor Trusted Execution Engine Interface (rev 03)
00:12.0 SATA controller: Intel Corporation Device 31e3 (rev 03)
00:13.0 PCI bridge: Intel Corporation Device 31d8 (rev f3)
00:14.0 PCI bridge: Intel Corporation Device 31d6 (rev f3)
00:14.1 PCI bridge: Intel Corporation Device 31d7 (rev f3)
00:15.0 USB controller: Intel Corporation Device 31a8 (rev 03)
00:17.0 Signal processing controller: Intel Corporation Device 31b4 (rev 03)
00:17.1 Signal processing controller: Intel Corporation Device 31b6 (rev 03)
00:17.2 Signal processing controller: Intel Corporation Device 31b8 (rev 03)
00:17.3 Signal processing controller: Intel Corporation Device 31ba (rev 03)
00:1f.0 ISA bridge: Intel Corporation Device 31e8 (rev 03)
00:1f.1 SMBus: Intel Corporation Celeron/Pentium Silver Processor Gaussian Mixture Model (rev 03)
01:00.0 Non-Volatile memory controller: Kingston Technologies Device 5008 (rev 01)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)

Video and Audio Devices:

Vga adapter: 00:02.0 VGA compatible controller: Intel Corporation Device 3185 (rev 03)
Audio (HDMI): 00:0e.0 Audio device: Intel Corporation Device 3198 (rev 03)

run for Video:

lspci -n -s 00:02.0

get:
00:02.0 0300: 8086:3185 (rev 03)

run for Sound:

lspci -n -s 00:0e.0

get:
00:0e.0 0403: 8086:3198 (rev 03)

edit:

nano /etc/modprobe.d/vfio.conf

for Video:

add:
options vfio-pci ids=8086:3185

for Audio:
options vfio-pci ids=8086:3198

save and quit

5. update initramfs

run:

update-initramfs -u

then do reboot

6. create new VM

-Machine: i440fx
-Display none
-Media Zorin OS
-dont start

Edit Hardware:
add USB Device for Mouse and Keyboard

Video:
add PCI Device 0000 00:02.0 -> select advanced + select PCI
Sound (HDMI):
add PCI Device 0000 00:0e.0 -> select advanced + select PCI

Configuration for my VM:

nano /etc/pve/qemu-server/100.conf

agent: 1
balloon: 0
bootdisk: virtio0
cores: 4
cpu: host
hostpci0: 00:02.0,rombar=0
hostpci1: 00:0e.0,rombar=0
ide2: none,media=cdrom
memory: 10240
name: Desktop1
net0: virtio=56:C2:43:32:9E:6B,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
smbios1: uuid=b151f254-7fbe-4035-9b85-97b8d80baa23
sockets: 1
usb0: host=1-1
usb1: host=1-4
vga: none
virtio0: local-lvm:vm-100-disk-0,cache=unsafe,size=32G
vmgenid: 78b35d30-c4ba-4440-9e24-72b03d8f2a26

everything seems to work.
 
Last edited:
Tried this on my Odroid H2 running Proxmox 6.1-8 but it does not seem to be working.
Right after booting my VM I see Linux Mint logo but soon after that screen goes black and dmesg fills up with following error:
Code:
[  995.296995] DMAR: DRHD: handling fault status reg 3
[  995.297003] DMAR: [DMA Read] Request device [00:02.0] fault addr 7c90a000 [fault reason 06] PTE Read access is not set

Any ideas where to look next?
 
Tried this on my Odroid H2 running Proxmox 6.1-8 but it does not seem to be working.
Right after booting my VM I see Linux Mint logo but soon after that screen goes black and dmesg fills up with following error:
Code:
[  995.296995] DMAR: DRHD: handling fault status reg 3
[  995.297003] DMAR: [DMA Read] Request device [00:02.0] fault addr 7c90a000 [fault reason 06] PTE Read access is not set

Any ideas where to look next?
What’s your configuration? Are you passing through the entire host GPU to a single VM or have you tried the gvt-g (mediated devices) method (if indeed this is available for Gemini Lake - It works on my Coffee Lake headless VMs)
 
I'm passing entire host GPU (haven't tried gvt-g yet) to a single VM and I have exact same configuration as Steffenprox except VM is a bit different. And it's a bit confusing as it seems to work right after VM is started but then suddenly those errors start to come.

Code:
bootdisk: sata0
cores: 4
hostpci0: 00:02,pcie=1,x-vga=1
ide2: local:iso/linuxmint-19.3-cinnamon-64bit.iso,media=cdrom
machine: q35
memory: 1024
name: Test
net0: virtio=BA:39:C3:A8:89:67,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
sata0: local-lvm:vm-100-disk-0,size=16G
scsihw: virtio-scsi-pci
smbios1: uuid=e3b779fb-5724-40b7-8317-bd9c7a05be09
sockets: 1
vga: none
vmgenid: 6b2de1e0-09f6-46c3-b938-ad10df625821
 
I'm passing entire host GPU (haven't tried gvt-g yet) to a single VM and I have exact same configuration as Steffenprox except VM is a bit different. And it's a bit confusing as it seems to work right after VM is started but then suddenly those errors start to come.

Code:
bootdisk: sata0
cores: 4
hostpci0: 00:02,pcie=1,x-vga=1
ide2: local:iso/linuxmint-19.3-cinnamon-64bit.iso,media=cdrom
machine: q35
memory: 1024
name: Test
net0: virtio=BA:39:C3:A8:89:67,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
sata0: local-lvm:vm-100-disk-0,size=16G
scsihw: virtio-scsi-pci
smbios1: uuid=e3b779fb-5724-40b7-8317-bd9c7a05be09
sockets: 1
vga: none
vmgenid: 6b2de1e0-09f6-46c3-b938-ad10df625821


I had try to run Linux Mint also but it did not work. Not every Distro is possible to get work. You can try to install the distro with:

hostpci0: 00:02.0
vga: std

and after installation remove:

 
Just FYI - I manged to get this working using VM with OVMF (UEFI) BIOS setting. Tested with Ubuntu and Debian. Ubuntu worked out of the box but Debian needed to be installed before without adding PCI GPU and after installtion was done PCI attaching enabled passtrought.
 
Just FYI - I manged to get this working using VM with OVMF (UEFI) BIOS setting. Tested with Ubuntu and Debian. Ubuntu worked out of the box but Debian needed to be installed before without adding PCI GPU and after installtion was done PCI attaching enabled passtrought.

Hello, may you give more information because applying the parameters decribed before do not give me a satisfactory result.
In my case, Ubuntu or Debian are running, HDMI with sound is working BUT the GPU (Intel HD Graphics) is not recognized (still seen as a "llvmpipe" card in Ubuntu or in Kodi). What is your GPU ? Do your guest perfectly recognize your GPU ? Hardware acceleration works ?
Thank you for your help. Bye.
 
  • Like
Reactions: lixaotec
I have also start to investigate if H2 can do proxmox its a so grate harware for this software.

But i also run in to problem to get usb installation to boot with proxmox.


Hope proxmox team fix this.
 

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!