iPXE discussion forum
tftp in ipxe script ? - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: tftp in ipxe script ? (/showthread.php?tid=7723)



tftp in ipxe script ? - purpletech - 2015-05-08 01:57

Hi,
I have a script like:

------
#!ipxe
kernel http://192.168.59.3:9999/coreos_production_pxe.vmlinuz
initrd http://192.168.59.3:9999/coreos_production_pxe_image.cpio.gz
boot
--------
Files hosted on http seems to work fine how do i do files hosted on tftp ?

In other words,
if I host a files in my /tftpboot/

The statement
kernel tftp://192.168.59.3/coreos_production_pxe.vmlinuz

doesnt work .

I verified that the file can be transfered when tested using a tftpclient but doesnt work from ipxe.

Any idea?

Thanks.


RE: tftp in ipxe script ? - NiKiZe - 2015-05-08 08:31

(2015-05-08 01:57)purpletech Wrote:  The statement
kernel tftp://192.168.59.3/coreos_production_pxe.vmlinuz

doesnt work .

Have you checked the logs of the tftpserver?
also what does "doesnt work" mean? what is the error message and error url you get from iPXE.


RE: tftp in ipxe script ? - purpletech - 2015-05-08 19:15

oops Iam sorry

The command that doesnt work is :
kernel /coreos_production_pxe.vmlinuz

This goes as a http request rather than tftp request. I dont see requests going to my http server and not tftp server.

What happens when i dont give any http or tftp in there ?
which IP and protocol does it assume ?

explicitly providing
tftp://

works.

sorry again.

Thanks.


RE: tftp in ipxe script ? - robinsmidsrod - 2016-03-17 11:54

There are been some patches recently that fix the TFTP url resolution, so you should probably try again with the latest git version of ipxe.