Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

NVIDIA GPU Passthrough requires "(non-NVIDIA) GPUs passthrough" setting to be enabled as well

Description

An nvidia GPU will not get passed through to the Plex APP unless the “Passthrough available (non-NVIDIA) GPUs” setting is enabled as well.

Problem/Justification

None

Impact

None

Attachments

5
  • 13 Oct 2024, 07:11 PM
  • 04 Oct 2024, 11:00 AM
  • 04 Oct 2024, 11:00 AM
  • 04 Oct 2024, 07:21 AM
  • 04 Oct 2024, 07:21 AM

duplicates

Activity

Show:

Chris Holzer October 13, 2024 at 6:03 PM
Edited


So I changed the GPU, did a clean install of RC2 and Imported the configuration.
Now the middleware sadly fails to detect the UUID again. disappointed face

When I run nvidia-smi -L inside the TrueNAS shell, I get the UUID - so the card is fine.

GPU 0: NVIDIA GeForce GTX 1050 (UUID: GPU-ed998139-dbb3-dad3-5536-07336834fa01)

But it does not get passed to Plex → no device ID.

"Env": [ "PLEX_GID=568", "PLEX_CLAIM=claim-PLgrZtXt7yTgjy87bCWt", "PLEX_UID=568", "GROUP_ID=568", "NVIDIA_VISIBLE_DEVICES=", "PGID=568", "ALLOWED_NETWORKS=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16", "GID=568", "TZ=Europe/Vienna", "PUID=568", "USER_ID=568", "NVIDIA_DRIVER_CAPABILITIES=all", "UID=568", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "TERM=xterm", "LANG=C.UTF-8", "LC_ALL=C.UTF-8", "CHANGE_CONFIG_DIR_OWNERSHIP=true", "HOME=/config" ],


So I though I could just add the NVIDIA_VISIBLE_DEVICES env with the correct UUID to the Plex APP configuration.
But that results in an error as the ‘dev allready set the variable’. O.o

Then I just deployed the official Plex docker container using portainer, and by manually setting the UUID transcoding works just fine!

portainer.jpg

Note: I am probably running an unsupported setup now (TrueNAS as VM inside of Proxmox, HBA and GPU passed through to VM) - so I understand if there is no support. However the core issue is clearly that the middleware does not detect the UUID. 🙂

Chris Holzer October 10, 2024 at 2:41 PM

with RC2 and a clean install of Plex this issue does not occur anymore.
When I disable the iGPU passthrough and only have the NVIDIA card passthrough enabled in the settings of the Plex container I see just the NVIDIA GPU in the Plex WebGUI as it should be. slightly smiling face

Bug Clerk October 4, 2024 at 8:51 PM

This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.

Bug Clerk October 4, 2024 at 8:51 PM

Thank you for reporting this issue! This has already been reported (see the "Duplicate" ticket linked above), so this issue is being closed to focus effort in the existing ticket.

Stavros Kois October 4, 2024 at 11:43 AM

I’ve seen that before, the middleware does not populate the uuid field and the NVIDIA_VISIBLE_DEVICES end up being empty (along with the deviceRequests in the container inspect.

This should catch this issues and not let continue with “broken” setup
https://github.com/truenas/apps/pull/609

But it still needs fixing on mw side.

Duplicate
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Impact

Critical

Fix versions

Priority

More fields

Katalon Platform

Created October 4, 2024 at 7:22 AM
Updated October 14, 2024 at 6:53 AM
Resolved October 4, 2024 at 8:51 PM