Adding Hirens 15.2 boot cd to the boot menu
-
@Tom-Elliott
I’m following the wiki, otherwise I have no idea what i’m doing -
@goempie So, let’s look at where you are?
You got to the boot menu, and the FOG background image is displayed. So at this point, you’ve successfully gotten a boot ROM via TFTP, it loaded correctly, and now that ROM is following specific instructions for the Hirens boot entry.
“File not found” seems pretty obvious, right? Some way or another the files the boot menu item is requesting are simply not available. This could be that… permissions are not set right, or the files simply are not there (in the wrong directory or typo in path or filenames. Linux is CASE SENSITIVE).
Look over your boot menu entry again, and look over where your files are on the fog server again. Make sure everything is jiving. Check permissions on those files as well.
Are you using NFS mounting at all for this? Yes you are, I just looked at what Tom posted. Did you export the
/var/www/fog/iso/15.04_64
directory via NFS? If not, it wouldn’t exist I guess! -
@Wayne-Workman
yes i’m using nfs mounting, i extracted the iso to the directory as it say’s in the wiki.I just don’t get where this is pointing to:
kernel http://${fog-ip}${path}/casper/vmlinuz.efi || read void <---- there is nog casper/vmlinuz.efi in the iso that i extracted?
initrd http://${fog-ip}${path}/casper/initrd.lz || read void -
@Wayne-Workman
This is the file structure of the hirens boot cd.
And I can reach it through a browser. -
kernel http://${fog-ip}${path}/casper/vmlinuz.efi || read void <---- there is nog casper/vmlinuz.efi in the iso that i extracted?
initrd http://${fog-ip}${path}/casper/initrd.lz || read voidThese two things are your kernel and your init.
so fog-ip is auto-filled in with your FOG IP. The path is set in the boot entry, it’s this line:
set path /fog/iso/15.04_64
So your path would be /fog/iso/15.04_64
Put that all together and you have a web URL:
x.x.x.x/fog/iso/15.04_64/casper/vmlinuz.efi
Where x.x.x.x is your fog server IP, of course.
What the iPXE boot script is trying to do is load the kernel and init via HTTP, through a web request basically.
So… it may be that the mounted directory cannot be read by Apache due to permissions or placement, or it could be that the files listed there just aren’t where they should be.
Either way, you need to sort that out, or figure out how to do it via NFS fully. In the wiki link below, you’ll find an example in the “Parted Magic - Older” area. Not sure if a Linux kernel will work with Hirens though! Probably not!
-
@goempie the “boot” folder in that picture you posted looks promising… look around in there… Maybe you’ll find the files you need to point to…
-
The whole directory /casper/… just isn’t there, and its not explained in the wiki how they get there.
It just say’s extract the hirens boot cd to the directory /fog/iso/15.04_64I’m not shure to wich file i should point in the hirens iso to make it boot.
-
@Wayne-Workman
There’s only one file in there -
@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.
-
@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 Looks that way, yes. And looks like they are using the standard Memdisk kernel too.
-
@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. -
@Wayne-Workman what is the path to the memdisk kernel?
-
@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
nope nothing to see here -
@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
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 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.
-
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 -
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?