Can only add 1 entry to FOF pxe selection menu



  • Can anyone please explain why I am only able to add one entry to FOG pxe selection menu when I go in and edit the default pxelinux.cfg file?

    I added an entry/menu label for both DSL and Knoppix, however only one of them displays correctly.

    Thanks,
    dabob



  • Hi Tom,

    I put END TEXT as you suggested and and all seems good now, I even put it back to END TEXT and was able to recreate to problem.

    I really appreciate your help and prompt responses, now I’m able to carry on with my learning on linux/Ubuntu and FOG.

    i guess that’s what my professor meant when he said "pay close attention to details when working, especially with text based config files/programs.

    Thanks;
    dabob


  • Senior Developer

    Then I’d try getting rid of the TEXT HELP and END TEXT Bits as you have nothing underneath it anyway.

    Maybe try the following lines to your /tftpboot/pxelinux.cfg/default
    [code]
    LABEL DSL LIVE CD
    MENU MASTER PASSWD password
    kernel fog/DSL/memdisk
    append iso initrd=fog/DSL/dsl-4.11.rc1.iso raw
    MENU LABEL DSL LIVE CD
    TEXT HELP
    DSL Linux Bootable ISO
    ENDTEXT

    LABEL KNOPPIX LIVE CD
    MENU MASTER PASSWD password
    kernel fog/linux-iso/memdisk
    append iso initrd=fog/linux-iso/KNOPPIX_V7.2.0CD-2013-06-16-EN.iso raw
    MENU LABEL KNOPPIX LIVE CD
    TEXT HELP
    Knoppix Bootable ISO
    ENDTEXT[/code]

    Last thing:

    END TEXT Should actually read ENDTEXT <-- Sorry I didn’t notice this sooner.
    Hopefully this will help.



  • [quote=“Tom Elliott, post: 19765, member: 7271”]I’m only going out on a limb here, but it seems, based on looking at the configuration, you’re not seeing the menu option for DSL? Is this correct?

    It’s because of the line that says:
    [code]MENU LABELDSL LIVE CD[/code]
    It should say:
    [code]MENU LABEL DSL LIVE CD[/code][/quote]

    Hi again Tom,

    Here is a screenshot of the menu, notice how the code for the KNOPPIX LIVE CD is being displayed and located in the lower right hand corner.

    NOTE: I made the change to the spacing of LABEL and DSL that you pointed out, however the results are the same as indicated in the screenshot attachment.

    Thanks,
    dabob

    [url="/_imported_xf_attachments/0/437_win7vm.png?:"]win7vm.png[/url]


  • Senior Developer

    I’m only going out on a limb here, but it seems, based on looking at the configuration, you’re not seeing the menu option for DSL? Is this correct?

    It’s because of the line that says:
    [code]MENU LABELDSL LIVE CD[/code]
    It should say:
    [code]MENU LABEL DSL LIVE CD[/code]



  • Hi Tom, and thanks for the prompt response.

    Here is the configuration below, I believe it has something to do with wrong formatting on my end. However, I’m very new to FOG and am not exactly sure. I will try to post a screen shot somehow of the menu after pxe boot, but I’m running ubuntu on VB VM which holds all of FOG services, then I have another VB VM that I use to pxe the FOG VM. Both running on Windows 7 host.

    How do I screen shot of the pxe client VM while in FOG pxe selection menu?

    DEFAULT vesamenu.c32
    MENU TITLE NewAgeITSupport Computer Cloning Solution
    MENU BACKGROUND fog/bg.png
    MENU MASTER PASSWD $1$0123456789
    \n
    menu color title 1;36;44 #ffffffff #00000000 std
    \n
    LABEL fog.local
    localboot 0
    MENU DEFAULT
    MENU LABEL Boot from hard disk
    TEXT HELP
    Boot from the local hard drive.
    If you are unsure, select this option.
    ENDTEXT
    \n
    LABEL fog.memtest
    kernel fog/memtest/memtest
    MENU LABEL Run Memtest86+
    TEXT HELP
    Run Memtest86+ on the client computer.
    ENDTEXT
    \n
    LABEL fog.reg
    kernel fog/kernel/bzImage
    append initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=192.168.1.1 mode=autoreg web=192.168.1.121/fog/ loglevel=4
    MENU LABEL Quick Host Registration and Inventory
    TEXT HELP
    Automatically register the client computer,
    and perform a hardware inventory.
    ENDTEXT
    \n
    LABEL fog.reginput
    kernel fog/kernel/bzImage
    append initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=192.168.1.1 mode=manreg web=192.168.1.121/fog/ loglevel=4
    MENU LABEL Perform Full Host Registration and Inventory
    TEXT HELP
    Perform a full host registration on the client
    computer, perform a hardware inventory, and
    optionally image the host.
    ENDTEXT
    \n
    LABEL fog.quickimage
    MENU PASSWD $1$0123456789
    kernel fog/kernel/bzImage
    append initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=192.168.1.1 mode=quickimage keymap= web=192.168.1.121/fog/ loglevel=4
    MENU LABEL Quick Image
    TEXT HELP
    This mode will allow you to image this host quickly with
    it’s default assigned image.
    ENDTEXT
    \n
    LABEL fog.sysinfo
    kernel fog/kernel/bzImage
    append initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=192.168.1.1 mode=sysinfo loglevel=4
    MENU LABEL Client System Information
    TEXT HELP
    View basic client information such as MAC address
    and FOG compatibility.
    ENDTEXT
    \n
    LABEL fog.debug
    MENU PASSWD $1$0123456789
    kernel fog/kernel/bzImage
    append initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=192.168.1.1 mode=onlydebug
    MENU LABEL Debug Mode
    TEXT HELP
    Debug mode will load the boot image and load a prompt so
    you can run any commands you wish.
    ENDTEXT

    LABEL DSL LIVE CD
    MENU MASTER PASSWD password
    kernel fog/DSL/memdisk
    append iso initrd=fog/DSL/dsl-4.11.rc1.iso raw
    MENU LABELDSL LIVE CD
    TEXT HELP
    END TEXT

    LABEL KNOPPIX LIVE CD
    MENU MASTER PASSWD password
    kernel fog/linux-iso/memdisk
    append iso initrd=fog/linux-iso/KNOPPIX_V7.2.0CD-2013-06-16-EN.iso raw
    MENU LABEL KNOPPIX LIVE CD
    TEXT HELP
    END TEXT

    \n
    PROMPT 0
    TIMEOUT 30\n


  • Senior Developer

    Can you show us the configuration so we can try to help you out.


 

503
Online

41.5k
Users

12.0k
Topics

113.5k
Posts