From owner-freebsd-questions@FreeBSD.ORG Mon Feb 27 18:05:47 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 E8DD0106564A for ; Mon, 27 Feb 2012 18:05:47 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 770608FC17 for ; Mon, 27 Feb 2012 18:05:47 +0000 (UTC) Received: by wibhn6 with SMTP id hn6so1419916wib.13 for ; Mon, 27 Feb 2012 10:05:46 -0800 (PST) Received-SPF: pass (google.com: domain of amvandemore@gmail.com designates 10.216.133.9 as permitted sender) client-ip=10.216.133.9; Authentication-Results: mr.google.com; spf=pass (google.com: domain of amvandemore@gmail.com designates 10.216.133.9 as permitted sender) smtp.mail=amvandemore@gmail.com; dkim=pass header.i=amvandemore@gmail.com Received: from mr.google.com ([10.216.133.9]) by 10.216.133.9 with SMTP id p9mr1487547wei.9.1330365946492 (num_hops = 1); Mon, 27 Feb 2012 10:05:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=d+aYEBTDnIGZJI5GrVP0RDPcmAPmcR2eSJK7uqY0mRY=; b=HhO5UdhNisIdFDVpb4pP3m5ZtLwGcAvvE8TJq9Ktr0zDShOQNhKenWQA2kmd8CJCXR maxTJHNI5rGCd0WUo7slYrIZvN4rlJTZzaWt/ELkoO+plDrgha/DYc2JKglgU/K1T48I 9gfQseAnofXgV0I07a5pu7m8zepIg59g/W0yw= MIME-Version: 1.0 Received: by 10.216.133.9 with SMTP id p9mr1168032wei.9.1330365946434; Mon, 27 Feb 2012 10:05:46 -0800 (PST) Received: by 10.223.93.138 with HTTP; Mon, 27 Feb 2012 10:05:46 -0800 (PST) In-Reply-To: <4F4BB539.7030103@gmail.com> References: <4F4BB539.7030103@gmail.com> Date: Mon, 27 Feb 2012 12:05:46 -0600 Message-ID: From: Adam Vande More To: Stephen Cook Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Mon, 27 Feb 2012 18:05:48 -0000 On Mon, Feb 27, 2012 at 10:54 AM, Stephen Cook wrote: > > 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. > You can set the MAC address statically in the VB machine. I don't know if it changes it by cloning a system, but even if it does you can change to what you want even with the GUI tools. FreeBSD doesn't use udev, and you should be thankful for it. What a nightmare when you want to do advanced things with your NIC's. What I'm guessing your reading about are people who have multiple nic's in the Vbox guest, and upon cloning mac addresses are changed for the devices. Since Linux device detection doesn't enumerate things the same way each time they created udev so devices would appear to have this. Well as you've seen evidence of, this doesn't work so well when tryin to script things on unknown devices. All this trouble to save a few seconds of boot time. > 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? > ssh-keygen(1) is the typical method. -- Adam Vande More