From owner-freebsd-jail@FreeBSD.ORG Sat May 29 22:16:20 2010 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AAAD1065673 for ; Sat, 29 May 2010 22:16:20 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 57E3E8FC15 for ; Sat, 29 May 2010 22:16:19 +0000 (UTC) Received: from elsa.codelab.cz (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 743D119E02E; Sun, 30 May 2010 00:16:18 +0200 (CEST) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id AAFB119E02A; Sun, 30 May 2010 00:16:15 +0200 (CEST) Message-ID: <4C01922E.6080200@quip.cz> Date: Sun, 30 May 2010 00:16:14 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.9) Gecko/20100317 SeaMonkey/2.0.4 MIME-Version: 1.0 To: Kaya Saman References: <4C017D27.5000803@netscape.net> In-Reply-To: <4C017D27.5000803@netscape.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-jail@freebsd.org Subject: Re: Creating jails to run Squid and multiple Bind services - Newbee X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 May 2010 22:16:20 -0000 Kaya Saman wrote: > Hi, > > am attempting to create a set of Jails for the first time!! > > I have read some documentation: > > http://www.freebsd.org/doc/en/articles/portbuild/new-node.html > > http://www.freebsd.org/doc/en/books/handbook/jails-build.html > > http://www.section6.net/wiki/index.php/Creating_a_FreeBSD_Jail > > and finally for configuring Squid in FreeBSD: > > http://www.freebsddiary.org/squid.php (just as I currently run this on > Solaris 9) http://www.freebsd.org/doc/en/books/handbook/jails-application.html Did you tried sysutils/ezjail? I am not using it, but if you are not too experienced jail user, you can find it useful. Note from webpage: "This setup requires advanced experience with FreeBSD and usage of its features. If the presented steps below look too complicated, it is advised to take a look at a simpler system such as sysutils/ezjail, which provides an easier method of administering FreeBSD jails and is not as sophisticated as this setup." > > > So far what I've done is this: > > cd /usr/src > make buildworld Do you have all needed sources in /usr/src? Did you install them from CD-ROM or by csup? > I straight away then get an error saying: > > /usr/src/usr.bin/make > > ***error code 2 > > Stop in /usr/src > > ***error code 1 > > Basically what I want to do is something very similar to how I use > Solaris Zones; create a directory structure which will run 1 specific > service only on a specific IP address.... > > I am not certain if I can run 2 instances of Bind in two different Jails > but would be cool if I could. Yes, you can run as many jails with "any" services as you can (if you have enough IP addresses) [...] Miroslav Lachman