Thanks, Zach!
Nice basic virtualization primer. Thank you!
Hey folks,
TrueNAS has gone through some MAJOR changes since we wrote the steps covered in this tutorial. In the newer versions some of the steps are no longer recommended, or have changed enough to require a new tutorial. As noted in the author’s edit 06/2024, this information will be updated in a follow-up post to better reflect Electric Eel and future versions.
I have some previous knowledge of Scale but on an older OS revision. I have set up Plex correctly, but when I add my library paths, nothing shows up in Plex. The app is working fine, but the libraries never show up. I don’t know if it’s the ACL or the dataset setup. Any help would be appreciated.
Hello, do you have any more detailed instructions for the last step? How do I do this?
“To finish up, connect to the “Media” SMB share we set up in step 14. " *What does this mean? How do I do this?*
We found that you need to create a new local user in TrueNAS to be able to log into the SMB share; you can do so by going over to Credentials, then Local Users, and then hitting Add. Once you’ve added your new user, all you have to do is map the SMB share you created to the device you’ll be uploading media from.
This did not work it is staill install plex media, and not plex media server
Hey Aaron,
To get your GPU recognized for transcoding, you’ll need to select the GPU in TrueNAS and turn on hardware transcoding in Plex. To do that:
1. Select Plex from your list of TrueNAS apps and edit its config. This will look different in different versions of TrueNAS.
1A. If you’re using “Cobia”, clicking the “Apps” button on the left side will pull up a list. Find Plex on the list, look in the box labeled “Application Info”, and select “Edit”.
1B. If you’re on “Bluefin”, the “Apps” button will take you to a screen of apps. Once you find Plex, click the 3 dots in the top right corner its little box, and select “Edit”.
2. Scroll down until you see “GPU Configuration”.
3. If the section doesn’t have the “Select GPU” dropdowns, you’ll need to click “Add”.
4. Click the drop down to select the type of GPU you’re using. Select “Allocate 1 xxxxxxx/xxx GPU”. (xxxxxxx/xxx being your brand of GPU.)
5. Once you’ve selected your GPU, click “Save”, and wait for Plex to deploy.
6. After Plex has deployed, hop into Plex settings in the WebUI and select “Transcoder”.
7. From the Transcoder settings, find the checkbox that says “Use hardware acceleration when available”. Check that box to turn on hardware transcoding. (The checkbox will be the setting directly below the “Transcoder quality” dropdown.) 8. Remember to hit “Save” to apply the change.
And you should be all set. Once you configure your GPU in TrueNAS and turn on hardware transcoding in Plex, you’ll see “(hw)” written at the end of the stream data.
If you’re using a Nvidia GPU for transcoding, you can see if it’s being utilized by Plex when you have a stream playing that’s being transcoded. To do that, you can use the “nvidia-smi” command in the TrueNAS shell. (More on that here: https://developer.nvidia.com/nvidia-system-management-interface.)
Hope that helps!
I’m struggling with this type of setup on Truenas Scale as I’m trying to get a GPU recognised for transcoding. I’m not seeing any provision for this in the setup. Have you been able to pull this off?
Thanks for sharing! Yes, the fix in that Reddit thread will work; as we mentioned in Step 11, you’ll need to make sure that the top fields are correctly filled out when you go to disable host path safety checks in “Advanced Settings”, aka “Kubernetes Settings”. (This also includes selecting “0.0.0.0” from the “Node IP” dropdown.) Otherwise, if your port forwarding isn’t set up properly, Plex will not be able to see the server remotely.
In order to see my server from app.plex.tv and also use the mobile apps, I had to change the settings in Plex and the apps settings in Truenas apps (interface and gateway fields) like explained here: https://reddit.com/r/truenas/s/h1irnAB2Fm
Hey Logan,
Thanks for your question. Start by making sure that “Plex Data Volume” and “Plex Config Volume” settings for Plex are pointing to the correct datasets (see step 13). If that’s all set properly, you may be running into one of a few things.
We found that in order for Plex to recognize our media, we had to create subfolders for each individual piece of media and give the subfolders whatever name we wanted the media to appear as in Plex.
If it’s a folder structure issue, here’s what you can do: Let’s say you want to add Jaws to Plex, for example. Your structure would need to be Media > Movies > Jaws > Jaws.mkv. If you want it to show up as, say, “Scary Shark Movie”, your structure could be Media > Movies > Scary Shark Movie > Jaws.mkv. (Note that changing the folder name will also change what Plex searches for to populate the movie info/poster.)
Now, if that doesn’t solve the problem, then it may have to do with the permissions for your Media dataset. To check what your permissions are set to, go into the “Datasets” menu on the left, select your Media dataset, and click “Edit” on the permissions box. First, double check that Owner is set to “apps” for both User and Group. Then, make sure that the “Read”, “Write”, and “Execute” permission boxes are checked for both User and Group.
Let us know if you need help with anything else!
Hey TechMike,
Thank you for the detailed guide, I made it through to the last step without issue, but seem to be having problems adding media to my server. Like in the other comment you responded to, I can’t get plex to recognize my media whatever I do.
I tried separating the files out into folders inside of Media called Movies and TV Shows, but Plex won’t seem to recognize anything past one folder deep.
It also doesn’t add the media (even if it shows up when I click the Data Tab when selecting a library) if they are in the root of the SMB Media folder.
Any help is appreciated.
Excellent guide! Everything went very well with my first foray into using TrueNAS scale using this. I had used OMV with docker and Portainer before and this is even easier.
Hey Trey,
Thanks for your question. In the final step of adding a Library to Plex, selecting “/data” during the last step is not actually adding data to Plex; it is directing Plex to look for media within the location, “/data”.
Backtracking to Step 8, we set up 2 datasets; 1. “Plex Config”, for Plex’s configuration files, and 2.“Media”, to store your videos, pictures, and any other content that you want Plex to access.
How does content end up in “Media”? That’s where the SMB share comes into play. The purpose of the SMB share is to be able to easily transfer your media files from your computer and into the “Media” dataset. This dataset is what Plex will access through the designated folder called “data.”
During Step 13, when configuring Plex’s “Storage” settings, you need to check the “Enable host path for Plex Data Volume” and set the host path to the “Media” dataset. By doing this, you’re essentially telling TrueNAS to link the “Media” dataset to the “/data” folder.
Then, when you go to add a Library and hit “Browse Media Dataset”, you’ll need to select the “/data” folder. You’ve set everything up so that whatever is in “Media” ends up in “/data”.
Hope that helps!
Last step to add Library to Plex doesnt work. If media is the directory and shared via SMB then why you adding data to Plex.
Hi Danillo,
Thanks for your question. If the server does not boot into Windows after installation, you’ll want to check the boot type in BIOS – it should be set to UEFI. You may also need to enable PCI bifurcation in the BIOS as well.
Good afternoon, after the whole process, I did the installation
of Windows Server 2019, but after installation the Server does not boot into Windows.
Hi Dave,
Thanks for your question. The R640 does in fact support both PCIe SSDs and PCIe Bifurcation. However, it is dependent on the operating system containing the correct drivers for the PCI card or PCI SSD adapter.
We cannot guarantee any part which we cannot test for compatibility, and we haven’t tested these servers with the 3rd party PCI NVME cards or 2.5" NVME adapters. Installing one of these cards may cause the server to run in safemode, spinning the fans up to 100%. Usually, the 2.5" NVME adapters are not compatible with the SAS/RAID controllers used in these model servers.
What do you think of those NVMe M.2 adapters which plug into a PCIe slot? You can find many inexpensive PCIe adapters on eBay which support 1, 2 or 4 NVMe M.2 drives. The ones which support 2 or 4 NVMe drives require a motherboard which supports PCIe bifurcation, but the R640 apparently does. Here are a couple of search strings you can use on eBay:
PCIe M.2 NVME profile -SATA
PCIe M.2 NVME “supports 4” -SATA
Alternately, if you want to go the U.2 route, there are M.2 NVMe to U.2 enclosures for under $10. What do you think of them? Here’s an eBay search string:
M.2 NVMe PCIe to U.2 2.5 SSD
To the techmikeny.com webmaster, Your posts are always informative and well-explained.
Thanks for the question, Dean. It’s important for NIC’s to support more than just the fastest speed to ensure compatibility with older connections and cabling; network environments are diverse, and different devices or network segments may have varying speed capabilities or requirements.
As for choosing the right NIC, your best bet is really just thoroughly researching your system’s requirements. The connection should match with your existing network hardware; however, the components on the servers are easily upgradeable, so remember, you’re not stuck with one type of connection forever. You can add a PCI NIC with a different type and speed of connection and you can change your network switch to match the new connections, be it 10GB Copper/RJ-45 Connections or 10/25/40GB Fiber SFP connections.
Why is it important for NICs to support more than just the fastest speed, and how do you choose between which NIC you might need?
Hey Mike,
Great question, thanks for asking! Dell doesn’t have a central directory with that information, but we compiled a table together for Dell’s NDC’s compatible with 12th and 13th/14th gen servers.
Here’s the link to copy and paste if you’d like to check it out:
https://techmikeny.com/blogs/techtalk/you-asked-we-answered-dell-ndc-parts-chart
One thing that is daunting is the expansive list of NICs& NDCs have boards that look equivalent (eg 4×1G RJ45) but have very different prices and only Dell bingo numbers to distinguish them. given the evolution of the Ethernet chips, knowing which part is on the card is golden. Is there an xref somewhere for the Dell novitiates?
Hey Zach,
Good catch! Just fixed it, thank you for letting us know.
Good info, thanks. Under “Number of ports”: You have the captions and the cards mixed up, which is a bit unfortunate as the caption is part of the image!
These are wonderful ideas to keep old tech in our lives in a creative way!
Bought Kingston 3200 ECC ram to build a server on a Asus Crosshair Hero VIII. Would you recommend this route? Just want an outside opinion before going forward as this is my first Server build. Thanks for your knowledge it’s much appreciated. Happy Holidays 😎
— Ron Greenwald