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