iPXE discussion forum
Cannot seem to run boot.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: Cannot seem to run boot.ipxe script (/showthread.php?tid=19325)



Cannot seem to run boot.ipxe script - edb1117 - 2019-08-30 18:30

I have to say I just discovered iPXE and it is awesome, but I want to script it so I don't have to manually type in more than say, one line.

I created a boot.ipxe script according to the documentation, but I cannot seem to get it to work. I type:
http://172.16.1.251/boot.ipxe
But I get an error:
http://172.16.1.251/boot.ipxe: command not found

Here is what I am using:

-iPXE prebuilt iso, booting up workstation with USB stick
-iPXE prebuilt wimboot
-Windows 2018 R2 server
-IIS Web Server
-added .sdi, .wim, .*, .ipxe mime types in IIS
-the boot.ipxe, bcd, boot.sdi, boot.wim, and wimboot file are in c:\inetpub\wwwroot folder on 2018 server

I can do it manually, typing in these lines separately and can boot up a WinPE disk successfully:
kernel http://172.16.1.251/wimboot
initrd -n bcd http://172.16.1.251/bcd bcd
initrd -n boot.sdi http://172.16.1.251/boot.sdi boot.sdi
initrd -n boot.wim http://172.16.1.251/boot.wim boot.wim
boot

My boot.ipxe looks like:
#!ipxe
kernel wimboot
initrd bcd BCD
initrd boot.sdi boot.sdi
initrd boot.wim boot.wim
boot

Thanks in advance for the help.
Great program!


RE: Cannot seem to run boot.ipxe script - NiKiZe - 2019-09-05 00:38

you are only typing "http://172.16.1.251/boot.ipxe" ?
ipxe requires commands and don't know what to do with that string
but if you add chain before it, so that you get
"chain http://172.16.1.251/boot.ipxe" you should be good in terms of it being able to parse the line.

you might need to type dhcp first as well.
Also you might want to look at http://ipxe.org/embed


RE: Cannot seem to run boot.ipxe script - Andromeda_x - 2019-09-07 19:03

Hi ebd1117,

the documentation shows an example which you should find useful, chainloading

Also you might find the following webpage useful with updated pre-compiled ipxe

Probably you already read documentation on wimboot and winpe, I add it for completeness anyway

You can play around with interactive configuration tool

And to better understand iPXE you will find useful documentation about settings and commands.

Andromeda_x