GPU passthrough to LXC with three GPU's

jdesousa

New Member
Jul 27, 2023
14
4
3
Hi All,

My setup has 3 GPUS:

12:00.0 VGA compatible controller: Intel Corporation DG2 [Arc A310] (rev 05)
29:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 41)
30:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev d8)

I have just added the A310 and I would like it to replace the passthough I already have in place for my Plex LXC which uses the iGPU inlcuded on my CPU (Ryzen PRO 5750G).
The Plex LXC can see the iGPU from my CPU via the following code in the containers conf file:

lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.mount.entry: /dev/dri/renderD128 /dev/dri/renderD128 none bind,optional,create=file
lxc.mount.entry: /dev/dri/card0 /dev/dri/card0 none bind,optional,create=file

The contents of the hosts /dev/dri folder are:

drwxr-xr-x 2 root root 100 Jan 21 12:03 by-path
crw-rw---- 1 root video 226, 0 Jan 21 12:03 card0
crw-rw---- 1 root video 226, 1 Jan 21 12:03 card1
crw-rw---- 1 root render 226, 128 Jan 21 12:03 renderD128

And the by-path folder contains:

lrwxrwxrwx 1 root root 8 Jan 21 12:03 pci-0000:29:00.0-card -> ../card0
lrwxrwxrwx 1 root root 8 Jan 21 12:03 pci-0000:30:00.0-card -> ../card1
lrwxrwxrwx 1 root root 13 Jan 21 12:03 pci-0000:30:00.0-render -> ../renderD128

Since adding the new GPU the contents of these two folders haven't changed. How do I create/update the character cardX/renderD128 by-path files for the new GPU so I can present them into my LXC can anyone advise?

I've attached the output of "lspci -vvk" and have installed the latest driver from the Intel site following this guide - https://dgpu-docs.intel.com/driver/installation.html#install-steps substituting Debian for Ubunto and using the "jammy" driver as there doesn't seem to be a bookworm version.

Many thanks gurus!
 

Attachments

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!