From owner-freebsd-questions@FreeBSD.ORG Mon Feb 27 16:54:16 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 A98B5106564A for ; Mon, 27 Feb 2012 16:54:16 +0000 (UTC) (envelope-from sclists@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 607348FC1F for ; Mon, 27 Feb 2012 16:54:16 +0000 (UTC) Received: by vbmv11 with SMTP id v11so1077564vbm.13 for ; Mon, 27 Feb 2012 08:54:15 -0800 (PST) Received-SPF: pass (google.com: domain of sclists@gmail.com designates 10.220.157.83 as permitted sender) client-ip=10.220.157.83; Authentication-Results: mr.google.com; spf=pass (google.com: domain of sclists@gmail.com designates 10.220.157.83 as permitted sender) smtp.mail=sclists@gmail.com; dkim=pass header.i=sclists@gmail.com Received: from mr.google.com ([10.220.157.83]) by 10.220.157.83 with SMTP id a19mr9746166vcx.54.1330361655714 (num_hops = 1); Mon, 27 Feb 2012 08:54:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=cPgc7GyBkEQal7RC1MYSqW16KhT+r8cZb3ktYM6lD9Y=; b=mOgK+oZz6DbNqN/XXsMC73ry3JDMBGNBsRQTfUj8kpwf9mxE/DYsL5TU0EzQC4b/zT bw+vZB9gnnlmSukNXWl+z10/QYF3bOVkc9LRRdvOM05giIFEH/BfNhC95Y9gGuRt6WGX 3ToYyfIWqXgP6xHCQgEipveSUVzV9Gkbn3620= Received: by 10.220.157.83 with SMTP id a19mr7860525vcx.54.1330361655675; Mon, 27 Feb 2012 08:54:15 -0800 (PST) Received: from [192.168.1.4] (ool-182c6755.dyn.optonline.net. [24.44.103.85]) by mx.google.com with ESMTPS id ie6sm11359648vdb.5.2012.02.27.08.54.14 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 27 Feb 2012 08:54:14 -0800 (PST) Message-ID: <4F4BB539.7030103@gmail.com> Date: Mon, 27 Feb 2012 11:54:17 -0500 From: Stephen Cook User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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: Mon, 27 Feb 2012 16:54:16 -0000 Hello all! I'm relatively new to FreeBSD but I'm enjoying it so far. 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). Here's the list of things I need to change on each new clone, am I missing anything obvious? Or are there any gotchas to what I'm trying? 1) I have to change the hostname in rc.conf 2) I have to change the IP address in rc.conf (I'm using static IPs) 2a) I saw (on the internet) some people having problems because VirtualBox generates a new MAC address for cloned "machines", which somehow screws up the naming of the network interfaces (e.g. they get renumbered, thereby ignoring any configuration you have set up). Now I can't find it anymore, at least not for FreeBSD. Some Linux forums have info about "/etc/udev/rules.d/70-persistent-net.rules" which doesn't exist in FreeBSD as far as I can tell. Is this a concern? I don't seem to be having a problem but TBH I'd rather understand what is going on than just be lucky. 3) Create new SSH keys 3a) For host keys, I can delete the existing ones in /etc/ssh/ and reboot, is there a better way? 3b) Should I bother changing the SSH keys for any users I have? It is basically one user (I use to log in with) which will be the same across the board anyway. Thanks for any insight! -- Stephen