User Tools

Site Tools


doc:howto:tftp.pxe-server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
doc:howto:tftp.pxe-server [2017/11/08 01:59]
leeand00 [3. Enable TFTP and NFS Service]
doc:howto:tftp.pxe-server [2017/11/08 02:08] (current)
leeand00 Added some log messages that helped me figure out how to make this work.
Line 227: Line 227:
 root@OpenWRT:​~#​ /​etc/​init.d/​nfsd restart root@OpenWRT:​~#​ /​etc/​init.d/​nfsd restart
 </​code>​ </​code>​
 +
 +<tabbox 4. Testing it out>
  
 And now we are ready to go! Just grab a computer (or Virtual Machine) and PXE Boot - you should be able to fully boot into Ubuntu 13.10 via your OpenWRT Router :-D And now we are ready to go! Just grab a computer (or Virtual Machine) and PXE Boot - you should be able to fully boot into Ubuntu 13.10 via your OpenWRT Router :-D
 Hint: you often have to enable PXE-Booting in BIOS and press e.g. F12 to get into the Boot-Menu. Hint: you often have to enable PXE-Booting in BIOS and press e.g. F12 to get into the Boot-Menu.
 +
 +Note: It will help immensely to check your sys.log to see what path is actually being used to pull the pxelinux.0, vmlinuz.efi (kernel file), initrd.lz (which are transferred via tftp), etc...but of course you have to set that up on the router as well.
 +
 +For instance in sys.log I received the following messages when I got mine working:
 +
 +<​code>​
 +Tue Nov  7 19:28:20 2017 daemon.err dnsmasq-tftp[16313]:​ error 0 TFTP Aborted received from 192.168.1.235
 +Tue Nov  7 19:28:20 2017 daemon.info dnsmasq-tftp[16313]:​ failed sending /​mnt/​extstorage/​tftp/​pxelinux.0 to 192.168.1.235
 +Tue Nov  7 19:28:20 2017 daemon.info dnsmasq-tftp[16313]:​ sent /​mnt/​extstorage/​tftp/​pxelinux.0 to 192.168.1.235
 +Tue Nov  7 19:28:20 2017 daemon.info dnsmasq-tftp[16313]:​ sent /​mnt/​extstorage/​tftp/​ldlinux.c32 to 192.168.1.235
 +Tue Nov  7 19:28:20 2017 daemon.err dnsmasq-tftp[16313]:​ file /​mnt/​extstorage/​tftp/​pxelinux.cfg/​44454c4c-4e00-104e-8038-b6c04f4a4431 not found
 +Tue Nov  7 19:28:20 2017 daemon.err dnsmasq-tftp[16313]:​ file /​mnt/​extstorage/​tftp/​pxelinux.cfg/​01-00-1c-23-86-01-07 not found
 +Tue Nov  7 19:28:20 2017 daemon.err dnsmasq-tftp[16313]:​ file /​mnt/​extstorage/​tftp/​pxelinux.cfg/​C0A801EB not found
 +Tue Nov  7 19:28:20 2017 daemon.err dnsmasq-tftp[16313]:​ file /​mnt/​extstorage/​tftp/​pxelinux.cfg/​C0A801E not found
 +Tue Nov  7 19:28:20 2017 daemon.err dnsmasq-tftp[16313]:​ file /​mnt/​extstorage/​tftp/​pxelinux.cfg/​C0A801 not found
 +Tue Nov  7 19:28:20 2017 daemon.err dnsmasq-tftp[16313]:​ file /​mnt/​extstorage/​tftp/​pxelinux.cfg/​C0A80 not found
 +Tue Nov  7 19:28:20 2017 daemon.err dnsmasq-tftp[16313]:​ file /​mnt/​extstorage/​tftp/​pxelinux.cfg/​C0A8 not found
 +Tue Nov  7 19:28:20 2017 daemon.err dnsmasq-tftp[16313]:​ file /​mnt/​extstorage/​tftp/​pxelinux.cfg/​C0A not found
 +Tue Nov  7 19:28:20 2017 daemon.err dnsmasq-tftp[16313]:​ file /​mnt/​extstorage/​tftp/​pxelinux.cfg/​C0 not found
 +Tue Nov  7 19:28:20 2017 daemon.err dnsmasq-tftp[16313]:​ file /​mnt/​extstorage/​tftp/​pxelinux.cfg/​C not found
 +Tue Nov  7 19:28:20 2017 daemon.info dnsmasq-tftp[16313]:​ sent /​mnt/​extstorage/​tftp/​pxelinux.cfg/​default to 192.168.1.235
 +Tue Nov  7 19:28:20 2017 daemon.info dnsmasq-tftp[16313]:​ sent /​mnt/​extstorage/​tftp/​vesamenu.c32 to 192.168.1.235
 +Tue Nov  7 19:28:20 2017 daemon.info dnsmasq-tftp[16313]:​ sent /​mnt/​extstorage/​tftp/​libcom32.c32 to 192.168.1.235
 +Tue Nov  7 19:28:20 2017 daemon.info dnsmasq-tftp[16313]:​ sent /​mnt/​extstorage/​tftp/​libutil.c32 to 192.168.1.235
 +Tue Nov  7 19:28:20 2017 daemon.info dnsmasq-tftp[16313]:​ sent /​mnt/​extstorage/​tftp/​pxelinux.cfg/​default to 192.168.1.235
 +Tue Nov  7 19:28:34 2017 daemon.info dnsmasq-tftp[16313]:​ sent /​mnt/​extstorage/​tftp/​disks/​ubuntu1310-64/​casper/​vmlinuz.efi to 192.168.1.235
 +Tue Nov  7 19:28:42 2017 daemon.info dnsmasq-tftp[16313]:​ sent /​mnt/​extstorage/​tftp/​disks/​ubuntu1310-64/​casper/​initrd.lz to 192.168.1.235
 +Tue Nov  7 19:29:24 2017 daemon.info dnsmasq-dhcp[16313]:​ DHCPDISCOVER(br-lan) 00:​1c:​23:​86:​01:​07 ​
 +Tue Nov  7 19:29:24 2017 daemon.info dnsmasq-dhcp[16313]:​ DHCPOFFER(br-lan) 192.168.1.235 00:​1c:​23:​86:​01:​07 ​
 +Tue Nov  7 19:29:24 2017 daemon.info dnsmasq-dhcp[16313]:​ DHCPREQUEST(br-lan) 192.168.1.235 00:​1c:​23:​86:​01:​07 ​
 +Tue Nov  7 19:29:24 2017 daemon.info dnsmasq-dhcp[16313]:​ DHCPACK(br-lan) 192.168.1.235 00:​1c:​23:​86:​01:​07 ​
 +Tue Nov  7 19:29:24 2017 daemon.notice rpc.mountd[16219]:​ authenticated mount request from 192.168.1.235:​777 for /​mnt/​extstorage/​tftp/​disks/​ubuntu1310-64 (/​mnt/​extstorage/​tftp/​disks)
 +</​code>  ​
  
 </​tabbox>​ </​tabbox>​
  
 {{tag>​tftpd}} {{tag>​tftpd}}
doc/howto/tftp.pxe-server.txt · Last modified: 2017/11/08 02:08 by leeand00