1
0

readme.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. This folder is set up to allow netbooting using pxeserver from u-root.
  2. Pxeserver hosts the kernel using http, and the pxelinux files using tftp.
  3. Assumptions:
  4. - The following ports are open on your firewall: 67, 68, 69 (tftp), 80 (http server), 5640 (ufs)
  5. - You've successfully built harvey.
  6. ---------------------
  7. Create the file $HARVEY/cfg/pxe/tftpboot/pxelinux.cfg/default
  8. The file should contain (change the IP address to that of the machine running pxeserver and ufs):
  9. DEFAULT harvey
  10. LABEL harvey
  11. KERNEL mboot.c32
  12. 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
  13. ---------------------
  14. Fetch and build pxeserver:
  15. go get github.com/u-root/u-root
  16. go install github.com/u-root/u-root/cmds/exp/pxeserver
  17. Run pxeserver to host pxelinux and harvey (make sure you change the interface and IP to match the one on your server):
  18. sudo pxeserver \
  19. -tftp-dir $HARVEY/cfg/pxe/tftpboot/ \
  20. -http-dir $HARVEY/cfg/pxe/tftpboot/ \
  21. -bootfilename lpxelinux.0 \
  22. -interface enp0s31f6 \
  23. -ip 192.168.0.19
  24. Run ufs to host the harvey files over 9p:
  25. $HARVEY/util/ufs -root $HARVEY