mentby.com
Blog | Jobs | Help | Signup | Login

Unattended OpenBSD Installation



Hi,

I read FAQ, and found nothing about "install.site" script.
And tried : man install.site, give me nothing.

Is there someone that can explain me how to do a unattended installation ?
I wish for example have this by default :
- Keyboard "fr".
- myname : "puffy"
- DomainName : "secure.lan"
- IPv4 : 10.10.10.1/24
- mygate : 10.10.10.10/24
- IPv6 : none
- Root password : "betatest"
- Create a user : "debug" member of "wheel"
- use the whole disk and auto layout
- Install all sets except -x* and -g*

Thank you a lot.

All the best,

Wesley.


openbsd Sat, 13 Nov 2010 22:55:08 -0800

the you must have missed section 4.14 ->

http://www.openbsd.org/faq/faq4.html#site

--
jakemsr*******
SDF Public Access UNIX System -  http://sdf.lonestar.org


Jacob Meuser Sat, 13 Nov 2010 23:56:31 -0800

you can do these parts by overwriting/adding to the configuration
files, see faq 4. you can also do things like adding lines to
/etc/rc.firsttime to install any packages you need.

this is beyond the scope of install.site/siteXX.tgz, these files
are for additional steps after the main installation is complete,
not a complete unattended installation.


Stuart Henderson Sun, 14 Nov 2010 02:37:26 -0800

Hi,
I read OpenBSD FAQ at
[url http://www.openbsd.org/faq/fr/faq4.html#site [/url]
I understood well, that install.site/ Upgrade.site and of course
SiteXX.tgz is enabled at the end of the installation.

My question, i boot on 4.7 RELEASE, choose "Install".
Is it possible to have an "true automatic installation" for example don't
need to put mygate, myname, "root password" ... put all the answers in a
script ? And so have an install without any interaction with the user ?

I suppose not possible ? because all of that are in the "install.sub"
script (from bsd.rd)

Thanks.


openbsd Sun, 14 Nov 2010 09:20:04 -0800

You could have a look at  http://nbender.com/install.netboot/install.html  which
is no longer current and was brittle and difficult to use.

I am currently working on  the next version which is much better - it meets
all your requirements. I'm calling it redux and I'm including the readme below.

What's left to do is additional testing, documentation, and updating for any
changes in 4.8 (it is working now against 4.7).

-N

========================================================

Welcome to redux, an OpenBSD automated installation framework.

redux enhances the standard OpenBSD installation procedure by
enabling the following functionality:

1. Record all choices made during an installation.
2. Enable an automated installation using recorded choices.
3. Allow interactive revision of a previously recorded
   installation session.
4. Provide support for network based fully automated
   installation using only tools provided by OpenBSD.

redux is ditributed as a Makefile, a set of patches to the
standard installation scripts and a small number of additional
installation scripts. Building the entire source tree is not
required as redux uses an existing ditribution as the starting
point. By default it assumes that the OpenBSD source tree is
loaded in /usr/src and that the installation CD is mounted on
/mnt (see the top of the makefile to adjust these locations).
The output of the make process is a modified installation
ramdisk which can be booted using pxeboot. The ramdisk could
also be used to construct a boot CD which will be supported
in a future release.

An effort has been made to minimize the changes to the default
scripts to minimize ongoing maintenance as the base system
evolves. A patch to the standard pxeboot program is also
provided which enables additional network boot functionality
for the i386 and amd64 architectures. redux has been tested on
the i386 and amd64 architectures but should be usable on other
architectures.


Nick Bender Sun, 14 Nov 2010 10:40:40 -0800

did you actually read Stuart's response?

And of course, it's an open source system, as the interactive script can
install the system, it's obviously possible to write your own script to
do it automatically.  Not overly difficult, even.  Rough outline of one
way to do it:

Build a USB disk with a minimal OpenBSD install and all the desired
install files on it.
Write a script that runs on the USB disk and does the following:
* fdisk -iy desired disk
* disklabels, creating desired partitions
* newfs's the desired partitions
* mount them under (say) /mnt
* copy over kernels
* unpack desired *.tgz files
* install boot loader (faq14.html)
* copy over/create desired network config files
* copy over package files you want
* create an rc.firsttime file to install those packages on first native
boot.

Probably as easy to create your own script to do that as it is to learn,
configure and use someone else's "automatic install" script that makes
assumptions that don't quite match yours.

OpenBSD is really simple, no magic takes place in the install process
that you can't easily replicate.  The magic is making it work off one
floppy disk on any platform that takes floppies.

Nick.


Nick Holland Sun, 14 Nov 2010 10:58:38 -0800

How can i test your 'redux' ?
I found that :  http://www.hiqu.biz/
thanks for your replies

Cheers,

Wesley MOUEDINE ASSABY
www.mouedine.net


openbsd Sun, 14 Nov 2010 11:11:34 -0800

Hi Nick,

this is great news! Any chance to get this into the mainline, someday?

I have a use case, so if you want me to test something... ;)

Kind regards,
--Toni++


Toni Mueller Wed, 24 Nov 2010 04:28:29 -0800



Related Topics

Post a Comment