From owner-freebsd-current@FreeBSD.ORG Thu Jan 15 08:38:27 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2B8416AD; Thu, 15 Jan 2015 08:38:27 +0000 (UTC) Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A8D32D13; Thu, 15 Jan 2015 08:38:26 +0000 (UTC) Received: by mail-wi0-f176.google.com with SMTP id z2so7670443wiv.3; Thu, 15 Jan 2015 00:38:25 -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=w52CCv2I1tjdegebizFtS871m2Nw9G+r1FP9466zdYs=; b=ZRO3uLAJUdEm6mGIzCGE1+4oF0Ah9mTWvAoWOxwlkgAtz32kAVaOxpeTQZ0uvYRmMA IWhpUpdEypw+oCf4R4WmdELwsyFeA7t+c5/k4EI8RI39asFvOb9mnnhM3DE7pmfxDjkM LmzDZndn0t1LNwND4P3kgGScmzKxjnX9czbTHhnam1Ab/ADg1o2zWZCdI6CkrVCf/F8a 5D/VbWt4EC1GV9hhLZ+KxQCtgyLd5DM37xggYOFehcLITB4k9+xuHvrOz7/rq7IrEM7g xJhdVdgTGwrir8rmUi9AuM2VM1qqFhkU60u0ZzEDkVH0bXR1qBkmq38y3Y/dbrRrRW3G delA== MIME-Version: 1.0 X-Received: by 10.180.74.236 with SMTP id x12mr23765916wiv.40.1421311105116; Thu, 15 Jan 2015 00:38:25 -0800 (PST) Received: by 10.27.213.80 with HTTP; Thu, 15 Jan 2015 00:38:25 -0800 (PST) In-Reply-To: References: Date: Thu, 15 Jan 2015 09:38:25 +0100 Message-ID: Subject: Re: Devops question: unattended installs of FreeBSD? From: Kamil Czekirda To: Craig Rodrigues Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-current Current , John Nielsen X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2015 08:38:27 -0000 Please take a look on this: https://wiki.freebsd.org/SummerOfCode2014/FreeBSD_PXE_preseed This is extension for bsdinstall script, you can configure for example local mirror, root password, zfs options etc. The most straightforward solution: - save configured template to www server ( http://svnweb.freebsd.org/socsvn/soc2014/kczekirda/pxe-fai-head/others/template.input?view=markup ) - add option bootfile-name "http://example.com/configs/" to your DHCP server - run mfsfai from iso file (for example: http://svnweb.freebsd.org/socsvn/soc2014/kczekirda/pxe-fai-head/tools/mfsbsd-10.0-RELEASE-fai-amd64.iso?view=co ) Fai will download configuration file called as mac address from network card, if not exist file called default and do installation with this configuration. You can also boot this iso file by PXE using for example iPXE or PXELINUX and MEMDISK module. Please don't hesitate to contact me if you need assistant or questions. Regards, Kamil 2015-01-13 22:10 GMT+01:00 Craig Rodrigues : > On Mon, Jan 12, 2015 at 12:12 PM, John Nielsen wrote: > > > > > I'd be happy to provide more specific suggestions if needed. It really > > depends on how fully automated you want things to be and how much > > customization you want to include, as well as what you have available in > > the install environment. If you're installing on live VMs then you first > > have to get them booted. A custom ISO or MFS image is probably the > simplest > > for that, though PXE is also an option. (Actually, serving an mfsBSD > image > > via PXE is pretty straightforward.) > > > > > Thanks! You provided some excellent concrete examples for how to do > unattended FreeBSD installs. > > In the past 6 months, I have had two different people ask me how to: > -> create a PXE boot server > -> take the ISO image for FreeBSD 9.2, FreeBSD 10.1, etc. > -> create a kickstart environment where it is possible to PXE boot a > cluster of machines, and > have an unattended "kickstart" install take place of the various > FreeBSD versions > > I have coded this kind of stuff up myself in the past and written my own > scripts. > However, it would be really nice if we had more straightforward > documentation and example scripts for doing this. > That way, the average devops engineer experienced with Linux and kickstart > can set this up with no problem, instead of having to struggle and figure > things out. > > It looks like all this stuff is possible under FreeBSD. The main problem I > see is that the > access to the documentation for doing this is not straightforward at all. > > If I do a web search for "Linux kickstart", the search results I get lead > me to documentation > that is actually quite good. I am not a Linux expert, but I can read that > stuff and figure out how to set it > up reasonably quickly. > > If I do a web search for "FreeBSD kickstart", the top search results I get > lead to a few broken > web links, and some private notes from different people on the Internet. > The notes are not bad, > but not as straightforward to follow as the Linux documentation links. > > Since you have some good experience with this, can we create a thread on > https://forums.freebsd.org > with the title "FreeBSD kickstart" with some step-by-step examples for > creating a "kickstart" environment? > > That way over time, a web search for "FreeBSD kickstart" will show the > forum post with top-notch examples. > > Thanks. > -- > Craig > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >