How to edit the pxe boot menu in FOG 1.2.0



  • Hey all,

    I am quite the noob on setting up FOG. I did get it to install on a VM in CentOS 7 and it is running. I was able to upload an image successfully, which I’m sure I can deploy. However, my conundrum lies in the fact that I do not know how to change the menu when it first boots. Is there a way to customize the boot menu? I have looked on google but thought I’d ask some of you seasoned FOG users. I’m sure its simple, I just am not finding it. Thanks!



  • @ChrisJ said:

    [quote=“Uncle Frank, post: 42587, member: 28116”]There are a couple of examples here in the forums. e.g.: [url]http://fogproject.org/forum/threads/boot-menu-iso-file-size.12442/[/url][/quote]

    Thanks. That worked. Got the AVG ISO booting now.
    If anyone is interested In Fog 1.2.0, in the fog configuration in the advanced config options text box I have this :

    menu
    item --gap – ---------------- iPXE boot menu ----------------
    item AVG AVG Antivirus scan
    item Sophos Sophos Antivirus scan
    item shell ipxe shell
    item return return to previous menu
    choose --default AVG --timeout 5000 target && goto ${target}

    :AVG
    initrd http://${fog-ip}/${fog-webroot}/iso/avg_arl_cdi_all_120_141126a8645.iso
    chain memdisk iso raw ||
    goto MENU

    :Sophos
    initrd http://${fog-ip}/${fog-webroot}/iso/sophosbootable.iso
    chain memdisk iso raw ||
    goto MENU

    :shell
    shell ||
    goto MENU

    :return
    chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
    prompt
    goto MENU

    autoboot[/CODE]

    Next task is to customise that iso so its got up to date definitions, sets the network and proxy appropriately and has 2 options “scan” and “custom” where scan just gets on with it (if nothing is selected) without asking loads of questions and custom gives access to the original ARL menu…

    Very helpful @ChrisJ, thank you!


  • Moderator

    @Junkhacker said:

    downgrades are not supported, i’m afraid, so make backups and be prepared to roll back to them. but, I’ve been using the trunk version 4384 (SVN 3877) in production at work for over 2 months without any problems.

    I can vouch for SVN revision 4103. I’ve been using it on the work production server for… over a month for sure. But, I’ve also been playing a lot with the very latest on a test server at work, and I use the latest at home on my personal fog server. It seems like it’s pretty solid right now for Red Hat based distros like CentOS 7 and Fedora 21.


  • Developer

    downgrades are not supported, i’m afraid, so make backups and be prepared to roll back to them. but, I’ve been using the trunk version 4384 (SVN 3877) in production at work for over 2 months without any problems.



  • @Junkhacker Awesome, thanks for the quick reply! We use fog on a daily basis in our district and I’d love to avoid downtime. How stable is the trunk version? If I upgrade to trunk, can I walk it back to 1.2.0 if there’s a problem, or would it be better to set up a separate fog server with the trunk version that we can swap in when we do online testing and need the network image booting? Sorry for being a little off-topic!


  • Developer

    @chriscarman this can be done in the trunk version of fog from the web interface



  • This example is really helpful, thanks! Is there any way to move one of the advanced items onto the main boot menu and make it the default? I work at a school district that has to implement online standardized testing in the spring, and we’ve been playing with booting an Ubuntu Live image over the network with our FOG server so that we don’t have to install any software on our Windows PCs. It would be great if we could make the Ubuntu image the default in the main menu instead of booting to hard drive, because it would automate the process a lot across our six buildings.



  • [quote=“Uncle Frank, post: 42587, member: 28116”]There are a couple of examples here in the forums. e.g.: [url]http://fogproject.org/forum/threads/boot-menu-iso-file-size.12442/[/url][/quote]

    Thanks. That worked. Got the AVG ISO booting now.
    If anyone is interested In Fog 1.2.0, in the fog configuration in the advanced config options text box I have this :

    menu
    item --gap – ---------------- iPXE boot menu ----------------
    item AVG AVG Antivirus scan
    item Sophos Sophos Antivirus scan
    item shell ipxe shell
    item return return to previous menu
    choose --default AVG --timeout 5000 target && goto ${target}

    :AVG
    initrd http://${fog-ip}/${fog-webroot}/iso/avg_arl_cdi_all_120_141126a8645.iso
    chain memdisk iso raw ||
    goto MENU

    :Sophos
    initrd http://${fog-ip}/${fog-webroot}/iso/sophosbootable.iso
    chain memdisk iso raw ||
    goto MENU

    :shell
    shell ||
    goto MENU

    :return
    chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
    prompt
    goto MENU

    autoboot[/CODE]

    Next task is to customise that iso so its got up to date definitions, sets the network and proxy appropriately and has 2 options “scan” and “custom” where scan just gets on with it (if nothing is selected) without asking loads of questions and custom gives access to the original ARL menu…


  • Developer

    There are a couple of examples here in the forums. e.g.: [url]http://fogproject.org/forum/threads/boot-menu-iso-file-size.12442/[/url]



  • Anyone got any examples of how to add a iso or even just the existing Clam AV scan to the boot menu via the new web interface? I’ve searched but can’t find at the moment (because I’m manually AV checking the machines that didn’t have AV when I started here last month…)


  • Developer

    in the newer dev versions of fog, you can edit the boot menu right from the web interface (i’m running svn 2948 as a production server and have had no problems, ymmv). changing the background is as simple as changing the file at <web-root>/fog/service/ipxe/bg.png



  • Okay, so the boot menu is just php? That is what I was confused about. @junkhacker: I wanted to add a few more options for different images to the menu and change the background to a company background. I’ll look at the file Uncle Frank posted. Thanks and I do appreciate any responses, was just afk.


  • Developer

    what are you wanting to change?


  • Developer

    [quote=“domii666, post: 42414, member: 24204”]fogsettings, advanced menü.[/quote]
    Only if you have upgraded to a SVN version, right?? Version 1.2.0 does not come with cumstomizable menu afaik!

    You could edit the PHP files to change the menu (ugly) or try upgrading ([url]http://www.fogproject.org/wiki/index.php/Upgrade_to_trunk[/url]). But be warned that this is not a stable release and might break things.

    If you only want to remove some of the options from the menu you probably are best of with editing ‘/var/www/fog/lib/fog/BootMenu.class.php’ until the new version of FOG is being released.



  • fogsettings, advanced menü.


Log in to reply
 

436
Online

39.3k
Users

11.0k
Topics

104.5k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.