My very first jail creation

Status
Not open for further replies.

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
I've screwed up trying to get jail with plex all day yesterday, went to
sleep frustrated and nuked everything this morning. Starting over
with previous boot environment and config file. Like last night
never happened.

Been reading since 7am this morning, but nothing has caused the
Aha! moment.

Please take a look and tell me is this the proper "place" the put my
new jail?
jails-settings1.JPG
 

Mlovelace

Guru
Joined
Aug 19, 2014
Messages
1,111
I've screwed up trying to get jail with plex all day yesterday, went to
sleep frustrated and nuked everything this morning. Starting over
with previous boot environment and config file. Like last night
never happened.

Been reading since 7am this morning, but nothing has caused the
Aha! moment.

Please take a look and tell me is this the proper "place" the put my
new jail?
View attachment 21106
I typically create a dataset called "Jails" on the pool and use that for jail storage.
Jails.JPG


Edit: Just FYI, this is a great guide for getting Plex up and running in the jail if you're struggling a bit. https://forums.freenas.org/index.ph...ombi-transmission-nzbget-sabnzbd-organizr.58/
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
So is your dataset named jails, is it unix or windows?
Mine defaulted to Unix and I can't get to appear in a browser after typing http://192.168.1.21:32400
dataset-options.JPG

Do I need to switch it to Windows so plex will come up in the browser?
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Do I need to switch it to Windows so plex will come up in the browser?
Do NOT change the permissions on your jails dataset or you will nuke your jails. Default Unix permissions with root/wheel as owner/group is what you want.
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
Do NOT change the permissions on your jails dataset or you will nuke your jails. Default Unix permissions with root/wheel as owner/group is what you want.
If the permissions were set to Windows at any time in the jails dataset, I need to tear it down and start over?
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
Code:
root@jail:/ # ls -l															
total 101																	  
-rw-r--r--   2 root	wheel	 957 Sep 28  2016 .cshrc						
-rw-r--r--   2 root	wheel	 249 Sep 28  2016 .profile					
drwxr-xr-x   2 root	wheel	  47 Sep 28  2016 bin						  
drwxr-xr-x   8 root	wheel	  51 Sep 28  2016 boot						
-r--r--r--   1 root	wheel	6197 Sep 28  2016 COPYRIGHT					
dr-xr-xr-x  12 root	wheel	 512 Oct 14 16:39 dev						  
drwxr-xr-x  25 root	wheel	 109 Oct 14 16:39 etc						  
drwxr-xr-x   4 root	wheel	  56 Sep 28  2016 lib						  
drwxr-xr-x   3 root	wheel	   5 May 12 11:32 libexec					  
drwxrwxr-x+  4 nobody  nogroup	 4 Oct 14 16:48 media						
drwxr-xr-x   2 root	wheel	   2 Sep 28  2016 mnt						  
dr-xr-xr-x   1 root	wheel	   0 Oct 14 17:09 proc						
drwxr-xr-x   2 root	wheel	 146 Sep 28  2016 rescue						
drwxr-xr-x   2 root	wheel	   7 Oct 14 14:32 root						
drwxr-xr-x   2 root	wheel	 136 Sep 28  2016 sbin						
lrwxr-xr-x   1 root	wheel	  11 Sep 28  2016 sys -> usr/src/sys			
drwxrwxrwt   9 root	wheel	  12 Oct 14 16:39 tmp						  
drwxr-xr-x  16 root	wheel	  16 Oct 14 14:13 usr						  
drwxr-xr-x  24 root	wheel	  24 Oct 14 16:39 var						  
root@jail:/ #	

So if I'm beginning to understand this, the media mount within the jail root (drwxrwxr-x+) should not be nobody/nogroup, it should be root/wheel ???
 
Last edited:

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
You don't need to change permissions on your jails datasets. Create the jail and leave it alone. Add storage as needed from the storage menu for each jail and set permissions as needed for the dataset you mount to the jail not the jail itself.
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Actual permissions settings are best answered by someone who knows more than I do on the subject. @m0nkey_ or @anodos would likely be a better source for that answer.
 

styno

Patron
Joined
Apr 11, 2016
Messages
466
Mhhh I could've sworn that I've never manually created the jails dataset. Maybe it gets auto-created at /mnt/yourpool/jails when you install a plugin?

upload_2017-10-15_9-12-9.png
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
You rang?

I'm like the others, I have a UNIX dataset called jails which I created manually. Leave permissions as defaults.

As for storage within the jail, just make sure that the permissions allow whatever you need. For my case, Plex only has read-only to my media datasets. Just make sure that the UID/GIDs match between FreeNAS and the jail. If you're using ACLs, same still applies.
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
Just make sure that the UID/GIDs match between FreeNAS and the jail
This is possibly the only thing left for me to learn how to do (changing the user/group inside the jail).
I'm gonna take some time to read the FreeNAS docs and see if I can get a clue. Thanks!
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
Just to verify I'm doing things correctly, my media dataset (plex media) is SMB (windows)
with user = nobody & group = nogroup (this is the same for all if my other datasets.
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
Just to verify I'm doing things correctly, my media dataset (plex media) is SMB (windows)
with user = nobody & group = nogroup (this is the same for all if my other datasets.
As long as everyone has read access, you should be fine.
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
I wasted ALOT of time screwing around with plex_in_a_jail.
I don't know if this bug was screwing things up for me, but
I never could get plex to see my media dataset on FreeNAS!
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Did you manually type the path to your mount point? Seems several people have reported that they are stuck in /var on a fresh Plex install and have to manually type the path to their media mount point.
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
I tried several times to enter the path manually. It just seems that there
was something simple preventing it from connecting to the files, I just
think I'll take some time away from it and perhaps go back to a 9.10
install (or another version) in a week or so and try it again. Right now,
I'm really all out of patience. My wife said she's never heard me talk
that much to my computer...
 
Status
Not open for further replies.
Top