Re: ezjail.flavour

2009-12-29 Thread Philipp Wuensche
Andrew Hotlab wrote:
> 
> I can't wait to test all new ezjail features from the current CVS release!

I commited the stuff to the CVS yesterday, create a jail as normal and
use ezjail-admin config -f   to set the fib.

Feel free to send feedback to the ezjail-mailinglist!

greetings,
cryx
___
freebsd-jail@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"


RE: ezjail.flavour

2009-12-28 Thread Andrew Hotlab

Thank you so much Philipp, I'll get the CVS version as soon as possible. In the 
meantime
I tried to add support for FIBs to the ports version and (that's incredible!) 
it seems
to function!  Excuse my enthusiasm, but it's not my job, and I really need 
multiple
routing table support, since I maintain a few host running multiple jails in 
different
IP subnets (and each subnet has a different default gateway). Until now I have
"manipulated" traffic to/from jails using a couple of simple PF rules, but these
rudimentary patches (see the attachments) finally let me leverage the multiple 
FIBs
feature on my FreeBSD RELENG_7_2 hosts.

I assume the ROUTETABLES kernel options has been included, and I make
ezjail-admin to insert the variable jail_${jailname}_fib to "0" in each new 
jail's
definition file under ${ezjail_prefix}/etc/ezjail/.An administrator has to 
assign
the correct FIB number to this variable, and both the scripts ezjail.sh and
ezjail-admin read its value before starting or creating a console session
for the registered jail.

I can't wait to test all new ezjail features from the current CVS release!

Greetings

Andrew


> Date: Mon, 28 Dec 2009 17:41:19 +0100
> From: cryx-free...@h3q.com
> To: andrew.hot...@hotmail.com
> CC: b...@ipt.ru; freebsd-questi...@k-moeller.dk; freebsd-jail@freebsd.org
> Subject: Re: ezjail.flavour
>
> Andrew Hotlab wrote:
>> I think ezjail urgently needs some updates in order not to remain behind the 
>> new
>> features in FreeBSD which can dramatically improve the jail system usage 
>> (vnet,
>> ZFS, multiple FIB support, etc). I'm not a shell script expert, but my 
>> everyday
>> work gives me the chance to have a pretty high-level view on what is needed. 
>> I'll be
>> glad to be contacted off-list by someone with some shell scripting skills 
>> and a few
>> hours of spare time to spend with me on this very useful tool.
>
> The ezjail ports version is heavily outdated, the CVS version is much
> more up-to-date. The cvs version has support for jails in dedicated
> ZFS-datasets etc. Currently I'm working on support for "zfs jail" in
> ezjail as well as support for FIBs and cpusets.
>
> I commited your patch to the CVS.
>
> greetings,
> philipp
>
> PS: there is a dedicated ezjail mailinglist
> http://erdgeist.org/arts/software/ezjail/#Author
  
_
Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail 
you.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010

ezjail-admin.patch
Description: Binary data


ezjail.sh.patch
Description: Binary data
___
freebsd-jail@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"


Re: ezjail.flavour

2009-12-28 Thread Philipp Wuensche
Andrew Hotlab wrote:
> I think ezjail urgently needs some updates in order not to remain behind the 
> new
> features in FreeBSD which can dramatically improve the jail system usage 
> (vnet,
> ZFS, multiple FIB support, etc).  I'm not a shell script expert, but my 
> everyday
> work gives me the chance to have a pretty high-level view on what is needed.  
> I'll be
> glad to be contacted off-list by someone with some shell scripting skills and 
> a few
> hours of spare time to spend with me on this very useful tool.

The ezjail ports version is heavily outdated, the CVS version is much
more up-to-date. The cvs version has support for jails in dedicated
ZFS-datasets etc. Currently I'm working on support for "zfs jail" in
ezjail as well as support for FIBs and cpusets.

I commited your patch to the CVS.

greetings,
philipp

PS: there is a dedicated ezjail mailinglist
http://erdgeist.org/arts/software/ezjail/#Author
___
freebsd-jail@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"


RE: ezjail.flavour

2009-12-20 Thread Andrew Hotlab

It seems that FreeBSD 8 does not like to start rc scripts named *.sh. Here is a 
little
patch for the script ezjail-admin which seems to fix the problem.


--- ezjail-admin2009/12/20 23:28:09 1.1+++ ezjail-admin 
2009/12/20 23:28:26
@@ -550,7 +550,7 @@

     # If a config is found, make it auto run on jails startup
     if [ -f "${ezjail_rootdir}/ezjail.flavour" ]; then
-      ln -s /ezjail.flavour "${ezjail_rootdir}/etc/rc.d/ezjail-config.sh"
+      ln -s /ezjail.flavour "${ezjail_rootdir}/etc/rc.d/ezjail-config"
       chmod 0700 "${ezjail_rootdir}/ezjail.flavour"
       echo "Note: Shell scripts installed, flavourizing on jails first 
startup."
     fi


I think ezjail urgently needs some updates in order not to remain behind the new
features in FreeBSD which can dramatically improve the jail system usage (vnet,
ZFS, multiple FIB support, etc).  I'm not a shell script expert, but my everyday
work gives me the chance to have a pretty high-level view on what is needed.  
I'll be
glad to be contacted off-list by someone with some shell scripting skills and a 
few
hours of spare time to spend with me on this very useful tool.


Andrew

> To: freebsd-questi...@k-moeller.dk
> From: b...@ipt.ru
> Date: Thu, 17 Dec 2009 11:35:51 +0300
> CC: freebsd-jail@freebsd.org
> Subject: Re: ezjail.flavour
>
> Kalle Møller  writes:
>
>>> I've got the same behaviour. Seems that the script ezjail.flavour
>>> is not executed because it uses old rc rules and so it is ingored
>>> at startup.
>> What are the new rc rules, because it looks fair simple to correct, went
>> through the code yesterday.
>
> Well, I'm not an rc guru. But seems that RC(8) may be a good start.
>
> --
> WBR, bsam
> ___
> freebsd-jail@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-jail
> To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"
  
_
Windows Live Hotmail: Your friends can get your Facebook updates, right from 
Hotmail®.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009___
freebsd-jail@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"


Re: ezjail.flavour

2009-12-17 Thread Boris Samorodov
Kalle Møller  writes:

>> I've got the same behaviour. Seems that the script ezjail.flavour
>> is not executed because it uses old rc rules and so it is ingored
>> at startup.
> What are the new rc rules, because it looks fair simple to correct, went
> through the code yesterday.

Well, I'm not an rc guru. But seems that RC(8) may be a good start.

-- 
WBR, bsam
___
freebsd-jail@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"


Re: ezjail.flavour

2009-12-16 Thread Kalle Møller
> I've got the same behaviour. Seems that the script ezjail.flavour
> is not executed because it uses old rc rules and so it is ingored
> at startup.
>
> --
> WBR, bsam
>

What are the new rc rules, because it looks fair simple to correct, went
through the code yesterday.

-- 

Med Venlig Hilsen

Kalle R. Møller
___
freebsd-jail@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"


Re: ezjail.flavour

2009-12-16 Thread Boris Samorodov
Kalle Møller  writes:

> I've reinstalled my box and wanted t install ezjail again.
>
> As I remember (when you use flavours) the ezjail.flavour gets run when you
> start a flavoured jail for the first time,
> this does not happen for my jails. They create and the files from the
> flavour get moved and the ezjail.flavour gets linked
> to /etc/rc.d/ and afaik all looks correct. When I start the jail the jails
> come up, but I need to run the ezjail.flavour manually

I've got the same behaviour. Seems that the script ezjail.flavour
is not executed because it uses old rc rules and so it is ingored
at startup.

-- 
WBR, bsam
___
freebsd-jail@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"


Re: ezjail.flavour

2009-12-16 Thread Kalle Møller
On Wed, Dec 16, 2009 at 10:37 AM, Michal  wrote:

> On 16/12/2009 08:40, Kalle Møller wrote:
>
>>
>> and the file is still there = not run (and the users it should add etc is
>> not there either)
>>
>> Anyone got an idea what I'm doing wrong / or is updated
>>
>>
> Unfortunately no idea but just to confirm that I got the same problem.
> Looks like something has changed and the old way (say 6 mths ago last time I
> was doing it and it worked) is not working anymore.
>
> Michal
> --
> "In theory, there is no difference between theory and practice. In
> practice, there is." -Yogi Berra
> ___
> freebsd-jail@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-jail
> To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"
>

Yea sounds right.. I actually encountered it before reinstall (but after
upgrade to 8), I just thought it was me being fubar / or messed to much with
the settings. But after the reinstall I'm quite sure its a bug / something

-- 

Med Venlig Hilsen

Kalle R. Møller
___
freebsd-jail@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"


Re: ezjail.flavour

2009-12-16 Thread Michal

On 16/12/2009 08:40, Kalle Møller wrote:


and the file is still there = not run (and the users it should add etc is
not there either)

Anyone got an idea what I'm doing wrong / or is updated



Unfortunately no idea but just to confirm that I got the same problem. 
Looks like something has changed and the old way (say 6 mths ago last 
time I was doing it and it worked) is not working anymore.


Michal
--
"In theory, there is no difference between theory and practice. In 
practice, there is." -Yogi Berra

___
freebsd-jail@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"