IPXE ISO boot problems
-
Hello all first time poster here,
Ive been trying to boot Hirens live CD(or any iso for that matter) from the advanced ipxe menu(i.e. fog admin area). When booting a client the menu & iPXE shell appear correctly but when I select Hirens boot CD it brings me immediately back to the the main pxe menu. This is the code that I am using,
menu
item --gap – ---------------- iPXE boot menu ----------------
item BOOTCD Hirens BOOTCD
item shell ipxe shell
choose target && goto ${target}:BOOTCD
initrd ${192.168.1.130}/var/www/fog/service/ipxe/iso/Hirens152.iso
chain memdisk iso raw ||
echo failed to boot
prompt
goto MENU:shell
shell ||
goto MENUautoboot[/CODE]
Any insight would be greatly appreciated thanks!
Server specs:
FOG version 1.1.1
Ubuntu 14.04 LTS -
the ${ } marks are for variables
menu
item --gap – ---------------- iPXE boot menu ----------------
item BOOTCD Hirens BOOTCD
item shell ipxe shell
choose target && goto ${target}:BOOTCD
initrd 192.168.1.130/var/www/fog/service/ipxe/iso/Hirens152.iso
chain memdisk iso raw ||
echo failed to boot
prompt
goto MENU:shell
shell ||
goto MENUautoboot[/CODE]
or, if that is the IP of your fog server
menu
item --gap – ---------------- iPXE boot menu ----------------
item BOOTCD Hirens BOOTCD
item shell ipxe shell
choose target && goto ${target}:BOOTCD
initrd ${fog-ip}/var/www/fog/service/ipxe/iso/Hirens152.iso
chain memdisk iso raw ||
echo failed to boot
prompt
goto MENU:shell
shell ||
goto MENUautoboot[/CODE]
-
Hi Junkhacker,
Thanks for the quick response! I just changed that around and unfortunately the boot menu is still acting the same way. I double checked all the permissions on the folder and everything seems fine. Does the .iso need to be mounted or is it correct to have the file just as a stand alone .iso inside that pxe “pointed” folder? Thanks again for taking the time.
-
have you verified that you get a download prompt if you put that iso link in a browser?
everything after the IP is case sensitive -
tom spotted something on your menu
[FONT=Consolas]192.168.1.130/var/www/fog/service/ipxe/iso/Hirens152.iso[/FONT]
is pretty unlikely to be a valid path
[FONT=Consolas]/var/www/fog/service/ipxe/iso/Hirens152.iso[/FONT]
is the file path, the web directory path is probably
[FONT=Consolas]192.168.1.130/fog/service/ipxe/iso/Hirens152.iso[/FONT] -
I actually noticed that mistake right after I posted the code. This is what I have now,
[CODE]:MENU
menu
item --gap – ---------------- iPXE boot menu ----------------
item BOOTCD Hirens BOOTCD
item shell ipxe shell
choose target && goto ${target}:BOOTCD
initrd 192.168.1.130/fog/iso/Hirens152.iso
chain memdisk iso raw ||
echo failed to boot
prompt
goto MENU:shell
shell ||
goto MENUautoboot[/CODE]
And the link resolves fine via a browser,
[IMG]https://collinscustoms.info/public.php?service=files&t=179ccb1dc8da0d41cb951c602e37ea4e[/IMG]
But it continues to immediately return to the previous main menu. It seems strange to me that it returns to the main menu so fast without throwing any sort of error or timeout message.
-
[quote=“csurepair, post: 31243, member: 24772”]I actually noticed that mistake right after I posted the code. This is what I have now,
CODE:MENU
menu
item --gap – ---------------- iPXE boot menu ----------------
item BOOTCD Hirens BOOTCD
item shell ipxe shell
choose target && goto ${target}:BOOTCD
initrd 192.168.1.130/fog/iso/Hirens152.iso
chain memdisk iso raw ||
echo failed to boot
prompt
goto MENU:shell
shell ||
goto MENUautoboot[/CODE]
And the link resolves fine via a browser,
[IMG]https://collinscustoms.info/public.php?service=files&t=179ccb1dc8da0d41cb951c602e37ea4e[/IMG]
But it continues to immediately return to the previous main menu. It seems strange to me that it returns to the main menu so fast without throwing any sort of error or timeout message.[/quote]
Is the ISO located in /var/www/fog/iso/Hirens152.iso or /var/www/fog/service/ipxe/iso/Hirens152.iso
menu
item --gap – ---------------- iPXE boot menu ----------------
item BOOTCD Hirens BOOTCD
item shell ipxe shell
choose target && goto ${target}:BOOTCD
initrd http://${fog-ip}/fog/service/ipxe/iso/Hirens152.iso
chain memdisk iso raw ||
echo failed to boot
prompt
goto MENU:shell
shell ||
goto MENUautoboot[/code]
-
try this
menu
item --gap – ---------------- iPXE boot menu ----------------
item BOOTCD Hirens BOOTCD
item shell ipxe shell
choose target && goto ${target}:BOOTCD
initrd 192.168.1.130/fog/iso/Hirens152.iso ||
echo failed to load iso if it stops here
prompt
chain memdisk iso raw ||
echo failed to chain memdisk if it stops here
prompt
boot ||
echo failed to boot here if it stops here
prompt
goto MENU:shell
shell ||
goto MENUautoboot[/CODE]
-
Wahoo!!
Shes up and running! Thank you both for the feedback, you guys deserve a beer! If your ever in Fort Collins, Colorado PM me haha.
So for everyone else my problem was totally due to syntax and directory location,
By changing CODE initrd ${fog-ip}/fog/iso/Hirens152.iso[/CODE] to CODE initrd http://${fog-ip}/fog/service/ipxe/iso/Hirens152.iso[/CODE] iPXE was able to fully resolve the path. This was only accomplished by making iPXE produce some sort of feedback via the below code(most graciously posted by Junkhacker),
menu
item --gap – ---------------- iPXE boot menu ----------------
item BOOTCD Hirens BOOTCD
item shell ipxe shell
choose target && goto ${target}:BOOTCD
initrd 192.168.1.130/fog/iso/Hirens152.iso ||
echo failed to load iso if it stops here
prompt
chain memdisk iso raw ||
echo failed to chain memdisk if it stops here
prompt
boot ||
echo failed to boot here if it stops here
prompt
goto MENU:shell
shell ||
goto MENUautoboot[/CODE]
Thanks again guys!!
-
Hi Guys!!
I was having this problem too, so i would like to explain about the memory needs for HIrens to open by iPXE.
My configuration was correctly, but my VirtualMachine does not load the Hiren’s boot image because of my Memory (512mb)It’s important to check the computers memory before trying upload an ISO image.