(Tutorial) How To Install Plex in a FreeNAS 11.2 Jail

roon3y

Cadet
Joined
Mar 7, 2016
Messages
5
pkg install multimedia/plexmediaserver

not seem to be working.

root@plex:/ # pkg install multimedia/plexmediaserver
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
pkg: No packages available to install matching 'multimedia/plexmediaserver' have been found in the repositories

newbie here, take it easy.
 

BamBamm

Patron
Joined
Aug 30, 2015
Messages
207
When adding a Jail, should the Template be ---- or should I switch it to VirtualBox?
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
-----
 

At1bob

Cadet
Joined
Oct 20, 2012
Messages
5
Thanks Cosmo Kramer for this tutorial, I really appreciate it. I am running freenas 9.2.1.9. I will not upgrade any further due to hardware limitations. I could no longer upgrade plex as a plugin even with the updater script. I believe this is due to freebsd 9.2 is no longer being supported. I'm not sure if this is wise, but I followed your instructions using a 9.3 plugin jail template (in 9.2.1.9). all seemed to work fine and pms is now up and running well. If this was a bad decision please chime in. ( I corrected this post I originally thanked Cyberjock since his posted have repeatedly helped me over the last few years)
 
Last edited:

BamBamm

Patron
Joined
Aug 30, 2015
Messages
207
When I add a jail using the ---- as a template, I get an error that states it is unable to find the template.

http://prntscr.com/adx1t8
 

At1bob

Cadet
Joined
Oct 20, 2012
Messages
5
You should be able to select a jail type from that window. I used just a standard plugin jail.
 

Attachments

  • ScreenHunter_101 Mar. 11 11.05.jpg
    ScreenHunter_101 Mar. 11 11.05.jpg
    52.9 KB · Views: 392

BamBamm

Patron
Joined
Aug 30, 2015
Messages
207
I only have the option to select VirtualBox or the ---- line.
 

DaChaos

Dabbler
Joined
Mar 11, 2016
Messages
11
@BamBamm Check the jails configuration.

I use the "-----" option it's the default & the one used for this tutorial I believe.

If the jail location is blank make a new dataset location for your jails and update jails -> config to the new dataset. (I use /mnt/pool0/jails)
or
If its already filled out try making a new jail location set new location in config.

I just recently had this problem after I removed some hidden jail datasets seeing how the system worked & I did the above and it worked for me.

New guy here. Good luck.
 

BamBamm

Patron
Joined
Aug 30, 2015
Messages
207
Every time I click "Add" after filling in the info, it downloads something called freenas-standard-9.3-RELEASE.tgz, after this downloads, I get an error that states it is unable to find the template.
 

Attachments

  • Jails.png
    Jails.png
    31 KB · Views: 419

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231

BamBamm

Patron
Joined
Aug 30, 2015
Messages
207
Jail created, I will continue on with this tutorial now... Thanks for the help.
As for what I did, all I did was manually changed the last digit in my IP to another digit.
So instead of 192.168.1.2, I did something like 192.168.1.13
 

BamBamm

Patron
Joined
Aug 30, 2015
Messages
207
What do you have in the Collection URL field in Jails > Configuration?

I have > http://download.freenas.org/latest/RELEASE/x64/jails - and have no problems creating default jails.

That said, it could be because I already have the required templates!

I have no default jails, and from what I am reading, I don't need them? I got the Jail to install but now I am getting an error telling me to re-create my database...


Code:
pkg pkg: http://pkg.FreeBSD.org/freebsd:9:x86:64/latest/meta.txz: No address rec
ord                                                                            
pkg: repository FreeBSD has no meta file, using default settings               
pkg install multimedia/plexmediaserver                                         
pkg: http://pkg.FreeBSD.org/freebsd:9:x86:64/latest/packagesite.txz: No address
record                                                                         
pkg: Unable to update repository FreeBSD                                       
root@Plex:/ # jexec 1 tcsh                                                     
jexec: jail_attach(1): Invalid argument                                        
root@Plex:/ # pkg update && pkg upgrade -y                                     
Updating FreeBSD repository catalogue...                                       
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database    
pkg: http://pkg.FreeBSD.org/freebsd:9:x86:64/latest/meta.txz: No address record
pkg: repository FreeBSD has no meta file, using default settings               
pkg: http://pkg.FreeBSD.org/freebsd:9:x86:64/latest/packagesite.txz: No address
record                                                                         
pkg: Unable to update repository FreeBSD                                       
root@Plex:/ # pkg pkg install multimedia/plexmediaserver                       
pkg: unknown command: pkg                                                      
                                                                               
For more information on available commands and options see 'pkg help'.         
root@Plex:/ #                                                                  
root@Plex:/ #                                                                  
root@Plex:/ #  
 

DaChaos

Dabbler
Joined
Mar 11, 2016
Messages
11
At glance that looks like a DNS issue.
I would check the DNS settings.
"No address record"

Network -> Global Config

I would fill in gateway & nameserver 1 & 2 if not already filled out.

Then restart the jail & see if works
 
Last edited:

BamBamm

Patron
Joined
Aug 30, 2015
Messages
207
Okay, I will fill them in. Thank you!
 

BamBamm

Patron
Joined
Aug 30, 2015
Messages
207
Is it normal for the name servers and default gateway to be the same?
 

DaChaos

Dabbler
Joined
Mar 11, 2016
Messages
11
It is normal if your router / gateway forwards your DNS (very common)
In this case you only need Gateway & Nameserver 1
 

BamBamm

Patron
Joined
Aug 30, 2015
Messages
207
Thank you!
 

BamBamm

Patron
Joined
Aug 30, 2015
Messages
207
Still having issues...
root@Plex:/ # pkg update && pkg upgrade -y
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
 
Top