Advanced Boot menu Help
-
@sacha_marin
This is what mine looks like now and I’ve been able to boot the Offline NT Password Reset okay.:MENU
menu
item --gap – ---------------- iPXE boot menu ----------------
item cd140201 Boot Offline NT Password Reset
item shell ipxe shell
item return return to previous menu
choose --default cd140201 --timeout 5000 target && goto ${target}
:cd140201
sanboot http://${fog-ip}/fog/ISO/cd140201.iso ||
goto MENU
:shell
shell ||
:return
chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
prompt
goto MENU
autobootNot sure what else you want to boot, but @Wayne-Workman is right about it being dependent in my experience. For instance, I tried using boot-repair-disk to fix a GRUB issue that I had and it didn’t work properly, I suspect because I’m using sanboot to load the iso. I was going to Windows 8.1 and Ubuntu 15.04 once I get my imaging working properly.
-
Hiren boot cd, Falcon boot cd, would be a good start
i doubt i would need a windows at all.
-
@sacha_marin Should be easy enough to test then. If you haven’t already tried:
- Create a directory in /var/www/fog where your isos will be kept. If you want to avoid having to redo this every time you upgrade fog it would probably be worth defining another available site in Apache to host your iso files, but for the sake of easiness we can use the fog site since it’s already defined in Apache.
- Drop the Hiren’s.BootCD.15.2.iso into the iso Directory
- Assuming you put it in a directory called iso in your /var/www/fog/ folder you’d use something like this:
:MENU
menu
item --gap – ---------------- iPXE boot menu ----------------
item Hiren’s Load Hiren’s BootCD
item shell ipxe shell
item return return to previous menu
choose --default cd140201 --timeout 5000 target && goto ${target}
:Hiren’s
sanboot http://${fog-ip}/fog/iso/Hiren’s.BootCD.15.2.iso ||
goto MENU
:shell
shell ||
:return
chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
prompt
goto MENU
autoboot
Case sensitivity counts here so check that cause I messed it up a couple of times trying to get it working. Also, the reason I like to keep the ipxe shell there is so if my iso boot fails, I can just boot the ipxe shell and test the sanboot http://whatever/path/to/iso/here.iso command and see if it boots that way so I know how to fix my menu. Good luck!
-
@aaoyagi hey man thanks for the amazing answer. im currently testing it and i have some question
- for this {fog-ip}/${fog-webroot}
Do i have to change the fog-ip to my server’s ip or is it automatic ?
same for {fog-webroot}, im unsure what this is and if i have to change it.thanks !
-
@sacha_marin said:
@aaoyagi hey man thanks for the amazing answer. im currently testing it and i have some question
- for this {fog-ip}/${fog-webroot}
Do i have to change the fog-ip to my server’s ip or is it automatic ?
same for {fog-webroot}, im unsure what this is and if i have to change it.thanks !
I believe that’s a variable. It should be populated with the correct information without you having to change it.
-
@Wayne-Workman ok thats good. But now when i try to load the iso i get a black screen with a flashing underscore.
-
@sacha_marin ouch… TBH, I’m out of my element with this issue. I don’t do anything with my menu lol. I started to explore it at home but got side tracked with other things. Going to notify @aaoyagi and see if he has any ideas.
-
@sacha_marin @Wayne-Workman is right about those being variables. Let me download a copy of Hiren’s and see if I can get it working. There was another thread where a guy was trying to integrate Hiren’s too and he used this as the entry to boot Hiren’s. You might try it. In his case he renamed the iso to hirensboot.iso I’ll give it a shot too as soon as I get a chance.
initrd http://${fog-ip}/fog/iso/hirensboot.iso ||
chain memdisk iso raw ||
boot ||
goto MENUFor reference here’s the thread:
https://forums.fogproject.org/topic/4264/integrating-hirens-boot-15-2-into-fog-1-2-0His final menu is on page 2
-
@aaoyagi im using his menu from page 2 with hiren 15.2 rebuild and its working !
-
@sacha_marin Sweet! Glad you got it working. I couldn’t figure out what was going on with mine and then I realized…case sensitivity. #facepalm
-
@aaoyagi iktf
so far i have hiren,ultimate and falcon, all working great. im gonna try to add a chromium iso and a windows 8 live pe for fun