I've previously had NAS4Free 9.x running perfectly with a TheBrig 0.8 jail for my Plex Media Server. I've just bought a HP G1610T with 4x8TB drives ina RAIDz2 array and migrated all my data over, it was all going perfectly until this point.
I've installed the latest NAS4Free v10.2.0.2 - Prester (revision 1814) and latest TheBrig v0.91, then created a jail from FreeBSD 9.3 archives (I don't think Plex works with FreeBSD 10 yet) but when I start the Jail and SSH to it I don't appear to be chrooted - I can access the entire filesystem of my NAS and when I do a 'uname -r' it says "10.2-RELEASE-p2".
There are no obvious errors anywhere except the following lines in thebrig.log, which I don't think are related:
TheBrig ERROR: ps: /boot/kernel/kernel: No such file or directory
TheBrig ERROR: ps: empty file: Invalid argument
I've tried enabling/disabling all options for the jail, i.e. devfs, procfs etc. to no avail.
Am I doing something wrong here? Or is there a problem with my setup??
Thanks for any help you can offer.
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
[RESOLVED] TheBrig chroot problem?
-
meamo
- NewUser

- Posts: 4
- Joined: 05 Sep 2015 15:55
- Status: Offline
[RESOLVED] TheBrig chroot problem?
Last edited by meamo on 06 Sep 2015 11:44, edited 1 time in total.
- MikeMac
- Forum Moderator

- Posts: 429
- Joined: 07 Oct 2012 23:12
- Location: Moscow, Russia
- Contact:
- Status: Offline
Re: TheBrig chroot problem?
It is not so simple. There is workable procedure of upgrading jails from 9.3 to 10.2, but it is not so simple.meamo wrote:then created a jail from FreeBSD 9.3 archives
I had describe one, but only in Russian
https://translate.google.ru/translate?s ... edit-text=
For jails - see chapter IV
As bottom line I do believe, it is much simpler to recreate plex jail. If you care abt media libraries - you could reuse ones.
http://2gusia.livejournal.com/228887.html
use google translator if nessesary
IMHO you are wrong. At least I am using Plex on nas4free 1810, FreeBSD 10.2-based.(I don't think Plex works with FreeBSD 10 yet)
-
meamo
- NewUser

- Posts: 4
- Joined: 05 Sep 2015 15:55
- Status: Offline
Re: TheBrig chroot problem?
Maybe I wasn't clear here. I meant that I downloaded the "FreeBSD-amd64-9.3-RELEASE-base.txz" from the Tarball Management tab and selected this when creating a completely new jail, I am not trying to upgrade my old jail - I have removed all files from the partition before reinstalling TheBrig.MikeMac wrote:It is not so simple. There is workable procedure of upgrading jails from 9.3 to 10.2, but it is not so simple.meamo wrote:then created a jail from FreeBSD 9.3 archives
But maybe I'm misunderstanding something here and it doesn't work as I thought.
Okay that's cool, I'm happy to be wrong in this case. I've just read posts here of problems with Plex on 10, the ezPlex (sp?) post springs to mind plus the Plex website itself says it's for FreeBSD 9.1. If it works okay on 10 then I may have a go at installing it straight on to NAS4Free itself without a jail. But I would like to get jails working for other purposes also.MikeMac wrote:IMHO you are wrong. At least I am using Plex on nas4free 1810, FreeBSD 10.2-based.meamo wrote: (I don't think Plex works with FreeBSD 10 yet)
- MikeMac
- Forum Moderator

- Posts: 429
- Joined: 07 Oct 2012 23:12
- Location: Moscow, Russia
- Contact:
- Status: Offline
Re: TheBrig chroot problem?
WOW! Very creative, but I am afraid not working. Jails could operate (at least in same extent) with different versions comparing host system. But it is safer to keep jail and host with one version of FreeBSD. Why do not you try to use 10.2 RELEASE instead?meamo wrote: I meant that I downloaded the "FreeBSD-amd64-9.3-RELEASE-base.txz"
Plex and ezPlex are different things. I do not use ezPlex, but AFAIK it uses technique for work on nas4free, that should be re-worked with each host OS version change. I personally hate such approach.the ezPlex
Quite bad idea I do not recommend, at least on embedded installation.I may have a go at installing it straight on to NAS4Free
Me too. So I am keeping host and jail FreeBSD versions in sync.But I would like to get jails working for other purposes also.
PS It is true also with chroot version. And I personally use Plex not in jail, but in chroot. No big difference with jailed installation, but DLNA functionality works fine at chroot.
-
meamo
- NewUser

- Posts: 4
- Joined: 05 Sep 2015 15:55
- Status: Offline
Re: TheBrig chroot problem?
Actually my first attempt was using a 10.2 jail, I had the same problem with no chroot and could access the entire filesystem from the jail.MikeMac wrote:WOW! Very creative, but I am afraid not working. Jails could operate (at least in same extent) with different versions comparing host system. But it is safer to keep jail and host with one version of FreeBSD. Why do not you try to use 10.2 RELEASE instead?meamo wrote: I meant that I downloaded the "FreeBSD-amd64-9.3-RELEASE-base.txz"
Yeah I would rather keep my Plex install separate. I assumed ezplex was using chroot but I haven't read the thread properly.Plex and ezPlex are different things. I do not use ezPlex, but AFAIK it uses technique for work on nas4free, that should be re-worked with each host OS version change. I personally hate such approach.
Ah okay, I think I saw your tutorials on this so I'll look into creating my own chroot and installing there. I don't need/use DLNA, I just want a working PMS and if this is how to do it, so be it.Me too. So I am keeping host and jail FreeBSD versions in sync.
PS It is true also with chroot version. And I personally use Plex not in jail, but in chroot. No big difference with jailed installation, but DLNA functionality works fine at chroot.
Thanks,
Marc
-
meamo
- NewUser

- Posts: 4
- Joined: 05 Sep 2015 15:55
- Status: Offline
Re: TheBrig chroot problem?
D'oh! Well don't I feel stupid. It turns out there was nothing wrong with the jail! After setup, I stupidly never logged in with 'jexec 1 csh' but went immediately via SSH.. I'll put this here to hopefully help anyone avoid doing the same!
I tweaked my original install so NAS4Free SSH only listened on 10.0.0.1. I then generated SSH keys on my Plex server (10.0.0.2) and configured /etc/sshd_config on there. This is the bit I forgot about with my new install! When I was SSHing to 10.0.0.2, I was actually accessing NAS4Free and NOT the jail, hence the filesystem being visible.
I've logged in to the Plex server with jexec and configured SSH, and now all works as expected. Currently installing PMS..
Thanks very much for your help MikeMac and I am sorry for wasting your time.
I tweaked my original install so NAS4Free SSH only listened on 10.0.0.1. I then generated SSH keys on my Plex server (10.0.0.2) and configured /etc/sshd_config on there. This is the bit I forgot about with my new install! When I was SSHing to 10.0.0.2, I was actually accessing NAS4Free and NOT the jail, hence the filesystem being visible.
I've logged in to the Plex server with jexec and configured SSH, and now all works as expected. Currently installing PMS..
Thanks very much for your help MikeMac and I am sorry for wasting your time.