GPU Pass Through Issues

JayCoch88

New Member
Feb 3, 2023
2
0
1
I am running Proxmox on an old ASUS ROG laptop with a NVIDIA GeForce GTX 960m GPU (I can provide other specs if necessary). The goal is to have a docker VM running a Plex Media Server container using hardware transcoding.

I have (seemingly) successfully configured the host machine for gpu pass through... I can attach the GPU to the VM and the VM sees the GPU when I run "lspci", however; when I try to run the NVIDIA container, the result of "nvidia-smi" always comes out "No Devices Were Found". I have used every method I have found for installing the NVIDIA driver on the VM, including autoinstall, manually installing the driver based on the results of "ubuntu-drivers devices", and following this guide included in the the linuxserver/plex docker instructions. I even tried Googling and installing the recommended driver from the NVIDIA site, which failed.

After each attempt (aside from the ones tat outright failed), the results of "lspci -vvv", "lshw -c video", and "dkms status nvidia" all seemed to show that the driver was installed. However, after running the NVIDIA container and the "nvidia-smi" command, I get "No Devices Were Found"

I'm hoping maybe someone has run into this problem before or has successfully gotten this to work with a 960m and can provide some insight. Maybe I'm missing something. Or maybe it's just not possible?

Thanks in advance for any help provided.
 
a lot of motherboards dont allow you to do gpu passthrough to a vm, but you can make it so an LXC container has access to the GPU in these cases (and plex media server does run fine in an lxc and uses a gpu just fine)

here's an article with detailed steps to do so
https://passbe.com/2020/02/19/gpu-nvidia-passthrough-on-proxmox-lxc-container/

and there is a big advantage to doing it this way, your gpu isnt dedicated to a single VM so you can have multiple lxc containers and the host still ahve acess to that gpu
 
a lot of motherboards dont allow you to do gpu passthrough to a vm, but you can make it so an LXC container has access to the GPU in these cases (and plex media server does run fine in an lxc and uses a gpu just fine)

here's an article with detailed steps to do so
https://passbe.com/2020/02/19/gpu-nvidia-passthrough-on-proxmox-lxc-container/

and there is a big advantage to doing it this way, your gpu isnt dedicated to a single VM so you can have multiple lxc containers and the host still ahve acess to that gpu
Thank you for your quick reply. I'm going to give this a try.
 

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!