Installing TrueNAS Scale & Plex, from scratch

This handout is not a scientific proven masterpiece. However, it will due for my home setup. It describes step by step to install TrueNAS Scale followed by installing the free version of Plex. TrueNAS Scale and Plex can work together perfectly, if you configure the right Pool/Dataset, SMB user and Plex authorization. In my case I don’t bother having Full Access in all circumstances because only my wife and me use our home network.

Some preparations:
• Create a Rufus bootable USB stick with the TrueNAS Scale-iso file. Sometimes Ventoy will fail to install TrueNAS because of unrecognizable hardware.
• Prepare your NAS with at least 3 drives.
• One disk for TrueNAS Scale operating system
• Two disks for Mirror (TrueNAS Scale needs at least 2 disks for mirror)

Installing TrueNAS Scale:
Install TrueNAS Scale on the disk for TrueNAS Scale operating system. This is the easy part.
After install, reboot the system and let TrueNAS Scale do its first boot.
Accept all the default settings and DHCP config. A fixed IP-address can be set later at the GUI.
Take over the IP-address from the TrueNAS Scale console to your browser.
Login at the TrueNAS Scale GUI. Now your NAS is up and running basically.
To setup a fixed IP-address; select Network. Edit the interface and uncheck DHCP.
Click on Add to setup the fixed IP-address and network mask. Click Save. It will ask you to setup a new default gateway. In most cases you may click Skip.

Now your fixed IP-address is half way. You have to test this in a new browser window with the fixed IP-address. To test this click on Test Changes and switch to a new browser window. Login at the GUI, switch to Network and click Save Changes. Be aware to do all these actions in the default 60 seconds. Now your NAS has a fixed IP-address. You can reboot and verify the console.

When you setup a fixed IP-address at the beginning of the configuration, you will have no issues later on when you want to install Plex. The Plex install will take over the IP-address of TrueNAS Scale.

Adding Disks, Group, Users, Dataset and Shares to TrueNAS Scale:
Disks:
Click Storage, Create pool. Give it a name and click Next.
At Layout choose Mirror. Width and VDEV’s will be filled in automatically. If you have no optional config click Save and go to Review. At the Review click Create Pool. Confirm and click OK.
In this setup the disks are empty/new. If you want to use disks containing irrelevant data you can wipe the disks first in the Storage menu.
Probably you want to use the NAS with a SMB-user. Before you setup a Dataset with SMB there has to be at least one SMB user. So it’s better to create one SMB user before creating a Dataset.

Group:
My wife and I have different usernames so I prefer to work with a Group. You can assign this Groupname during creating the user. So before creating the user, just create a simple Group.
Click Credentials, Groups, Add. Fill in the Name (eg AllShares) and check SMB Group. Click Save.

Users:
Click Credentials, Users, Add. Fill in the properties.
For testing purposes: Choose for: Create No Primary Group.
Auxiliary Groups: Scroll and select (eg AllShares). Primary Group: choose wheel.
Keep SMB User checked below. Click Save.

Dataset:
Click Datasets, Add Dataset. Give it a name and keep Generic for Dataset Preset.
Click Save

Shares:
Click Shares, Windows SMB Shares, Add. Give the path of the Dataset you just created. Fill in the name of the share and click Save. Click Restart Service. Configure ACL, click No.

When the Share is created click the icon Edit Share ACL.
Who: choose Group. Group: choose (eg AllShares). Permission: choose Full. Type: choose Allowed.

At your Windows machine in Explorer go to \\fixed-ip-address\share-name. Fill in the TrueNAS Scale credentials of the SMB user, ét voila. You have access to your NAS from your Windows machine. Verify your read-write access by creating and deleting a testfile or -folder. From this point you can upload/copy content to your planned Plex media server.

Installing Plex:
Click Apps, Check Available Apps, Show All. Scroll down and click on Plex.
Click Setup Pool to Install. Select the Pool and click Choose. Confirm and click Agree.
Give your Plex a name (all lowercase)
Choose Timezone
Choose which network(s) will due
Leave UserID 568 and GroupID 568 untouched
Check Host Network (otherwise Plex cannot access media files)
Plex Data Storage – Host Path
Host Path (path from mnt to the Dataset you created)
Host Path Configuration check Enable ACL. Click Add.
ID Type: Entry is for a USER
ID: 568 (to give Plex access to your Dataset)
Access: Full_ControllAccess (so you can can remove files at the Plex GUI)
ACL Options: check Force Flag (if you already copied some data/movies to the Dataset)

Plex configuration Storage: ixVolume…
ixVolume Configuration: Temporary…
Plex Trancode Storage: Temporary…
Additional Storage: No items…
Click Install (takes a while)
At Applications your will see your Plex App evolving yellow from Deploying to Running green.

Now there come’s a tricky point. I figured out to force a web browser refresh before continuing. Otherwise the Plex Web GUI will call you something like ‘Plex not found…’ Probably this is a bug.

So after the refresh, at the Plex Application Info click on Web GUI. Choose continue with email.
Fill in you Plex email address and password.

Also at this point, probably you need to force a web browser refresh again before you can configure your libraries. Again, I think this is a bug.

Server setup – Fill in the name of your Plexserver. Uncheck using media out of your local network (just for security reasons, and you can setup this later). Click Next.
Add libraries – Movies – Add folders – Browse to Media folder - /data – select folder – Add – Add Library. (repeat if you have or want more media folders)
Click Next, click Ready (yes, you are ready now😉)
On the left of the Plex portal you will see your Plex streaming menu.

Happy Plexing!

3 Likes

Great simple to the point! Really appreciate the help. I have another pool with other video folders that I can’t figure out how to add. Any insight? Thank You Mark Perron

Thank you! All the guides I watched skipped the ACL part. Now I got it finally working.

Hi Mark Perron, thank you for reply. Glad to hear you could use my notes to setup your Plex environment. According to your question about adding an extra pool to PLex; one of the first settings when setting up Plex is to select the pool for installing Plex. After that you can select a dataset from that pool where your media files are located. So imho Plex is ‘as designed’ to connect to one pool only. In my case I have one separate dataset for media files, organized in folders. In Plex you can setup libraries at folder level. Maybe you can consider merging your media files to one dataset?

Hi Gummygnom, good to hear you are up and running. Have a great day!

Hey Randall, thanks for the guide. Unfortunately my library files are still not showing up and I am not sure what I am doing wrong. Every time I get into plex and try to find the folder that I set up as the SMB share, and set plex pointing to on install, it doesn’t show up. I figured it would be in the /mnt section of the browser but that is empty.

Hi Sam, first point coming up is access. During Plex installation, did you check the ACL setup? This because the Plex installation will create hidden user ‘plex’ with user number ‘568’. Use this user/number during Plex installation. This will grant Plex access to your media folder/files on the pool you select to install on.

Do you mean the checkbox for “Enable ACL” under Plex Date storage? If so then yes and then set the host path to where I am storing my media.

Also set the ACL Entries like you said:
ID Type: Entry is for a USER
ID: 568
Access: FULL_CONTROL Access

Hi Sam,
I’m sorry, I think I’m at the end of tips and options. I’m not that golden expert :joy:
Anyway, for me it looks like Plex can’t see the folders (and files).
• So, the mnt-path is not the right path Plex ‘should’ find media files.
• Are you on the same subnet as your Plex server?
Please let me know.

Can you elaborate on what you mean by same subnet? I have plex installed on the same truenas machine where I am keeping my files. In your guide it says “Choose which networks will due”. When I installed it had 3 networks listed:

  • 10.x.x.x/8
  • 172.x.x.x/12
  • 192.x.x.x/16

Found the files. For some reason instead of being in mnt they are in:

/proc/thread-self/root/data/Movies

Hi Sam, good to hear you’re on track. Enjoy your Plex :+1: