GPU Pass-trough to Ubuntu Server VM

jpmn

New Member
Dec 29, 2022
3
0
1
Hello!

I am currently setting up a media server, where I intend to run Jellyfin.
The whole setup process has been going fine, but when I decided to pass-trough my GPU (Nvidia Quadro M2000) for transcoding, everything went downhill.

When I turn on the VM, after adding the new hardware, everything completely crashes, I can't access my Proxmox server via WEB or SSH, ping is not working either.

I have followed a bunch of different setup guides, looking on forums etc. But nothing has helped me figure this out so far.
I will provide pictures of my Ubuntu Server VM settings, IOMMU groups etc.

My Proxmox server is as mentioned running on a Dell T5810, without integrated graphics, is this the reason why it crashes?
Do I need to have buy a 2nd GPU for the system?
I have tried looking for answers other places, but can't really seem to find anything of value.

Can anybody spot a step I have missed, or something that needs to be changed?
Thanks in advance!

Here is my current setup:

Build:

Dell T5810

CPU: Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz 12 cores
GPU: Nvidia Quadro M2000
RAM: 32 GB
Kernel: Linux 5.15.74-1-pve

Current configuration for Pass-trough:

/etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"

update-grub

/etc/modules

vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

echo "options vfio_iommu_type1 allow_unsafe_interrupts=1" > /etc/modprobe.d/iommu_unsafe_interrupts.conf
echo "options kvm ignore_msrs=1" > /etc/modprobe.d/kvm.conf

echo "blacklist radeon" >> /etc/modprobe.d/blacklist.conf
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
echo "blacklist nvidia" >> /etc/modprobe.d/blacklist.conf

echo "options vfio-pci ids=10de:1430,10de:0fba disable_vga=1"> /etc/modprobe.d/vfio.conf

update-initramfs -u

And then I restarted my Proxmox Server.
 

Attachments

It might help to passthrough only 03:00.0 but select All Functions instead of passthrough of all functions (03:00.0 amd 03:00.1) separately.
You might need this work-around if the GPU is used during boot of the system or is the only GPU.
Are there any error messages in the Syslog or journalctl when starting the VM?
Maybe try with and without ROM-Bar and with and without Primary GPU.

EDIT: This thread resolved an issue with the same type of GPU and a similar PC.
 
Last edited:
  • Like
Reactions: jpmn
It might help to passthrough only 03:00.0 but select All Functions instead of passthrough of all functions (03:00.0 amd 03:00.1) separately.
You might need this work-around if the GPU is used during boot of the system or is the only GPU.
Are there any error messages in the Syslog or journalctl when starting the VM?
Maybe try with and without ROM-Bar and with and without Primary GPU.

EDIT: This thread resolved an issue with the same type of GPU and a similar PC.
YESSIRRR :)

The fix was adding initcall_blacklist=sysfb_init to the Grub configuration file.
I also deleted my Audio controller and set the GPU, to "All Functions" under the Hardware tab.

Thank you so much for the help my man.
 
Any one have dell T5810 Plz post here your config for gpu-pass-trough for windows vm thank you
 

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!