Re: Devops question: unattended installs of FreeBSD?

From: Kamil Czekirda <kczekirda_at_gmail.com>
Date: Thu, 15 Jan 2015 09:38:25 +0100
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 <rodrigc_at_freebsd.org>:

> On Mon, Jan 12, 2015 at 12:12 PM, John Nielsen <lists_at_jnielsen.net> 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_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>
Received on Thu Jan 15 2015 - 07:38:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:54 UTC