From owner-freebsd-questions@FreeBSD.ORG Fri Feb 13 13:10:54 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 572C81B9 for ; Fri, 13 Feb 2015 13:10:54 +0000 (UTC) Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com [IPv6:2a00:1450:4010:c04::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B70A9D80 for ; Fri, 13 Feb 2015 13:10:53 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id z11so15397960lbi.5 for ; Fri, 13 Feb 2015 05:10:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=K5y4PWkr+DC4d+L1qC0PsNoR7WoWuCdj7qO+BbPiN9g=; b=nZGMqVZm6t+mEmkZ445tIIb6VDwqZ81Z1YzSmZnclpAfT1jQ+eUX8fX2Nkk6EVsxft QWZdSSTjnEEO1O6AgIo5ThlJRYq2JOiea1bFq1mz7ZnQHMCCoB2YhECYjfU/Q1femsDx nfZ53UZrRKZL+jnyWPUWfF84qMbOClvIGX61P85J9ajKaypN4N8T88Re9xqH/S85B7zt OYJA4SlBegEE4jEm4UhBgDDGx9K9EL73E+Y+w/fQ9iIL6b24+OG6AOPQhR0ZWVYlVQ7c li56a+dWbrgoPoEHVSUNSxr7OYqGq3xZhx4HmKZACLxl87pnNQLJP/t7O65SP8qEIda/ pAhw== MIME-Version: 1.0 X-Received: by 10.152.43.18 with SMTP id s18mr8031921lal.26.1423833051390; Fri, 13 Feb 2015 05:10:51 -0800 (PST) Received: by 10.112.208.41 with HTTP; Fri, 13 Feb 2015 05:10:51 -0800 (PST) In-Reply-To: References: Date: Fri, 13 Feb 2015 11:10:51 -0200 Message-ID: Subject: Re: Automatic Installation From: Felipe Agnelli Barbosa To: Rick Miller Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2015 13:10:54 -0000 Hi Rick and folks, This information is very useful for me, thanks for sharing. How do you use the network with the auto install system? I explain, for example, in your server, do you have more than one interface?, one for the "production network" and another to "auto installation system", or, in the same interface, two vlans with tagged port, or merely, put the auto install server in the same network? Which of those do you suggests to me? Thanks for your time, Regards, Felipe 2015-02-12 21:05 GMT-02:00 Rick Miller : > > > On Thu, Feb 12, 2015 at 12:46 PM, Felipe Agnelli Barbosa < > no.molas@gmail.com> wrote: > >> Hi guys, >> >> I'm finding a way to automate the installation from the FreeBSD server, >> with PXE. >> I saw some examples like with PXE/TFTP, dhcp, nfs and sysinstall, anoth= er >> examples with Cobbler(but until version 9.0[0]). >> >> So, what i would to know is your experience about it and what you guys >> think the best way to automate the process of installation from FreeBSD. >> Maybe I will join the Puppet or Chef in that process. > > > At a high level, there's no difference between a PXE auto install between > 8.x and 10.x. DHCP, TFTP, and network accessible media are all that are > needed. The differences are in the low level implementations and tools. = A > FreeBSD PXE Workflow diagram[1] (see references) illustrates the overall > flow. The diagram specifically refers to an 8.x implementation, but also > applies to 10.x just with different tools. > > I've implemented this with, both, FreeBSD 8.x and 10.x, but skipped 9.x > for various reasons. My blog[2] has a number of posts[3] related to auto > installing FreeBSD that are written specifically for 8.x, but some of the > content is still relevant for 10.x. Time has been the biggest reason > nothing has been posted about my experiences with 10.x. > > Cobbler was the platform used and, IIRC, the only real change necessary > for 10.x was to update the distro signatures. The patch was not submitte= d > back due to time pressure and the implementation was sub-optimal. Time > pressure has also prevented retrofitting. > > 8.x was implemented using a customized bootonly ISO to fire up an > automated sysinstall, but 10.x introduced bsdinstall and a bug[4] that > prevented the bootonly ISO from working. So, the 10.x implementation use= d > a customized mfsBSD[5] image implementing automated bsdinstall. The > installerconfig implemented here is custom and written in such a manner > that it bypasses bsdinstall's main functions, but this is not required. = It > was implemented this way to leverage features of Cobbler that enabled mor= e > dynamic control of installations via Cobbler. The bsdinstall man page[6] > covers scripting an install. > > Cobbler provides management of DHCP and hosts the iPXE, mfsBSD, and > installation media. iPXE is transferred via TFTP and retrieves mfsBSD ov= er > HTTP which, in turn, runs bsdinstall and installs a binary distribution > fetched via HTTP from Cobbler. The DHCP server responds with a filename > for the client to download. > > [1] http://hostileadmin.com/images/FreeBSD_PXE_Install_Workflow.gif > [2] http://blog.hostileadmin.com/ > [3] http://blog.hostileadmin.com/?s=3Dcobbler > [4] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D190939 > [5] http://mfsbsd.vx.sk > [6] https://www.freebsd.org/cgi/man.cgi?query=3Dbsdinstall > > HTH > > -- > Take care > Rick Miller > --=20 " A d=C3=BAvida =C3=A9 o principio da sabedoria "