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!

Help needed to get a jail running.

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
oldskater
Starter
Starter
Posts: 43
Joined: 10 Oct 2012 14:55
Status: Offline

Help needed to get a jail running.

Post by oldskater »

Hi Guys

I am trying to get a jail running on my embedded install of n4f following the guide here
http://wiki.nas4free.org/doku.php?id=do ... owto:jails
It seems to work fine until the last stage

Code: Select all

# jls
    
    JID  IP Address      Hostname                      Path
    1    192.168.1.201   proto.domain.local            /jail/proto
If jls command does not work type the command below then try again (we're working on this issue).
#rehash
Then enter it:

# jexec 1 csh	# enter jail 1 in our case proto
as stated the jls command does not work for me, also it does not work after using the rehash command.

any help or suggestions would be much appreciated.

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

Re: Help needed to get a jail running.

Post by alexey123 »

Before type

Code: Select all

 jexec 1 csh
you need start jail with command

Code: Select all

/mnt/data/jail/conf/jail_start
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

oldskater
Starter
Starter
Posts: 43
Joined: 10 Oct 2012 14:55
Status: Offline

Re: Help needed to get a jail running.

Post by oldskater »

Thanks alexey123, But I have just worked out what I was doing wrong, when configuring rc.conf.local I gave it the same IP as my n4f, not only causing jls command not to work, but making n4f non accessible due to the IP conflict.
Yay my jail is working, now to do something useful with it. lol

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

Re: Help needed to get a jail running.

Post by alexey123 »

when configuring rc.conf.local I gave it the same IP as my n4f
This wrong.
Interface have name, for example em0. Name need be some as n4f
Ip need be from some subnet. I have n4f ip=10.0.0.1, and jail ip=10.0.0.20
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”