From owner-freebsd-questions@FreeBSD.ORG Sat Mar 3 09:56:22 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 738EA106564A for ; Sat, 3 Mar 2012 09:56:22 +0000 (UTC) (envelope-from fbsd8@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id 58A8E8FC08 for ; Sat, 3 Mar 2012 09:56:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; q=dns/txt; s=DKIM-NAME-SERVICES; d=a1poweruser.com; h=From:To:Cc:Subject:Message-ID:X-Sender:X-Envelope-From; l=500; bh=CZ9iW2bf2hRGim7RI+KE6Q1EdHDweg3pLFy+mEO4anI=; b=ato3gBxqTUmfRqBPXFr8ZhgDlSzO8zfegL4OcCB/cBEYX+LaLBn00vElfu1aG47L2/yrC745qQm3WUUBm6T+feosyEJ6NOX9f+4XnrD0LuYZboUjCbzwC1UC4+d7iF2Mq97BseCqlah09dd8sR1B8OINeaHroCRv349AU/SztU8= Received: from [192.168.1.125] ([120.29.64.34]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 3 Mar 2012 01:56:16 -0800 Message-ID: <4F51EAB9.7090007@a1poweruser.com> Date: Sat, 03 Mar 2012 17:56:09 +0800 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Stephen Cook References: <4F4BB539.7030103@gmail.com> <4F51A4BF.3060200@ShaneWare.Biz> <4F51C3D9.5010303@gmail.com> In-Reply-To: <4F51C3D9.5010303@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Mar 2012 09:56:16.0643 (UTC) FILETIME=[E0227D30:01CCF923] X-Sender: fbsd8@a1poweruser.com X-Envelope-From: fbsd8*a1poweruser.com Cc: freebsd-questions@freebsd.org Subject: Re: Cloning a FreeBSD system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Mar 2012 09:56:22 -0000 Stephen Cook wrote: > On 3/2/2012 11:57 PM, Shane Ambler wrote: >> On 28/02/2012 03:24, Stephen Cook wrote: >>> I have FreeBSD 9.0 installed as a VirtualBox guest, and I plan on >>> cloning it repeatedly to set up a fake network for me to toy with (e.g. >>> setting up clusters of replicated databases, web server pools, etc). >> >> Another option to look at is using FreeBSD's Jails. Handbook chapter 16 >> >> Basically you can setup multiple jails on the machine that use the >> kernel of the base system (so it's not an entire emulated machine) but >> each jail has it's own environment, apps etc. >> > > I read up on jails and I am impressed, I had a vague idea about them but > they are apparently a lot more powerful than I thought. This will get > some use from me in the future when I'm setting up real servers. > > However, for what I'm currently doing, I want to stick with a bunch of > VirtualBox VMs so I can simulate database failover by killing the VM in > rude way, dynamically throw another "machine" into the mix, etc. > > Thanks! > > -- Stephen > Cloning or duplicating a running system using dump/restore http://forums.freebsd.org/showthread.php?t=11680 You should check out the qjail port for simple jail cloning. Only takes 30 seconds to clone a jail. http://qjail.sourceforge.net/ Both vm's and jails are targeted by ip address, killing one results in same outcome on the network no matter which one you use. I don't use Virtual Box but if it does not have a dump/restore function then cloning at that level is not possible.