Sysadmin > FreeBSD > PXEInstallOnSoekrisNet5501

PXE Install FreeBSD on Soekris net5501

dhcp

tftp

zfs create -o mountpoint=/tftpboot zroot/tftpboot
sed -i '/^#tftp /s/^#//' /etc/inetd.conf
/etc/rc.conf: inetd_enable="YES"

nfs

freebsd files

from source

cd /usr/src
make buildworld BOOT_PXELDR_ALWAYS_SERIAL=1 BOOT_COMCONSOLE_SPEED=9600
make buildkernel BOOT_PXELDR_ALWAYS_SERIAL=1 BOOT_COMCONSOLE_SPEED=9600
make installworld DESTDIR=${NFSROOTDIR}
make installkernel DESTDIR=${NFSROOTDIR}
make distribution DESTDIR=${NFSROOTDIR}

from iso

sudo fetch ftp://ftp1.us.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/9.2/FreeBSD-9.2-RELEASE-i386-dvd1.iso
MD=`sudo mdconfig /var/iso/FreeBSD-9.2-RELEASE-i386-dvd1.iso`
sudo mount -t cd9660 /dev/$MD /mnt
sudo rsync -ax --stats /mnt/ /nfs/freebsd/9.2/
# umount /mnt
# mdconfig -d -u 0
sudo vim /mnt/fbsd_boot/etc/fstab
#/dev/iso9660/FREEBSD_INSTALL / cd9660 ro 0 0

  • /boot/loader.conf
console="comconsole"
  • /etc/ttys
#console none                            unknown off secure
console "/usr/libexec/getty std.9600"   vt100 on secure

Install

  • ctrl-p
  • boot F0