*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[HOWTO] install Finch BSD in chroot

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1417
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: [HOWTO] JAILS - FreeBSD in a chroot

#91

Post by ernie » 01 Jan 2015 17:06

I have the same issue with nayla version and plex in a jail of finch.
It was not the case with 972 version of nas4free.

Any suggestion ?

And Happy New Year
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))

User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1417
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: [HOWTO] JAILS - FreeBSD in a chroot

#92

Post by ernie » 04 Jan 2015 22:28

It seems that the version 0.9.11.4 gives problem on nas4free.

I used the version 0.9.8.18 in a jail of finch and it is fine.

But only with this command as root in the jail. The type of compilation has an influence on the version.

plex ~/ root~# pkg_add -r plexmediaserver

After some minutes (download):

Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports ... rver.tbz... Done.
===> Creating users and/or groups.
Creating group 'plex' with gid '972'.
Creating user 'plex' with uid '972'.

plex ~/ root~# echo plexmediaserver_enable="YES" >> /etc/rc.conf

plex ~/ root~# /usr/local/etc/rc.d/plexmediaserver start

Starting plexmediaserver.
plex ~/ root~#

Why the version 0.9.11.4 doesn't work, unfortunately I don t know.
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))

mekonghigh
Starter
Starter
Posts: 39
Joined: 13 Oct 2013 18:03
Status: Offline

Re: [HOWTO] JAILS - FreeBSD in a chroot

#93

Post by mekonghigh » 04 Jan 2015 23:06

I have some problems to update the repository and don't know what to do now.

Code: Select all

jail ~/ root~# pkg update -f
Updating FreeBSD repository catalogue...
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/digests.txz: No address record
pkg: Unable to update repository FreeBSD

Code: Select all

Version 	    9.3.0.2 - Nayla (revision 1268)
Build date 	 Sun Jan 4 03:43:02 CET 2015
Platform OS 	FreeBSD Revision: 199506
               FreeBSD 9.3-RELEASE-p7 #0 r276635M: Sun Jan 4 00:32:46 CET 2015

Code: Select all

nas4free // root^> finch --version
finch: 1.28, 22879731b9, Wed Dec 31 17:33:56 CET 2014.

nas4free // root^> cat "/var/db/finch/installed"
FreeBSD-amd64-9.3-RELEASE

rifkin
NewUser
NewUser
Posts: 4
Joined: 20 Feb 2014 18:05
Status: Offline

Re: [HOWTO] JAILS - FreeBSD in a chroot

#94

Post by rifkin » 22 Feb 2015 11:54

mekonghigh wrote:I have some problems to update the repository and don't know what to do now.

Code: Select all

jail ~/ root~# pkg update -f
Updating FreeBSD repository catalogue...
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/digests.txz: No address record
pkg: Unable to update repository FreeBSD

Code: Select all

Version 	    9.3.0.2 - Nayla (revision 1268)
Build date 	 Sun Jan 4 03:43:02 CET 2015
Platform OS 	FreeBSD Revision: 199506
               FreeBSD 9.3-RELEASE-p7 #0 r276635M: Sun Jan 4 00:32:46 CET 2015

Code: Select all

nas4free // root^> finch --version
finch: 1.28, 22879731b9, Wed Dec 31 17:33:56 CET 2014.

nas4free // root^> cat "/var/db/finch/installed"
FreeBSD-amd64-9.3-RELEASE
Hi!

I have the same issue, did you fix it?

mekonghigh
Starter
Starter
Posts: 39
Joined: 13 Oct 2013 18:03
Status: Offline

Re: [HOWTO] JAILS - FreeBSD in a chroot

#95

Post by mekonghigh » 21 Mar 2015 20:54

rifkin wrote:I have the same issue, did you fix it?
No, i did a new install of NAS4free and Finch.

wirez05
Starter
Starter
Posts: 20
Joined: 02 Jun 2014 01:24
Status: Offline

Re: [HOWTO] JAILS - FreeBSD in a chroot

#96

Post by wirez05 » 27 Sep 2015 22:42

I am having issues with the new jail setup. can someone show me how to setup a jail within Alcatraz that will support plex?

User avatar
Parkcomm
Advanced User
Advanced User
Posts: 389
Joined: 21 Sep 2012 12:58
Location: Australia
Status: Offline

Re: [HOWTO] JAILS - FreeBSD in a chroot

#97

Post by Parkcomm » 28 Sep 2015 01:40

Wirez05 - Alcatraz and Finch are two different things - you should post in theBrig forum viewtopic.php?f=79&t=3894
NAS4Free Embedded 10.2.0.2 - Prester (revision 2003), HP N40L Microserver (AMD Turion) with modified BIOS, ZFS Mirror 4 x WD Red + L2ARC 128M Apple SSD, 10G ECC Ram, Intel 1G CT NIC + inbuilt broadcom

Emeds
Starter
Starter
Posts: 24
Joined: 26 Sep 2015 19:46
Status: Offline

Re: [HOWTO] JAILS - FreeBSD in a chroot

#98

Post by Emeds » 03 Oct 2015 10:43

Hey, nice work with Finch - I've been enjoying it thus far.

edit: nevermind, found my mistake:

Code: Select all

finch_realpath="/mnt/disk0/finch" # <---- our finch chroot
zfspool="disk0"                   # <---- our zfs pool
dataset="disk0/my_dataset"        # <---- our zfs dataset
Wasn't doing this part, I took the "If we have" as some sort of naming scheme reference. You have to issue the command "dataset="disk0/my_dataset", d'oh!

and since I did things goofy the first time, doing this step:

Code: Select all

# ...and add the following line (not the >>> arrows!)
>>>
/mnt/$dataset /usr/jails/my_jail/mnt/$dataset nullfs ro 0 0
>>>
manually, by entering /mnt/disk0/my_dataset INSTEAD OF referencing it like "/mnt/$dataset" did the trick for me.
Setup:
-Old Desktop + 3x WD RED 3TB NAS DRIVES in RAIDZ1

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

Re: [HOWTO] install Finch BSD in chroot

#99

Post by MikeMac » 27 Jul 2016 22:37

This project is deprecated / abandoned by the developer.

But I still use one, mainly for Plex. Yesterday I had sucessfully upgraded finch to 10.3 using procedure, documented by developer.

So the project is abandoned - but still works fine, even on FreeBSD versions, does not exist at the time of development.

zirum
NewUser
NewUser
Posts: 13
Joined: 13 Mar 2013 09:08
Status: Offline

Re: [HOWTO] install Finch BSD in chroot

#100

Post by zirum » 10 Sep 2016 22:51

Hi Folks!

Anyone know the proper way to remove finch? Been using it up untill recently, but having some problems after upgrading to 10.3.0.3. May not be any problems to upgrade if done properly, but thought to move to One Click Installer from crest. Not sure how to remove finch though. Especially due to the mounting procedure... I tried the finch-boostrap uninstall, but got cold feet when it stated "deleting finch folder" which I was afraid due to linking may contain my files...

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

Re: [HOWTO] install Finch BSD in chroot

#101

Post by MikeMac » 10 Sep 2016 23:50

zirum wrote:proper way to remove finch?
am pretty sure, proper way is with finch uninstall procedure. If you have "linked files" - just make backup. Or zfs snapshot.

But in case if uninstall procedure is not acceptable - just comment finch postinit and shutdown scripts and reboot. all files will be preserved, you could manually delete ones say, a week later. Or, if something goes wrong - uncomment comand scripts and have finch back.

zirum
NewUser
NewUser
Posts: 13
Joined: 13 Mar 2013 09:08
Status: Offline

Re: [HOWTO] install Finch BSD in chroot

#102

Post by zirum » 12 Sep 2016 11:59

I guess my problem is competence... I remeberer I struggled a bit with reorganizing the zfs configuration to move it "into" finch. But I am a bit unsure how to revert these steps the right way. I stranded alreay when trying to unmount the zfs outside finch, with message Device Busy.

I'll try to read this manual a couple of times more, before asking again... :-)
http://dreamcat4.github.io/finch/mounting-filesystems/

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

Re: [HOWTO] install Finch BSD in chroot

#103

Post by MikeMac » 23 Nov 2016 18:37

Just to confirm.

Finch is working on 11.0.0.4 - Sayyadina (revision 3252), after small commit from dreamcat4 (developer). This commit exclude games.txz tarball from download procedure due to this tarball is no longer a part of FreeBSD.

With virtual machines I had sucessfully made both finch clean install on 11.0-based NAS and upgrade from 10.3-based to 11.0 based. Installation and upgrade procedures as per developer docs.
Than I had made finch upgrade from 10.3-based to 11.0 based on my bare metal NAS. Everything, include Plex in chroot and jails under finch works normally.

Post Reply

Return to “Jails”