From owner-freebsd-jail@FreeBSD.ORG Sat May 29 23:26:15 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 EC6D51065673 for ; Sat, 29 May 2010 23:26:14 +0000 (UTC) (envelope-from SamanKaya@netscape.net) Received: from imr-ma01.mx.aol.com (imr-ma01.mx.aol.com [64.12.206.39]) by mx1.freebsd.org (Postfix) with ESMTP id AD13A8FC18 for ; Sat, 29 May 2010 23:26:14 +0000 (UTC) Received: from mtaout-mb05.r1000.mx.aol.com (mtaout-mb05.r1000.mx.aol.com [172.29.41.69]) by imr-ma01.mx.aol.com (8.14.1/8.14.1) with ESMTP id o4TNQ42e020732; Sat, 29 May 2010 19:26:04 -0400 Received: from [192.168.0.56] (81-178-2-118.dsl.pipex.com [81.178.2.118]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mtaout-mb05.r1000.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id A4C39E000088; Sat, 29 May 2010 19:26:03 -0400 (EDT) Message-ID: <4C01A1D9.7040604@netscape.net> Date: Sun, 30 May 2010 02:23:05 +0300 From: Kaya Saman User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: Andrew Hotlab References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit x-aol-global-disposition: G X-AOL-SCOLL-SCORE: 0:2:495881504:93952408 X-AOL-SCOLL-URL_COUNT: 0 x-aol-sid: 3039ac1d29454c01a28b7bc9 X-AOL-IP: 81.178.2.118 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 23:26:15 -0000 Many thanks Miroslav and Andrew, {see inbeteen the lines} On 30/05/2010 01:37, Andrew Hotlab wrote: > ---------------------------------------- > >> Date: Sat, 29 May 2010 23:46:31 +0300 >> From: SamanKaya@netscape.net >> To: freebsd-jail@freebsd.org >> Subject: Creating jails to run Squid and multiple Bind services - Newbee >> >> Hi, >> >> am attempting to create a set of Jails for the first time!! >> >> > Welcome to the club! :) If you are coming from Solaris Zones it won't take you much time to feel at home with FreeBSD Jails. > Uh, I hope so!! And thank you for the welcome :-) To tell you the truth, this is the second production server am building on FreeBSD and I am actually more impressed with BSD then Linux as a server. Especially the ability to use ZFS file system which is fast and extremely reliable not to mention high-end enterprise grade. > >> So far what I've done is this: >> >> cd /usr/src >> make buildworld >> >> >> 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. >> >> I just have no idea how to start!! :-( >> >> I really appreciate if someone could give me a hand getting started as >> I'm totally lost on creating the jails as I can configure the services >> that I need to run in them easily!! >> >> Am on BSD 8.0 RELEASE 'current' edition x64. >> >> > If you are a newcomer to FreeBSD, I suggest you to use a -RELEASE or errata branch. -CURRENT is for developers and "hardcore" users. > I am using the -RELEASE branch, it's just that I can't post the output of uname -a as am in Windows 7 currently running Cygwin to SSH into my box. > To make a so-called "service jail" actually seems the way to get what you are looking for, but I think you will feel much better by using a full jail management framework such ezjail (http://www.FreeBSD.org/cgi/url.cgi?ports/sysutils/ezjail/pkg-descr). It will definitely help you to get a working environment in minutes, enabling you to manage it with a more "Zones-like" approach. > This tool is also interesting because it makes all jails use a single read-only userland, thus keeping both disk space consumption and administrative efforts low. > Thanks for the quick and easy Windows esq way :-P - next step GUI point and click tools.... ick!! > That's the easy way, just to make you "feel the power" without spend too much time... but I strongly suggest you to make your hands dirty by following the "official way" to build jails, to really understand how this great OS partitioning system works! The better source is obviously the Handbook (http://www.freebsd.org/handbook/jails.html). > Did I post this as one of the links I looked at?? Anyhow will take a look and see how to actually build a jail as I think that teaches more then eazy way :-) > When I was a newcomer to jails, I wrote something about my first experiences, maybe it might be agreeable to have a look at it: > http://weblogs.valsania.it/bsdlab/2007/07/04/freebsd-jail-“how-to”/ > Cool :-D Will definitely be taking a look.... > Hoping that these little suggestions will be somewhat useful to you. > > Sincerely. > > Andrew > > > > > Best Regards and many thanks, Kaya