Graham MacDonald de7dc06ecc Amend pxeserver instructions (#927) 4 vuotta sitten
..
tftpboot 12e0a4dd65 Tidy up tftp, use lpxelinux for faster booting (#919) 4 vuotta sitten
example-kw 2ba83b2e61 Plan 9 from Bell Labs 2012-05-01 12 vuotta sitten
example-omap 2ba83b2e61 Plan 9 from Bell Labs 2012-05-01 12 vuotta sitten
example-pi c80a88cd7e Plan 9 from Bell Labs 2013-03-23 11 vuotta sitten
example-pxa 2ba83b2e61 Plan 9 from Bell Labs 2012-05-01 12 vuotta sitten
readme.txt de7dc06ecc Amend pxeserver instructions (#927) 4 vuotta sitten

readme.txt

This folder is set up to allow netbooting using pxeserver from u-root.

Pxeserver hosts the kernel using http, and the pxelinux files using tftp.

Assumptions:
- The following ports are open on your firewall: 67, 68, 69 (tftp), 80 (http server), 5640 (ufs)
- You've successfully built harvey.

---------------------
Create the file $HARVEY/cfg/pxe/tftpboot/pxelinux.cfg/default
The file should contain (change the IP address to that of the machine running pxeserver and ufs):

DEFAULT harvey
LABEL harvey
KERNEL mboot.c32
APPEND http://192.168.0.19/harvey.32bit service=cpu nobootprompt=tcp maxcores=1024 fs=192.168.0.19 auth=192.168.0.19 nvram=/boot/nvram nvrlen=512 nvroff=0 acpiirq=1

---------------------

Fetch and build pxeserver:
go get github.com/u-root/u-root
go install github.com/u-root/u-root/cmds/exp/pxeserver

Run pxeserver to host pxelinux and harvey (make sure you change the interface and IP to match the one on your server):
sudo pxeserver \
-tftp-dir $HARVEY/cfg/pxe/tftpboot/ \
-http-dir $HARVEY/cfg/pxe/tftpboot/ \
-bootfilename lpxelinux.0 \
-interface enp0s31f6 \
-ip 192.168.0.19

Run ufs to host the harvey files over 9p:
$HARVEY/util/ufs -root $HARVEY