Sami Halabi | 1 Oct 2008 13:21
Picon

Multiple IPS - Freebsd 7.1

hi everyone,

I saw a lot of messages about this so here is it - i just patched it (took
me a day but okay :)

i just downloaded the latest src using this sup file - cvsup:
http://www.royalshells.com/download/freebsd/stable-supfile

# cvsup stable-supfile

i applied the following patch (which i changed to get to work with the
current src):
http://www.royalshells.com/download/freebsd/bz_jail7-20080727-11-at146062-Fixed_By_Sody_1.10.08.diff

to patch do:
# cd /usr/src
# patch -p6 < bz_jail7-20080727-11-at146062-Fixed_By_Sody_1.10.08.diff

after done re-compile the kernel:
# cp /usr/src/sys/netinet/in_pcb.h /usr/include/netinet/
# cp /usr/src/sys/sys/jail.h /usr/include/sys/

clean obj dir:
-------------------
# rm -Rf /usr/obj/*

compile jail and jls:
----------------------------
# cd /usr/src/usr.sbin/jail/
# make clean && make depend && make install
(Continue reading)

Nejc S(koberne | 1 Oct 2008 13:58

Re: Multiple IPS - Freebsd 7.1

Hello,

> I saw a lot of messages about this so here is it - i just patched it (took
> me a day but okay :)

does this patch maybe also makes it possible for a jail to listen at a broadcast address?

Thanks,
Nejc
Sami Halabi | 1 Oct 2008 14:06
Picon

Re: Multiple IPS - Freebsd 7.1

hi,
i didn't try it.

i just saw a new path from bz and tried it, now compiling, here is it:
http://people.freebsd.org/~bz/bz_jail7-20080920-01-at150161.diff
Sami

royalshells.com, loyalness.com,

On Wed, Oct 1, 2008 at 1:56 PM, Steven Hartland <killing@...>wrote:

> I would dearly like to see this make the 7.1 release, multi IP's in order
> to support backend interfaces in jails, is something that we hit against
> all the time.
>
>   Regards
>   Steve
> ----- Original Message ----- From: "Sami Halabi" <sodynet1@...>
> To: <freebsd-jail@...>
> Sent: Wednesday, October 01, 2008 12:21 PM
> Subject: Multiple IPS - Freebsd 7.1
>
>
>   hi everyone,
>>
>> I saw a lot of messages about this so here is it - i just patched it (took
>> me a day but okay :)
>>
>> i just downloaded the latest src using this sup file - cvsup:
>> http://www.royalshells.com/download/freebsd/stable-supfile
(Continue reading)

Bjoern A. Zeeb | 1 Oct 2008 14:08

Re: Multiple IPS - Freebsd 7.1

On Wed, 1 Oct 2008, Sami Halabi wrote:

Hi,

> i applied the following patch (which i changed to get to work with the
> current src):
> http://www.royalshells.com/download/freebsd/bz_jail7-20080727-11-at146062-Fixed_By_Sody_1.10.08.diff

I do not know what the "Fixed_By_Sody_1.10.08" part is but
it's at least based on a backlevel patch of mine so I hope
someone fixed the locking for 7.1-PRE.

I had posted a patch for 7-STABLE (7.1-PRE) last month
http://people.freebsd.org/~bz/bz_jail7-20080920-01-at150161.diff
so taking that one you could have save yourself a lot of time I guess.

In case you have changes it would be good to know what you did
or what I do not have so the do not have forks as my version will hit
HEAD soon and has changed (also the user space) since July.

/bz

--

-- 
Bjoern A. Zeeb              Stop bit received. Insert coin for new game.
Bjoern A. Zeeb | 1 Oct 2008 14:09

Re: jail/broadcast IP [was: Multiple IPS - Freebsd 7.1]

On Wed, 1 Oct 2008, Nejc S(koberne wrote:

Hi,

> does this patch maybe also makes it possible for a jail to listen at a broadcast address?

So before you are going to post this to another thread -- what are you
trying to achive?

--

-- 
Bjoern A. Zeeb              Stop bit received. Insert coin for new game.
Steven Hartland | 1 Oct 2008 13:56
Picon
Favicon

Re: Multiple IPS - Freebsd 7.1

I would dearly like to see this make the 7.1 release, multi IP's in order
to support backend interfaces in jails, is something that we hit against
all the time.

    Regards
    Steve
----- Original Message ----- 
From: "Sami Halabi" <sodynet1@...>
To: <freebsd-jail@...>
Sent: Wednesday, October 01, 2008 12:21 PM
Subject: Multiple IPS - Freebsd 7.1

> hi everyone,
> 
> I saw a lot of messages about this so here is it - i just patched it (took
> me a day but okay :)
> 
> i just downloaded the latest src using this sup file - cvsup:
> http://www.royalshells.com/download/freebsd/stable-supfile
> 
> # cvsup stable-supfile
> 
> 
> i applied the following patch (which i changed to get to work with the
> current src):
> http://www.royalshells.com/download/freebsd/bz_jail7-20080727-11-at146062-Fixed_By_Sody_1.10.08.diff
> 
> to patch do:
> # cd /usr/src
> # patch -p6 < bz_jail7-20080727-11-at146062-Fixed_By_Sody_1.10.08.diff
(Continue reading)

Sami Halabi | 1 Oct 2008 14:22
Picon

Re: Multiple IPS - Freebsd 7.1

bz,
your right.
i've posted that link :)

Sami

On Wed, Oct 1, 2008 at 2:08 PM, Bjoern A. Zeeb <
bzeeb-lists@...> wrote:

> On Wed, 1 Oct 2008, Sami Halabi wrote:
>
> Hi,
>
> i applied the following patch (which i changed to get to work with the
>> current src):
>>
>> http://www.royalshells.com/download/freebsd/bz_jail7-20080727-11-at146062-Fixed_By_Sody_1.10.08.diff
>>
>
> I do not know what the "Fixed_By_Sody_1.10.08" part is but
> it's at least based on a backlevel patch of mine so I hope
> someone fixed the locking for 7.1-PRE.
>
> I had posted a patch for 7-STABLE (7.1-PRE) last month
> http://people.freebsd.org/~bz/bz_jail7-20080920-01-at150161.diff
> so taking that one you could have save yourself a lot of time I guess.
>
> In case you have changes it would be good to know what you did
> or what I do not have so the do not have forks as my version will hit
> HEAD soon and has changed (also the user space) since July.
(Continue reading)

Bjoern A. Zeeb | 1 Oct 2008 14:33

Re: Multiple IPS - Freebsd 7.1

On Wed, 1 Oct 2008, Sami Halabi wrote:

Hi,

> your right.
> i've posted that link :)

Yes, seen it, your mail came in, when mine was out. UUCP works so
fine;)

You want to read the comments from then though as at least jls user
space and some kernel stuff had changed:

http://lists.freebsd.org/pipermail/freebsd-jail/2008-September/000459.html
http://lists.freebsd.org/pipermail/freebsd-jail/2008-September/000468.html

In case you have any problems, etc. let me know.

/bz

--

-- 
Bjoern A. Zeeb              Stop bit received. Insert coin for new game.
Bjoern A. Zeeb | 1 Oct 2008 14:39

Re: Multiple IPS - Freebsd 7.1

On Wed, 1 Oct 2008, Steven Hartland wrote:

Hi,

> I would dearly like to see this make the 7.1 release, multi IP's in order
> to support backend interfaces in jails, is something that we hit against
> all the time.

Whatever your wishes or backends are, the multi-IP jail patches will NOT
be in 7.1-RELEASE. full stop. You will need the patch. full stop.

So I am trying to get it into HEAD at the moment and in 2 months or so
once 7.1-R is out and things have settled in HEAD we can waste
thoughts on MFCing it to 7-STABLE so it could be in 7.2-R. I cannot
garantuee it will happen as the patch is intrusive and cannot keep the
KPI.

The best thing you can do until then is to actually take the patch,
test it, report problems, ...

/bz

--

-- 
Bjoern A. Zeeb              Stop bit received. Insert coin for new game.
Alexander Leidinger | 1 Oct 2008 15:37
Favicon

Re: Migration of Jail from one host to another?

Quoting "Scott Lambert" <lambert@...> (from Wed, 2 Jul 2008  
15:22:35 -0500):

> I'm probably doing this completely wrong.  I setup a couple of jails
> using simple image files because I thought that would make migration
> to another server more straightforward.  I am now trying to migrate my
> first jail.

A little bit late, but I moved 2 ezjails today (on 8-current). It was  
setup inside a ZFS, not in an image. It worked without problems (I  
transferred the ZFS data (zfs send | zfs receive), the fstab file, and  
the ezjail config file).

>  /usr/local/etc/rc.d/ezjail.sh start
>  ezjailConfiguring jails:.
> Starting jails: testnetmount: /home/ezjails/migrate.jail.device :  
> Operation not permitted

You have a problem here. You may want to look into ezjail what the  
testnetmount is doing. I assume there's some problem with creating the  
md device.

> df: /home/ezjails/migrate.jail/dev: No such file or directory
> mount: /home/ezjails/migrate.jail/dev: No such file or directory

I think this and the rest are followup errors of the failed mount of  
the disk image.

Bye,
Alexander.
(Continue reading)


Gmane