[TUTORIAL] GPU Passthrough HP EliteDesk 800 35W G2 CORE i5 vPro 6500T

dbranko

New Member
Oct 30, 2023
5
0
1
Dear friends,

This is my first post. At the beginning, I want to write a small tutorial. For several days and nights, I've been trying to set GPU passthrouth on HP EliteDesk 800 G2 CORE i5 vPro 6500T Skylake gen 9, and finally, I succeeded! :)

---------------------------------------------------------------------------------------------------------

Make sure the following is enabled in the BIOS: Intel VT-d


nano /etc/default/grub
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt textonly vfio_iommu_type1.allow_unsafe_interrupts=1 nofb nomodeset vfio-pci.ids=8086:1912 video=vesafb:off video=efifb:off video=simplefb:off"

update-initramfs -u /// then
update-grub ///

reboot
------------------------------------------------

Get VGA device ID:
lspci -nn | grep '\[03'
result = "00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 530 [8086:1912] (rev 06)"

Put result vfio.conf: (in my case 8086:1912)

nano /etc/modprobe.d/vfio.conf

Code:
options vfio-pci ids=8086:1912 disable_vga=1

-------------------------------------------------

nano /etc/modules

Code:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

----------------------------------------------------

nano /etc/modprobe.d/blacklist.conf

Code:
blacklist nouveau
blacklist nvidia
blacklist nvidiafb
blacklist nvidia_drm
blacklist nouveau
blacklist i915

update-initramfs -u /// then
update-grub ///

reboot
------------------------------------------------
Get ubuntu-22.04.3-live-server-amd64.iso

Create VM:

hardware.JPG

Make sure you add PCI Device (in my case Intel 530 GPU)
-------------------------------------------------------
Install Ubuntu.

Code:
cd /dev/dri
ls

In my case i have:

gpu.JPG
sudo vainfo --display drm --device /dev/dri/renderD129
sudo vainfo --display drm --device /dev/dri/renderD128


After checking them i'v got result from renderD129:

gpu2.JPG

intel top.JPG
 
video=vesafb:off video=efifb:off does nothing on Proxmox. vfio-pci.ids=8086:1912 is also in vfio.conf; no need to do it twice (but you might need a softdep in vfio.conf). Some of the other parameters are probably not necessary. vfio_virqfd is no longer a module since kernel 6.2. Blacklisting modules for NVidia GPUs is pointless when you passthrough an Intel.
Anyway, thank you for taking the trouble to write a tutorial!
 
  • Like
Reactions: dbranko
video=vesafb:off video=efifb:off does nothing on Proxmox. vfio-pci.ids=8086:1912 is also in vfio.conf; no need to do it twice (but you might need a softdep in vfio.conf). Some of the other parameters are probably not necessary. vfio_virqfd is no longer a module since kernel 6.2. Blacklisting modules for NVidia GPUs is pointless when you passthrough an Intel.
Anyway, thank you for taking the trouble to write a tutorial!
Dear friends,

This is my first post. At the beginning, I want to write a small tutorial. For several days and nights, I've been trying to set GPU passthrouth on HP EliteDesk 800 G2 CORE i5 vPro 6500T Skylake gen 9, and finally, I succeeded! :)

---------------------------------------------------------------------------------------------------------

Make sure the following is enabled in the BIOS: Intel VT-d


nano /etc/default/grub
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt textonly vfio_iommu_type1.allow_unsafe_interrupts=1 nofb nomodeset vfio-pci.ids=8086:1912 video=vesafb:off video=efifb:off video=simplefb:off"

update-initramfs -u /// then
update-grub ///

reboot
------------------------------------------------

Get VGA device ID:
lspci -nn | grep '\[03'
result = "00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 530 [8086:1912] (rev 06)"

Put result vfio.conf: (in my case 8086:1912)

nano /etc/modprobe.d/vfio.conf

Code:
options vfio-pci ids=8086:1912 disable_vga=1

-------------------------------------------------

nano /etc/modules

Code:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

----------------------------------------------------

nano /etc/modprobe.d/blacklist.conf

Code:
blacklist nouveau
blacklist nvidia
blacklist nvidiafb
blacklist nvidia_drm
blacklist nouveau
blacklist i915

update-initramfs -u /// then
update-grub ///

reboot
------------------------------------------------
Get ubuntu-22.04.3-live-server-amd64.iso

Create VM:

View attachment 57507

Make sure you add PCI Device (in my case Intel 530 GPU)
-------------------------------------------------------
Install Ubuntu.

Code:
cd /dev/dri
ls

In my case i have:

View attachment 57508
sudo vainfo --display drm --device /dev/dri/renderD129
sudo vainfo --display drm --device /dev/dri/renderD128


After checking them i'v got result from renderD129:

View attachment 57509

View attachment 57510
Hi ,thanks för the guide. Have you manage to pass the audio too? Thanks
 
Thank you for this guide.

i'm trying to do this to a macos vm, and i get in a proxmox/macos/vm bootloop when i try to start my machine.

i've tried with and without rom-bar.

any suggestions?
1704389806602.png
 

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!