Jump to content
  • 25

GPU Passthrough


Question

25 answers to this question

Recommended Posts

  • 2
Posted

Here is how I got GPU passthru to work.

First I logged into the trunas UI and went to System -> Shell
Once in the shell I ran a command to find my gpu slot and uuid

truenas_admin@YOUR-NAS[~]$ midclt call app.gpu_choices | jq

{
  "PCI_SLOT_VALUE": {
    "vendor": "NVIDIA",
    "description": "NVIDIA GeForce GTX 960",
    "vendor_specific_config": {
      "uuid": "GPU_UUID"
    },
    "pci_slot": "PCI_SLOT_VALUE"
  }
}


Then I ran a command to set those values in the plex app

truenas_admin@YOUR-NAS[~]$ midclt call -job app.update plex '{"values": {"resources": {"gpus": {"use_all_gpus": false, "nvidia_gpu_selection": {"PCI_SLOT_VALUE": {"use_gpu": true, "uuid": "GPU_UUID"}}}}}}'



SORRY I DID NOT CAPTURE THE OUTPUT

 

  • Like 2
  • 1
Posted
26 minutes ago, Chris said:

Does the Plex application enable GPU pass through? If yes is it complete or partial? Most importantly is it easy to setup?

Accessing the truenas ui to enable GPU passthrough. it does seem to work but your mileage may very.

  • Like 1
  • 0
Posted
4 hours ago, Midnight2ss said:

Plex took about 15 minutes to installed. there were 0 settings or anything to configure. any setting (Currently in this beta version) to change goes back into the truenas UI

Did you try it in a VM yet?

  • 0
Posted
14 minutes ago, silvioslim said:

GPU passtrough is what we all plex users need. I hope it works fine 

Is it? I purposely brought a 12th gen intel to not have to use a gpu >.< 

  • 0
Posted
3 hours ago, jpadgett said:

I am just need to figure out the GPU to put in my Dell r530 it has 2 low profile sockets. But I am limited to 25 to 30 watts of draw. Still doing my research.

Check out the Intel A310. 

  • 0
Posted
5 hours ago, Chris said:

Here is how I got GPU passthru to work.

First I logged into the trunas UI and went to System -> Shell
Once in the shell I ran a command to find my gpu slot and uuid

truenas_admin@YOUR-NAS[~]$ midclt call app.gpu_choices | jq

{
  "PCI_SLOT_VALUE": {
    "vendor": "NVIDIA",
    "description": "NVIDIA GeForce GTX 960",
    "vendor_specific_config": {
      "uuid": "GPU_UUID"
    },
    "pci_slot": "PCI_SLOT_VALUE"
  }
}


Then I ran a command to set those values in the plex app

truenas_admin@YOUR-NAS[~]$ midclt call -job app.update plex '{"values": {"resources": {"gpus": {"use_all_gpus": false, "nvidia_gpu_selection": {"PCI_SLOT_VALUE": {"use_gpu": true, "uuid": "GPU_UUID"}}}}}}'



SORRY I DID NOT CAPTURE THE OUTPUT

 

just out of curiosity (as someone who isnt in the beta yet), the current TrueNAS version has a checkbox that handles the gpu passthrough and does this automagically by its own. i use this right now with my plex setup.

have you tried it? if not, its worth a shot for the rest of your app needs. i wonder if this breaks something in the HexOS interface (i don't think it should, but meh)

  • 0
Posted
4 hours ago, ysuissa said:

just out of curiosity (as someone who isnt in the beta yet), the current TrueNAS version has a checkbox that handles the gpu passthrough and does this automagically by its own. i use this right now with my plex setup.

have you tried it? if not, its worth a shot for the rest of your app needs. i wonder if this breaks something in the HexOS interface (i don't think it should, but meh)

I tried the checkbox and would get some error so I googled it and this was the fix I came across. After that it was fine.

  • 0
Posted
18 hours ago, Chris said:

I tried the checkbox and would get some error so I googled it and this was the fix I came across. After that it was fine.

After you did this can you still manage the app through HexOS? I haven't gotten to test setting up apps in TrueNAS directly and seeing if Hex sees them at all (I'd assume not), but edited apps I'm not sure of.

  • 0
Posted
1 hour ago, firrae said:

After you did this can you still manage the app through HexOS? I haven't gotten to test setting up apps in TrueNAS directly and seeing if Hex sees them at all (I'd assume not), but edited apps I'm not sure of.

The settings button in HexOS just dumps you into the truenas settings for plex. I am not sure if it did that before or not.

  • 0
Posted

Gpu usage would also be nice, but from my understanding truenas scale dosen't even have a widget for this either on their dashboard. I do not recall if truenas core did been too long since I tried core. I now this is possible on unraid via gpu statistics plugin which would show usage, what apps, and vms that where utilizing in real time along with temps.

  • Like 1
  • 0
Posted

This would be awesome to be able to not only use a gpu but for multiple apps and maybe prioritizes for example if Plex is needing GPU it can take it completely aware from OpenUI while rendering stuff in real time.

  • Like 1
  • 0
Posted
On 12/4/2024 at 8:37 AM, Chris said:

Here is how I got GPU passthru to work.

First I logged into the trunas UI and went to System -> Shell
Once in the shell I ran a command to find my gpu slot and uuid

truenas_admin@YOUR-NAS[~]$ midclt call app.gpu_choices | jq

{
  "PCI_SLOT_VALUE": {
    "vendor": "NVIDIA",
    "description": "NVIDIA GeForce GTX 960",
    "vendor_specific_config": {
      "uuid": "GPU_UUID"
    },
    "pci_slot": "PCI_SLOT_VALUE"
  }
}


Then I ran a command to set those values in the plex app

truenas_admin@YOUR-NAS[~]$ midclt call -job app.update plex '{"values": {"resources": {"gpus": {"use_all_gpus": false, "nvidia_gpu_selection": {"PCI_SLOT_VALUE": {"use_gpu": true, "uuid": "GPU_UUID"}}}}}}'



SORRY I DID NOT CAPTURE THE OUTPUT

 

This ended up working for me! After running these commands though, I did have to go back into the TrueNAS UI and enable the 'Use this GPU' button.

  • Like 2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...