Boot ISO memdisk 1.3+
-
@cnewman402 You need parameters.
You need to figure out where the kernel is on the ISO, and specify it. I don’t know where it is, but normally it ends with a.bzi
extension.Two files that stick out for kernel and init are
vmlinuz
andinitrd.lzm
that I see in the picture.I don’t know if this will work (it’s just a guess), but put these in the parameters section:
:AVG kernel http://${fog-ip}/avg/isolinux/vmlinuz initrd http://${fog-ip}/avg/isolinux/boot.cat initrd http://${fog-ip}/avg/isolinux/initrd.lzm initrd http://${fog-ip}/avg/isolinux/ldlinux.c32 initrd http://${fog-ip}/avg/isolinux/libutil.c32 initrd http://${fog-ip}/avg/isolinux/reboot.c32 initrd http://${fog-ip}/avg/isolinux/syslinux.png initrd http://${fog-ip}/avg/isolinux/f1.msg initrd http://${fog-ip}/avg/isolinux/isolinux.bin initrd http://${fog-ip}/avg/isolinux/libcom32.c32 initrd http://${fog-ip}/avg/isolinux/syslinux.cfg initrd http://${fog-ip}/avg/isolinux/vesamenu.c32 imgargs vmlinuz boot=live ip=dhcp edd=on noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=normal sleep=0 loglevel=0 keymap=us splash quiet - || read void boot || read void
–EDIT–
updated the image args. -
This post is deleted! -
@cnewman402 the grab entries is a starting point.
I would try to boot the iso directly first. If that doesn’t work then dig into the iso and extract its content to a directory on the fog server and then checkout the syslinux config file or the grub config file
-
Im starting to see how the entries are created. Thank you for pointing out each bootable image is unique. I’ll continue to test and see how the different images work. Im pretty new to Linux, with just basic experience from working at a webhost company for a while.
Is it possible to use memdisk with iso’s in this build or is it mandatory to extract and build entry into each one?
-
@cnewman402 I did write a tutorial a bit ago about pxe booting a winpe disk that shows two examples. While its a bit off point of what you are doing right now it does show you the steps.
https://forums.fogproject.org/topic/6284/booting-mdt-2013-litetouch-with-fogI also wrote one that shows how to boot the windows setup via a pxe boot.
https://forums.fogproject.org/topic/7765/pxe-booting-into-ms-windows-7-setupCouple that with the FOG Wiki that Sebastian referenced
https://wiki.fogproject.org/wiki/index.php?title=Include_any_ISO_in_the_FOG_BootmenuThat should get you started. Now understand each iso is different. The ones that are based on linux typically will have instructions on the provider web site on how to pxe boot them.
With that information you should be able to build your pxe boot menus nicely with the fog management gui.
-
@cnewman402 By the way, you don’t (and shouldn’t) put the item identifier :AVG (or similar) in parameters field, FOG will automatically generate the item name based on the Menu Item field (so make sure that one has no spaces or special characters to avoid potential issues)
-
@Sebastian-Roth I want to boot from Windows 7 iso:
:MENU
menu
item --gap – ---------------- iPXE boot menu ----------------
item windows Install Windows
choose --default windows target && goto ${target}
:windows
menu
item Win7AIK_EN Windows7_32
item shell ipxe shell
item return Return to Main Menu
choose --default Win7_32 target && goto ${target}:Win7AIK_EN
initrd http://192.168.1.9/fog/service/ipxe/iso/Win7AIK_EN.iso
chain memdisk iso raw ||
goto MENU:shell
shell ||
goto MENU
:return
chain http://192.168.1.9/fog/service/ipxe/boot.php?mac=${net0/mac} ||
prompt
goto MENU
autoboot
…
But client hangs at “Loading Boot Sector…booting…” during boot.It is a “Solved” question https://forums.fogproject.org/topic/5521/add-to-advanced-boot-menu-windows-7-iso but I can’t find anything.
-
-
@xfirero That way won’t work (as you noticed). Windows will look for a cdrom (hardware) if you do it that way.
Review this tutorial
https://forums.fogproject.org/topic/7765/pxe-booting-into-ms-windows-7-setup -
@Quazz 10x
-
@george1421 10x
-
@cnewman402
Check out what I have done in my server with this iPXE boot menu. I’ve got quite a few ISO’s booting on my setup using memdisk.:dban menu DBAN Nuke Menu item autonuke AutoNuke DoD 3-Pass item zero AutoNuke 1-Pass Zero Wipe item choose-disk Single Disk Selection item return Back to top menu... item choose --default return --timeout 10000 target && goto ${target} :autonuke kernel http://${fog-ip}/dban/dban.bzi nuke="dwipe --autonuke" silent vga=785 boot || goto failed :zero kernel http://${fog-ip}/dban/dban.bzi nuke="dwipe --autonuke --method zero" silent vga=785 boot || goto failed :choose-disk kernel http://${fog-ip}/dban/dban.bzi nuke="dwipe" silent vga=785 boot || goto failed :return chain ${boot-url}/service/ipxe/boot.php?mac=${net0/mac} || prompt goto MENU :WHDD kernel http://${fog-ip}/whdd/whdd.bzi initrd http://${fog-ip}/whdd/initramfs boot :HDT initrd http://${fog-ip}/hdt/hdt.iso chain http://${fog-ip}/hdt/memdisk iso raw boot :AVG initrd http://${fog-ip}/avg/avg.iso chain http://${fog-ip}/avg/memdisk iso raw boot :BreakIn initrd http://${fog-ip}/breakin/breakin.iso chain http://${fog-ip}/breakin/memdisk iso raw boot