Diskless FreeBSD (PXE/NFS)

Table of Contents

Build the system to boot from
Prepare the host system
Configure the client system
gPXE: When BIOS does not support LAN boot

gPXE: When BIOS does not support LAN boot

by ross at 05:45:46 on October 8, 2012

If your motherboard doesn't give you an option to boot from LAN you can fix this with the help of an old flash drive.

Install gPXE:

# cd /usr/ports/net/gpxe
# make install clean

Plug in the flash drive. Write the loader to it:

# cat /usr/local/share/gpxe/gpxe.usb > /dev/da0

The rest of the space could be used:

# gpart show da0
=>      1  7843838  da0  MBR  (3.8G)
        1       31       - free -  (15k)
       32     4064    4  !235  [active]  (2M)
     4096  7839743       - free -  (3.8G)

# gpart add -t fat32 da0
da0s1 added

# gpart show da0
=>      1  7843838  da0  MBR  (3.8G)
        1       31       - free -  (15k)
       32     4064    4  !235  [active]  (2M)
     4096       62       - free -  (31k)
     4158  7839657    1  fat32  (3.8G)
  7843815       24       - free -  (12k)

Note that newly added FAT partition has index of 1 (da0s1)

# newfs_msdos /dev/da0s1

Set BIOS to boot from flash on the client PC and connect this flash drive.

 

Comments