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!

Any way to create jail on arm version?

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Any way to create jail on arm version?

Post by MikeMac »

I have tested odroid c1 version, and one works fine. Great job, Aoyama-san!

But I could not find a way to create jail on it. basically, I need FreeBSD tarballs, but have found only images at http://ftp.freebsd.org/pub/FreeBSD/snap ... AGES/11.0/

Does any solution exists?

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

Re: Any way to create jail on arm version?

Post by alexey123 »

I try compille Pi2 for make tarball only. Working machine is HOME server - E350
1.Create jail for compilations and download Freebsd sources
2 . As wrote in https://wiki.freebsd.org/FreeBSD/arm/Ra ... 02%20image , I execute

Code: Select all

mkdir /mnt/pi2
cd /usr/src
make TARGET_ARCH=armv6 UBLDR_LOADADDR=0x2000000 buildworld
It begin compille. if success I make tarball

Code: Select all

make TARGET_ARCH=armv6 DESTDIR=/mnt/pi2 installworld distribution
If all success, I'll try compile some for Banana pi .

I put result into http://alexeykr.noip.me/tarball/pi2.xz Please check
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

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

Re: Any way to create jail on arm version?

Post by MikeMac »

alexey123 wrote:I put result into http://alexeykr.noip.me/tarball/pi2.xz Please check
alexey123, my applause! I have RPI2, but my installation is on odroid c1. But looking on make key, you had used, I suppose to try - no anything PRI2 specific.

So I had created jail by hands as per my old (Russian) post http://2gusia.livejournal.com/28567.html
I had not used TheBrig for having less potential incompatibility points.

Code: Select all

 n4fodroid: ~# jls
   JID  IP Address      Hostname                      Path
     1  192.168.1.32    proto.nas4free.local          /jail/proto
 n4fodroid: ~#  jexec 1 tcsh
root@proto:/ # ls
.cshrc          bin             lib             proc            sys
.profile        boot            libexec         rescue          tmp
.rnd            dev             media           root            usr
COPYRIGHT       etc             mnt             sbin            var
root@proto:/ #
The only warning at log is not too important

Code: Select all

Jan 2 21:40:42 	n4fodroid 	root: /etc/rc.d/jail: WARNING: Per-jail configuration via jail_* variables is obsolete. Please consider to migrate to /etc/jail.conf.
Thank you. Will try to install usefull sw into this jail

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

Re: Any way to create jail on arm version?

Post by MikeMac »

ups...

Code: Select all

root@proto:/ # pkg
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:10:armv6/quarterly, please wait...
pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:10:armv6/quarterly/Latest/pkg.txz: Not Found
A pre-built version of pkg could not be found for your system.
Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
root@proto:/ #
so only from ports... If I'll be lucky enough and have enough time

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

Re: Any way to create jail on arm version?

Post by alexey123 »

PLEASE NOTE!
I compille tarball under 10.2 NAS4Free based jail - so you have 10.2 based tarball. And it work. This is good point, I can by Banana PI board

About warning message - from FreeBSD 9.3 jail must be open over jail.conf https://www.freebsd.org/cgi/man.cgi?que ... tion=5&n=1
See alcatraz - it work over this way

You must build tarball itself on special host , if you want create tarball itself. Jist buld 11-based freebsd and download sources
NOT USE VIRYIAL BOX, because it very slow.
MikeMac wrote:ups...

so only from ports... If I'll be lucky enough and have enough time
Over ports is true way
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

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

Re: Any way to create jail on arm version?

Post by MikeMac »

alexey123 wrote:PLEASE NOTE!
I compille tarball under 10.2 NAS4Free based jail - so you have 10.2 based tarball.
yes :( already understood
make: "/usr/ports/Mk/bsd.port.mk" line 1172: UNAME_r (11.0-CURRENT) and OSVERSION (1002000) do not agree on major version number.
So I should upgrade jail, before I could build from ports...

UPD.
alexey123 wrote:NOT USE VIRYIAL BOX, because it very slow.
and jail upgrade with try to build world on arm will be even more time consuming :(

So I am back - still need tarball for prorer OSVERSION.
But there is good point - now I know - this is possible!

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

Re: Any way to create jail on arm version?

Post by alexey123 »

Tommorow I'll build FreeBSD 11 on faster CPU, then my E350
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

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

Re: Any way to create jail on arm version?

Post by MikeMac »

alexey123 wrote:Tommorow I'll build FreeBSD 11 on faster CPU, then my E350
great! thank you

I will be at holidays at my close relatives home, but arm NAS will be with me - I am going to install one here. So I will try you new cooking

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

Re: Any way to create jail on arm version?

Post by alexey123 »

I compille new one, under FreeBSD 11
http://alexeykr.noip.me/tarball/pi2_11.xz
Check it pls
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”