Contributed by jose on from the automated-installs dept.
There was a very interesting post to misc that has information on scripting the initial installation part, although i've yet to look into this to see how well it works on OpenBSD 3.3-release.
http://marc.theaimsgroup.com/?l=openbsd-misc&m=104313392300688&w=2
One question in particular I wondered about is if there a faster method than running cvsup to go from from -release to -stable by recompiling everything which becomes a bottleneck in terms of speed when you need to setup/install a server quickly. Of course you could create a package for these changes in the system (source and binary changes), but I don't think that's such a good idea.
One method would be to remotely install the system, cvsup, recompile everything and then take a system image, possibly using "System Installation Suite" and then use that system image to install all other systems, which as far as I can tell, would be the quickest method. With so few OpenBSD security updates, that appears a pretty good system "in theory"." Anyone have any suggestions on this? PXE booting looks really useful, I need to learn how to do this.
(Comments are closed)
By Ed () on
cd /usr/src
make obj
make build
setenv DESTDIR /tmproot
setenv RELEASEDIR /release
cd etc
make release
Something like this...
By G () on
By Sava () sava@KEINSPAM.iki.fi on mailto:sava@KEINSPAM.iki.fi
With TFTP and PXE you can deliver bootloaders and kernels easily via your DHCP server. Set up TFTP server to share files from e.g. /tftpboot directory, and add something like following lines to your dhcpd.conf:
host mybox {
}Note that PXE-patched grub works differently than pxelinux because pxelinux delivers straight the kernel (and ramdisk) image, but grub is only a bootloader.
When the PXE finds DHCP server, it gets the grub bootloader image and executes it. Because the newly launched grub does not know about IP address, kernel image, or anything, they have to be told manually.
Get IP address dynamically:
grub> dhcp
Tell where the kernel is (depending of your TFTP configuration):
grub> kernel (nd)/tftpboot/bsd.rd
Boot the loaded kernel:
grub> boot
I have not tried to fully automatise the OpenBSD booting process via network. If someone has, please share your configuration :)