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!

Making a jail with The Brig.

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
captainkent
NewUser
NewUser
Posts: 8
Joined: 04 Nov 2016 19:44
Status: Offline

Making a jail with The Brig.

Post by captainkent »

Hi guys,

I installed The Brig using OBI, and it seemed to install fine.
Image

After this, I downloaded the tarballs, which also went fine.
Image

I then went to jails and configured it as the following.
Image

When I try to select the installation sources (the tarballs I downloaded), after I click save it just takes forever to save, but they don't remain selected.

Then I end up seeing this.
Image

I can't seem to start any of my jails either.

Anybody have any idea what is going wrong?

captainkent
NewUser
NewUser
Posts: 8
Joined: 04 Nov 2016 19:44
Status: Offline

Re: Making a jail with The Brig.

Post by captainkent »

OK, I seemed to have figured it out. When I make a custom path for my jails, e.g.

Code: Select all

/mnt/Disk_0/nas4free/extensions/thebrig/jails/{jail_name}
it won't actually let me store my jails there.

If I use the default jail path, it creates the jail pretty much straight away and runs it, but it places it in in the installation directory (which I don't want).

I tried manually creating the directory and then making the jail, but this also doesn't work.

captainkent
NewUser
NewUser
Posts: 8
Joined: 04 Nov 2016 19:44
Status: Offline

Re: Making a jail with The Brig.

Post by captainkent »

So I messed up, I had

Code: Select all

/mnt/Disk_0/nas4free/extensions/thebrig/jails/{jail_name}
listed as

Code: Select all

]/mtn/Disk_0/nas4free/extensions/thebrig/jails/{jail_name}
.

I got it up and running now!

I do have another question, which tarballs should I be using (I'm on x64)?

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: Making a jail with The Brig.

Post by MikeMac »

captainkent wrote: which tarballs should I be using (I'm on x64)?
1) Check base FreeBSD version, fe on main system info nas4free screen. Say, it is 10.3.0.3 - Pilingitam (revision 3105)
Here 10.3 is your FreeBSD version. x64 mean amd64.

2) Locate with TheBrig 10.3 and amd64 variants of base and lib32 tarballs. You need both for any jail.
So in current version FreeBSD-amd64-10.3-RELEASE-base.txz and FreeBSD-amd64-10.3-RELEASE-lib32.txz

In rare cases you could need also src and, almost never, doc tarballs. But you could download src and doc tarbals later.

captainkent
NewUser
NewUser
Posts: 8
Joined: 04 Nov 2016 19:44
Status: Offline

Re: Making a jail with The Brig.

Post by captainkent »

MikeMac wrote:
captainkent wrote: which tarballs should I be using (I'm on x64)?
1) Check base FreeBSD version, fe on main system info nas4free screen. Say, it is 10.3.0.3 - Pilingitam (revision 3105)
Here 10.3 is your FreeBSD version. x64 mean amd64.

2) Locate with TheBrig 10.3 and amd64 variants of base and lib32 tarballs. You need both for any jail.
So in current version FreeBSD-amd64-10.3-RELEASE-base.txz and FreeBSD-amd64-10.3-RELEASE-lib32.txz

In rare cases you could need also src and, almost never, doc tarballs. But you could download src and doc tarbals later.
Thanks for the answer.

I ended up just running the jail with all of the tarballs. I needed the src to recompile a part of the kernel, but turns out I was doing it the wrong way anyway.

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: Making a jail with The Brig.

Post by MikeMac »

captainkent wrote:I needed the src to recompile a part of the kernel, but turns out I was doing it the wrong way anyway.
I am afraid, you could not use recompillede kernel in jail. You need virtual machine. Both virtual box and bhyve currently included from the box in nas4free. vbox is simpler to use and slower, bhive is far more sophisticated, but have nearly full hosts processing power.

I noticed openvpn on your screenshot. I have not testes, but could bet, there are additional roadblocks in jail to use openvpn. I hope all are
surmountable, say https://forums.freebsd.org/threads/22143/. But may be it would be more easy to use chroot instead of jail. Chroot have less restrictions. There is finch add-on on this forum. It works for years on my nas. Recently I have tried on virtual machine to upgrade to FreeBSD 11.0-RELEASE-based nas4free with chroot installed and to install 11-based from the scratch. Both works after developer had made small correction for 11.0-RELEASE

captainkent
NewUser
NewUser
Posts: 8
Joined: 04 Nov 2016 19:44
Status: Offline

Re: Making a jail with The Brig.

Post by captainkent »

Thanks for your reply.

I didn't know I couldn't use a recompiled kernel in a jail, that explains many issues I had (mainly with networking).

I am indeed trying to install a VPN server, either OpenVPN or Softether. Both are giving me difficulties, which I think are because of the jail.

I am trying to experiment with them in a VirtualBox, but have only tried to test Softether so far. Tomorrow I will try OpenVPN.

I will try and install Finch, to see if maybe chroot gives me more options to get it working!

If I can get OpenVPN or Softether to work, I will post my findings here (maybe also a guide).

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: Making a jail with The Brig.

Post by MikeMac »

captainkent wrote:If I can get OpenVPN or Softether to work, I will post my findings here (maybe also a guide).
Today there is release of FreeBSD 11.0-RELEASE based nas4free. This is a major OS version change. If you try to do something sophisticated (and you really do) I recommend to do it in newer OS. Just to avoid double work.

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: Making a jail with The Brig.

Post by alexey123 »

As I understand, TheBrig currently not work with NAS4Free -11 based platform.
I'll work on TheBrig
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

captainkent
NewUser
NewUser
Posts: 8
Joined: 04 Nov 2016 19:44
Status: Offline

Re: Making a jail with The Brig.

Post by captainkent »

MikeMac wrote: Today there is release of FreeBSD 11.0-RELEASE based nas4free. This is a major OS version change.
Thanks for the heads up! Maybe I can first install NAS4Free FreeBSD 11.0 release on a VM and test it.

Does your finch build still work on the new release?
alexey123 wrote: As I understand, TheBrig currently not work with NAS4Free -11 based platform. I'll work on TheBrig
Any idea when it will be up and running?

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: Making a jail with The Brig.

Post by MikeMac »

captainkent wrote:
MikeMac wrote: Does your finch build still work on the new release?
It is not mine :) I am just use it.

And yes, currently finch work on my bare metal NAS with 11.0.0.4 - Sayyadina (revision 3252). I had not upgraded finch yet from 10.3 as I am trying to make native rrd work. Plex installed into finch works fine. But on virtual box I had tested both finch clean installation to 11.0-based nas4free and upgrade from 10.3 to 11.0 There was small problem due to FreeBSD 11.0 does not include gamez tarball, but finch author had made nessesary correction in just minutes after my e-mail.

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: Making a jail with The Brig.

Post by alexey123 »

captainkent wrote:
Any idea when it will be up and running?
I begin work on TheBrig
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

Post Reply

Return to “Jails”