iPXE discussion forum

Full Version: tftp in ipxe script ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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_producti...ge.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.
(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.
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.
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.
Reference URL's