I have had a few friends (who ended up wimping out and installing either via scsi cdrom, or by writing the miniroot.fs to the swap partition) ask how to do a netboot install of OpenBSD on sparc or sparc64 architecture.
First thing’s first
- enable the services you will need on your server (OpenBSD will be used for this example). This is actaully quite simple.. make sure the
/etc/ethersfile exists (we’ll customize it later), as well as the
- in the
/etc/ethersfile, add the mac address, and the hostname of the machine you want to install (you can get this from the openfirmware boot sequence). My file looks like this:
- add an entry to
/etc/hostsfor the machine in question.
- create an
/etc/bootparamsfile, this file contains the NFS path that will be mounted as the root filesystem. Mine looks like this:
- enable the tftp daemon in
/tftpboot, you will make a symlink to the file that will be requested in a minute.
- prepare the nfs directories:
- nfs export your directory structure you made
- either manually start
rpc.bootparamd, or just reboot your openbsd server and it will bring up the required services.
- now the tricky part, when you “boot net” your sun box, it will request a weirdly named file from the tftp server, and openbsd’s tftp server doesn’t have verbose logging like debians for example, but there is a really easy way to get around that. run tcpdump
The filename in quotes after RRQ is what you will want to symlink
/tftpboot, so create that symlink, and then you should be able to successfully “boot net” the box and do the install.
I had several sources to write this up:
- http://legonet.org/~griffin/openbsd/netbooting_ss5.html (now moved to http://johan.fredin.info/openbsd/netbooting_ss5.html)