Configuring a FreeBSD "Kickstart" server
                        by Steven St.Laurent  - steven@403forbidden.net


Intro

Ducks
Ingredients
Security
Contributing

Files
Distro
Files
Files
Mfsroot
Patch
PXEBoot
Boot
Kernel

Services
INETD
DHCP
TFTP
NFS
FTP

Details
How it works
Loader.rc

Installing

Finishing


	FILES

	If you are using the filesystem storage method then
	we need a rather large filesystem created to hold the
	installation media. In my setup I created /opt/export and
	in another install I used a different layout. It does not
	matter where it is as long as the path specified is in your
	dhcpd configuration. I created several subdirectories:

                /opt/export/pub
                /opt/export/tftpboot
                
	on my root filesystem (/) i created a symlink tftpboot to
	/opt/export/tftpboot. 

	the pub/ directory contains several versions of FreeBSD, so
	by necessity it needs to be several gigabytes in size. Plan
	accordingly. If your distribution is on a cdrom then /pub
	will contain your mount point for the iso image.

	There is one caviat to keep in mind here. The current installer
	when doing a FTP install assumes the directory structure of the
	ftp server. I personally did not find a good way of bypassing
	this behavour. If doing a FTP install (default is NFS) you will need
	to make the following directory structure

	   /opt/
        	export/
              	       pub/
		           FreeBSD/
			           releases/
				            i386/
				   	         4.8-RELEASE/
						 5.0-CURRENT/
						(etc...)

	/opt/export will need to be changed to your directory path then
	pub/FreeBSD/releases/i386 will remain the same. The directory
	4.8-RELEASE should be named what your distribution is.
	ie: 4.7-Stable, 5.1-Release, 5.0-Current

	this directory should be your mount point for the cd or where 
	your distribution filesystem is copied to.

	/tftpboot contains the basic files necessary to
	boot the box prior to install

                .
                ..
                boot/
                kernel
                mfsroot
                pxeboot


   	Some discussion is necessary at this point to explain these files, what
	they do and why the are necessary.

	At boot time the PXE client on the client machine will broadcast out to the
	DHCP server a DHCPRequest. The DHCP server will hear
	this broadcast and reply based on the dhcp servers configuration.
	Among the information sent will be the path for the PXE client to
	fetch, via tftp, its required boot file. The PXE client here will
	connect to our server to the /tftpboot directory. In this directory
	it will fetch a file named pxeboot.



Copyright © 2003 - Steven St.Laurent - steven@403forbidden.net