Page 4 of 4

Re: [HOWTO] JAILS - FreeBSD in a chroot

Posted: 01 Jan 2015 17:06
by ernie
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

Re: [HOWTO] JAILS - FreeBSD in a chroot

Posted: 04 Jan 2015 22:28
by ernie
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.

Re: [HOWTO] JAILS - FreeBSD in a chroot

Posted: 04 Jan 2015 23:06
by mekonghigh
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

Re: [HOWTO] JAILS - FreeBSD in a chroot

Posted: 22 Feb 2015 11:54
by rifkin
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?

Re: [HOWTO] JAILS - FreeBSD in a chroot

Posted: 21 Mar 2015 20:54
by mekonghigh
rifkin wrote:I have the same issue, did you fix it?
No, i did a new install of NAS4free and Finch.

Re: [HOWTO] JAILS - FreeBSD in a chroot

Posted: 27 Sep 2015 22:42
by wirez05
I am having issues with the new jail setup. can someone show me how to setup a jail within Alcatraz that will support plex?

Re: [HOWTO] JAILS - FreeBSD in a chroot

Posted: 28 Sep 2015 01:40
by Parkcomm
Wirez05 - Alcatraz and Finch are two different things - you should post in theBrig forum viewtopic.php?f=79&t=3894

Re: [HOWTO] JAILS - FreeBSD in a chroot

Posted: 03 Oct 2015 10:43
by Emeds
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.

Re: [HOWTO] install Finch BSD in chroot

Posted: 27 Jul 2016 22:37
by MikeMac
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.

Re: [HOWTO] install Finch BSD in chroot

Posted: 10 Sep 2016 22:51
by zirum
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...

Re: [HOWTO] install Finch BSD in chroot

Posted: 10 Sep 2016 23:50
by MikeMac
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.

Re: [HOWTO] install Finch BSD in chroot

Posted: 12 Sep 2016 11:59
by zirum
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/

Re: [HOWTO] install Finch BSD in chroot

Posted: 23 Nov 2016 18:37
by MikeMac
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.