Adding Hirens 15.2 boot cd to the boot menu
-
In the wiki there is a guide to add hirens boot cd to the boot menu.
link text
I have followed the wiki but the wiki is a bit old and it’s a little different with the new fog.When I add the following in the parameters then fog stops working.
:MENU
menu
item --gap – ---------------- iPXE boot menu ----------------
item ubuntu15.04_64 Boot Ubuntu 15.04
item return return to previous menu
:ubuntu15.04_64
set path /fog/iso/15.04_64
set nfs_path /var/www/fog/ISO/15.04_64
kernel http://${fog-ip}${path}/casper/vmlinuz.efi || read void
initrd http://${fog-ip}${path}/casper/initrd.lz || read void
imgargs vmlinuz.efi root=/dev/nfs boot=casper netboot=nfs nfsroot=${fog-ip}:${nfs_path} ip=dhcp splash quiet – || read void
boot || read void
goto startI have tried leaving some parts out like this:
:ubuntu15.04_64
set path /fog/iso/15.04_64
set nfs_path /var/www/fog/ISO/15.04_64
kernel http://${fog-ip}${path}/casper/vmlinuz.efi || read void
initrd http://${fog-ip}${path}/casper/initrd.lz || read void
imgargs vmlinuz.efi root=/dev/nfs boot=casper netboot=nfs nfsroot=${fog-ip}:${nfs_path} ip=dhcp splash quiet – || read void
bootThen fog keeps working but the hirens won’t boot.
Also the wiki say’s hirens 15.04 but the newest versions of hirens i can find is 15.2.
Anyone have an idea how we can do it in the new fog?Thanks
-
Hey! Thanks for the topic!
If it does not exist
mkdir /var/www/fog/iso
Copy ISO file
cp SOURCE_PATH/ISO_FILE /var/www/fog/iso
Add
/var/www/fog/iso * (ro, sync, no_wdelay, insecure_locks, no_root_squash, insecure )
in
/etc/exports
Run
sudo service nfs-kernel-server restart sudo service rpcbind restart
Add a new menu in FOG WEB GUI
initrd http://${fog-ip}/fog/iso/ISO_FILE.iso chain memdisk iso raw
WORKED PERFECTLY!
-
@goempie said in Adding Hirens 15.2 boot cd to the boot menu:
I wil try to make a small guide on how to do it.
Please do! I’ll add it to the wiki after you have it made.
-
IT WORKS
After the promt i just have to hit enter and then the hirens boots.
Thanks for the help.
I wil try to make a small guide on how to do it.
-
Ok getting there.
initrd http://${fog-ip}/fog/service/ipxe/iso/hbcd.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 MENUWhen i boot i see that it downloads the iso then it comes to 100% and then i get the message
failed to load iso if it stops here
-
@goempie
I did a little digging - this thread looks very promising:https://forums.fogproject.org/topic/3229/ipxe-iso-boot-problems
Specifically this post:
@csurepair said in IPXE ISO boot problems:
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!!
-
This is what i see when i go to /fog/service/ipxe/boot.php
So i don’t think tha the :hbcd in the begining is necessary.
But i deleted it and stil it doesn’t work.:hirensbcd
:hbcd
#open iso with iso editor and remove pmagic to make it ligther
initrd ${fog-ip}/fog/iso/hbcd.iso
kernel memdisk iso raw
boot || goto failed
goto start -
@Wayne-Workman said in Adding Hirens 15.2 boot cd to the boot menu:
:hbcd
#open iso with iso editor and remove pmagic to make it ligther
initrd ${fog-ip}/fog/iso/hbcd.iso
kernel memdisk iso raw
boot || goto failed
goto startYep i can see the iso in the browser and can download it.
-
try
:hbcd #open iso with iso editor and remove pmagic to make it ligther initrd ${fog-ip}/fog/iso/hbcd.iso kernel memdisk iso raw boot || goto failed goto start
also - make sure the permissions on the iso are good, can you see it in a web browser?
-
Yes i saw it after i posted it.
This is what i have now
But still no champagne
:hbcd
#open iso with iso editor and remove pmagic to make it ligther
initrd ${fog-ip}/fog/iso/hbcd.iso
kernel memdisk iso raw || goto failed
boot || goto failed
goto start -
@goempie the pathing is wrong. you already have /fog/iso in your path variable, don’t need to do it again.
also I don’t think you have to specify an IP for the memdisk kernel.
-
@Wayne-Workman
I moved the hbcd.iso to the directory /var/www/fog/iso/hbcd.iso
Then i changed the menu entry, but no party:hbcd
#open iso with iso editor and remove pmagic to make it ligther
set path /fog/iso
set nfs_path /var/www/fog/iso/15.04_64
initrd ${fog-ip}${path}/fog/iso/hbcd.iso
kernel ${fog-ip}$ kernel memdisk iso raw || goto failed
boot || goto failed
goto start -
@goempie
I pulled this from the boot.php output when I gave it a registered MAC as a parameter.
http://x.x.x.x/fog/service/ipxe/boot.php?mac0=00:1e:37:54:9b:70kernel memdisk iso raw initrd memtest.bin boot || goto MENU
-
@Wayne-Workman
nope nothing to see here -
@goempie said in Adding Hirens 15.2 boot cd to the boot menu:
at is the path to the memdisk kernel?
Look at the boot menu entry for memdisk… You should be able to see it through the web interface.
-
@Wayne-Workman what is the path to the memdisk kernel?
-
@goempie But I don’t think that fog has a
boot-url
iPXE variable. You may need to piece that together with thefog-ip
variable and set apath
like in the other examples. -
@goempie Looks that way, yes. And looks like they are using the standard Memdisk kernel too.
-
@Wayne-Workman
:hbcd
#open iso with iso editor and remove pmagic to make it ligther
initrd ${boot-url}/images/hbcd152.iso
kernel ${boot-url}/memdisk iso raw || goto failed
boot || goto failed
goto startIn the above example they are pointing to the *.iso file itself.
So this means that they don’t mount the iso on the fog server? -
@goempie I did a little looking, the below thread over at ipxe.org may be of interest to you:
http://forum.ipxe.org/showthread.php?tid=7052
There’s an example in there that someone claimed works. It might need adjusted though as those posts are from 2013.
If you get it working, please do list your steps.