move to Fog Pxe menu
-
I’m looking to migrate all my pxelinux menu items over to Frog and have frog become my primay pxe menu on boot
i have items like this
LABEL Flame2020 CentOS7.6
MENU LABEL ^Flame2020 CentOS 7.6
MENU PASSWD a0F1BvFIT2asdfasoKPX/I1e20
KERNEL /flame2020_centos7.6/vmlinuz
APPEND initrd=/flame2020_centos7.6/initrd.img inst.repo=nfs://pixit-v60-10g.ldn.unit.tv/mmfs1/data/anubis/.install/isos/flame2020_centos7.6 ks=nfs://pixit-v60-10g.ldn.unit.tv/mmfs1/data/anubis/.install/isos/flame2020_centos7.6/ks_820.cfghow would i add this to the menu. ideally using the web gui as the php looks a little complicated
-
@chris_unit Well to get started look at this tutorial on pxe booting your custom images: https://forums.fogproject.org/topic/10944/using-fog-to-pxe-boot-into-your-favorite-installer-images
I just looked through my tutorial and I can’t believe I don’t have a Centos example. That was my goto OS (rhel/centos) for 15 years before IBM destroyed it. Taking an example from the Fedora post in the above tutorial.
Menu Item: os.FedoraW27
Description: Fedora Workstation v27
Parameters:
kernel tftp://${fog-ip}/os/fedora/W27/vmlinuz
initrd tftp://${fog-ip}/os/fedora/W27/initrd.img
imgargs vmlinuz initrd=initrd.img root=live:nfs://${fog-ip}/images/os/fedora/W27/LiveOS/squashfs.img ip=dhcp repo=nfs://${fog-ip}/images/os/fedora/W27 splash quiet
boot || goto MENU
Menu Show with: All HostsNow using your example
Menu Item: os.Flame2020.CentOS7.6
Description: Flame2020 CentOS7.6
Parameters:
kernel tftp://${fog-ip}/flame2020_centos7.6/vmlinuz
initrd tftp://${fog-ip}/flame2020_centos7.6/initrd.img
imgargs vmlinuz initrd=/flame2020_centos7.6/initrd.img inst.repo=nfs://pixit-v60-10g.ldn.unit.tv/mmfs1/data/anubis/.install/isos/flame2020_centos7.6 ks=nfs://pixit-v60-10g.ldn.unit.tv/mmfs1/data/anubis/.install/isos/flame2020_centos7.6/ks_820.cfg
boot || goto MENU
Menu Show with: All HostsYou can do the password bit too with iPXE, I just don’t have an example of that for an iPXE menu.
One hint I can give you is stay away from using the dash ( - ), well actually space dash any letter ( -x) within your menu item or description. iPXE will see this as a parameter option.
-
@george1421 Thanks so much for this
i’m trying to get Ubuntu 20.04 Desktop working
here’s my menu item
kernel tftp://${fog-ip}/os/ubuntu/Desk20.04/vmlinuz
initrd tftp://${fog-ip}/os/ubuntu/Desk20.04/initrd
imgargs vmlinuz initrd=initrd ip=dhcp url=http://${fog-ip}/os/ubuntu/Desk20.04/ubuntu-20.04.2.0-desktop-amd64.iso locale=en_US.UTF-8 quiet splash ip=dhcp rw
boot || goto MENUvmlinuz and initrd load fine, but it can’t locate the iso.
Is the directory /images/ shared out over http ?
-
@chris_unit Does the ISO exist in the location you specified. Should be in
/var/www/html/fog/os/ubuntu/Desk20.04/ubuntu-20.04.2.0-desktop-amd64.iso
according to the stuff you posted. -
@chris_unit said in move to Fog Pxe menu:
Is the directory /images/ shared out over http ?
No its not the docbase for http on ubuntu is
/var/www/
I believe. So youros/ubuntu/Desk...
path should start form there.I would also confirm with a browser that you can reference the url to get the iso. That will tell you its working before you attempt to pxe boot.