• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Fog 0.33b edit PXE menu

    Scheduled Pinned Locked Moved
    General
    16
    67
    39.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JunkhackerJ
      Junkhacker Developer
      last edited by

      if you paste your advanced menu code here, i will help you troubleshoot it
      please use the “code” format button when doing so.

      signature:
      Junkhacker
      We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

      1 Reply Last reply Reply Quote 0
      • D
        domii666
        last edited by

        menu
        item --gap – ---------------- iPXE boot menu ----------------
        item WIN7PE64BIT Boot Windows 7 64 bit iso
        item WIN7PE32BIT Boot Windows 7 32 bit iso
        item shell ipxe shell
        item return return to previous menu
        choose --default WIN7PE64BIT --timeout 5000 target && goto ${target}

        :WIN7PE64BIT
        initrd http://${fog-ip}/${fog-webroot}/fog/ISO/Windows8x64.iso
        chain memdisk iso raw ||
        goto MENU

        :WIN7PE32BIT
        initrd http://${fog-ip}/ISO/Windows8x64.iso
        chain memdisk iso raw ||
        goto MENU

        :ipxedemo
        chain http://boot.ipxe.org/demo/boot.php ||
        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]

        apache error.log

        [Wed May 28 16:41:23 2014] [error] [client 192.168.2.22] File does not exist: /var/www/fog/fog
        [Wed May 28 16:41:28 2014] [error] [client 192.168.2.22] File does not exist: /var/www/ISO/Windows8x64.iso
        [Wed May 28 16:41:58 2014] [error] [client 192.168.2.22] File does not exist: /var/www/fog/fog
        [Wed May 28 16:42:01 2014] [error] [client 192.168.2.22] File does not exist: /var/www/ISO/Windows8x64.iso
        [Wed May 28 16:43:47 2014] [error] [client 192.168.2.22] File does not exist: /var/www/fog/fog
        [Wed May 28 16:44:23 2014] [error] [client 192.168.2.22] File does not exist: /var/www/fog/fog

        [url=“/_imported_xf_attachments/0/840_Unbenannt.jpg?:”]Unbenannt.jpg[/url]

        1 Reply Last reply Reply Quote 0
        • D
          domii666
          last edited by

          omg… if the file is @ /var/www/ISO the fog search @ /var/www/fog/ISO

          and if the file is at /var/www/fog/ISO the fog search @ /var/www/ISO

          [Wed May 28 16:41:23 2014] [error] [client 192.168.2.22] File does not exist: /var/www/fog/fog
          [Wed May 28 16:41:28 2014] [error] [client 192.168.2.22] File does not exist: /var/www/ISO/Windows8x64.iso
          [Wed May 28 16:41:58 2014] [error] [client 192.168.2.22] File does not exist: /var/www/fog/fog
          [Wed May 28 16:42:01 2014] [error] [client 192.168.2.22] File does not exist: /var/www/ISO/Windows8x64.iso
          [Wed May 28 16:43:47 2014] [error] [client 192.168.2.22] File does not exist: /var/www/fog/fog
          [Wed May 28 16:44:23 2014] [error] [client 192.168.2.22] File does not exist: /var/www/fog/fog
          [Wed May 28 16:50:13 2014] [error] [client 192.168.2.22] File does not exist: /var/www/fog/ISO/Windows8x64.iso
          [Wed May 28 16:50:20 2014] [error] [client 192.168.2.22] File does not exist: /var/www/fog/ISO/Windows8x64.iso
          [Wed May 28 16:51:04 2014] [error] [client 192.168.2.22] File does not exist: /var/www/fog/ISO/Windows8x64.iso
          [Wed May 28 16:53:16 2014] [error] [client 192.168.2.22] File does not exist: /var/www/ISO/Windows8x64.iso
          [Wed May 28 16:53:19 2014] [error] [client 192.168.2.22] File does not exist: /var/www/ISO/Windows8x64.iso
          [Wed May 28 16:55:45 2014] [error] [client 192.168.2.22] File does not exist: /var/www/fog/fog
          [Wed May 28 16:58:19 2014] [error] [client 192.168.2.22] File does not exist: /var/www/fog/fog
          [Wed May 28 16:58:23 2014] [error] [client 192.168.2.22] File does not exist: /var/www/fog/ISO/Windows8x64.iso

          1 Reply Last reply Reply Quote 0
          • JunkhackerJ
            Junkhacker Developer
            last edited by

            [FONT=Consolas]initrd [url]http://${fog-ip}/${fog-webroot}/fog/ISO/Windows8x64.iso[/url][/FONT]
            this is wrong. it should be
            [FONT=Consolas]initrd [url]http://${fog-ip}/${fog-webroot}/ISO/Windows8x64.iso[/url][/FONT]

            signature:
            Junkhacker
            We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

            1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott
              last edited by

              And if it’s not located in /var/www/fog/ISO and is located in /var/www/ISO the booturl should be:
              [code]http://${fog-ip}/ISO/Windows8x64.iso[/code]

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              1 Reply Last reply Reply Quote 0
              • D
                domii666
                last edited by

                iso is stored @ /var/www/fog/ISO fog search with initrd [url]http://${fog-ip}/${fog-webroot}/ISO/Windows8x64.iso[/url]
                [Wed May 28 17:50:17 2014] [error] [client 192.168.2.22] File does not exist: /var/www/fog/ISO/Windows8x64.iso

                1 Reply Last reply Reply Quote 0
                • Jaymes DriverJ
                  Jaymes Driver Developer
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • M
                    madskillz23
                    last edited by

                    Hello, I am using Fog 1.0.1 on CentOS 6.5 and attempting to get Ubuntu 12.04 or 14.04 to live boot. Does anyone have a working iPXE menu configuration, or have any idea why mine is failing (screen flashes and it goes back to first iPXE menu). I had a working configuration for both using fog 0.32. My menu code is below:
                    [CODE]set boot_url http://${fog-ip}/var/www/html/fog/service/ipxe/
                    set boot_nfs ${fog-ip}:/images/

                    :MENU
                    menu
                    item Ubuntu12 Ubuntu 12.04 x64 Live
                    item Ubuntu14 Ubuntu 14.04 x64 Live
                    item return return to previous menu

                    :Ubuntu12
                    kernel http://xxx.xxx.xxx.xxx/var/www/html/fog/service/ipxe/ubuntu12/casper/vmlinuz.efi
                    initrd http://xxx.xxx.xxx.xxx/var/www/html/fog/service/ipxe/ubuntu12/casper/initrd.lz
                    imgargs boot=casper netboot=nfs nfsroot=xxx.xxx.xxx.xxx:/images/ubuntu12.04/
                    shell
                    boot

                    :Ubuntu14
                    kernel ${boot_url}/ubuntu/casper/vmlinuz.efi
                    initrd ${boot_url}/ubuntu/casper/initrd.lz
                    imgargs boot=casper netboot=nfs nfsroot=xxx.xxx.xxx.xxx:/images/ubuntu14.04/
                    boot

                    :return
                    :return
                    chain http://${boot_url}/boot.php?mac=${net0/mac} ||
                    prompt
                    goto MENU

                    autoboot[/CODE]

                    1 Reply Last reply Reply Quote 0
                    • JunkhackerJ
                      Junkhacker Developer
                      last edited by

                      [FONT=Consolas]set boot_url [url]http://${fog-ip}/var/www/html/fog/service/ipxe/[/url][/FONT]
                      should be
                      [FONT=Consolas]set boot_url [url]http://${fog-ip}/fog/service/ipxe/[/url][/FONT]
                      because http://[FONT=Consolas]${fog-ip} resolves to the root of your web server[/FONT]

                      [FONT=Consolas]your menu doesn’t have a choose statement to tell ipxe to let you choose something[/FONT]

                      [FONT=Consolas]try this[/FONT]

                      [CODE]
                      set boot_url http://${fog-ip}/fog/service/ipxe/
                      set boot_nfs ${fog-ip}:/images/

                      :MENU
                      menu
                      item Ubuntu12 Ubuntu 12.04 x64 Live
                      item Ubuntu14 Ubuntu 14.04 x64 Live
                      item return return to previous menu
                      choose target && goto ${target}

                      :Ubuntu12
                      kernel http://xxx.xxx.xxx.xxx/fog/service/ipxe/ubuntu12/casper/vmlinuz.efi
                      initrd http://xxx.xxx.xxx.xxx/fog/service/ipxe/ubuntu12/casper/initrd.lz
                      imgargs boot=casper netboot=nfs nfsroot=xxx.xxx.xxx.xxx:/images/ubuntu12.04/
                      shell
                      boot

                      :Ubuntu14
                      kernel ${boot_url}/ubuntu/casper/vmlinuz.efi
                      initrd ${boot_url}/ubuntu/casper/initrd.lz
                      imgargs boot=casper netboot=nfs nfsroot=xxx.xxx.xxx.xxx:/images/ubuntu14.04/
                      boot

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

                      autoboot[/CODE]

                      signature:
                      Junkhacker
                      We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                      1 Reply Last reply Reply Quote 0
                      • M
                        madskillz23
                        last edited by

                        Thanks, that got me further. Now it goes back to the first menu (same error) after initrd loads. I’m thinking it has to do with the arguments passed to Ubuntu, but I am unsure. Any ideas?

                        1 Reply Last reply Reply Quote 0
                        • JunkhackerJ
                          Junkhacker Developer
                          last edited by

                          here’s a tip to tracking down what line kills it
                          put a “prompt” after each line, and it will make you hit a key before continuing

                          signature:
                          Junkhacker
                          We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                          1 Reply Last reply Reply Quote 0
                          • M
                            madskillz23
                            last edited by

                            Thanks, the imgargs line kills it. I’ve been trying various tutorials and combinations for that line but I have yet to find one that works.

                            1 Reply Last reply Reply Quote 0
                            • Tom ElliottT
                              Tom Elliott
                              last edited by

                              [quote=“Junkhacker, post: 28460, member: 21583”][FONT=Consolas]set boot_url [url]http://${fog-ip}/var/www/html/fog/service/ipxe/[/url][/FONT]
                              should be
                              [FONT=Consolas]set boot_url [url]http://${fog-ip}/fog/service/ipxe/[/url][/FONT]
                              because http://[FONT=Consolas]${fog-ip} resolves to the root of your web server[/FONT]

                              [FONT=Consolas]your menu doesn’t have a choose statement to tell ipxe to let you choose something[/FONT]

                              [FONT=Consolas]try this[/FONT]

                              [CODE]
                              set boot_url http://${fog-ip}/fog/service/ipxe/
                              set boot_nfs ${fog-ip}:/images/

                              :MENU
                              menu
                              item Ubuntu12 Ubuntu 12.04 x64 Live
                              item Ubuntu14 Ubuntu 14.04 x64 Live
                              item return return to previous menu
                              choose target && goto ${target}

                              :Ubuntu12
                              kernel http://xxx.xxx.xxx.xxx/fog/service/ipxe/ubuntu12/casper/vmlinuz.efi
                              initrd http://xxx.xxx.xxx.xxx/fog/service/ipxe/ubuntu12/casper/initrd.lz
                              imgargs boot=casper netboot=nfs nfsroot=xxx.xxx.xxx.xxx:/images/ubuntu12.04/
                              shell
                              boot

                              :Ubuntu14
                              kernel ${boot_url}/ubuntu/casper/vmlinuz.efi
                              initrd ${boot_url}/ubuntu/casper/initrd.lz
                              imgargs boot=casper netboot=nfs nfsroot=xxx.xxx.xxx.xxx:/images/ubuntu14.04/
                              boot

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

                              autoboot[/CODE][/quote]

                              Rather than imgargs, place the ARGs you want on the kernel line.

                              TRY THIS:
                              [CODE]
                              set boot_url http://${fog-ip}/fog/service/ipxe/
                              set boot_nfs ${fog-ip}:/images/

                              :MENU
                              menu
                              item Ubuntu12 Ubuntu 12.04 x64 Live
                              item Ubuntu14 Ubuntu 14.04 x64 Live
                              item return return to previous menu
                              choose target && goto ${target}

                              :Ubuntu12
                              kernel http://xxx.xxx.xxx.xxx/fog/service/ipxe/ubuntu12/casper/vmlinuz.efi boot=casper netboot=nfs nfsroot=xxx.xxx.xxx.xxx:/images/ubuntu12.04/
                              initrd http://xxx.xxx.xxx.xxx/fog/service/ipxe/ubuntu12/casper/initrd.lz
                              shell
                              boot

                              :Ubuntu14
                              kernel ${boot_url}/ubuntu/casper/vmlinuz.efi boot=casper netboot=nfs nfsroot=xxx.xxx.xxx.xxx:/images/ubuntu14.04/
                              initrd ${boot_url}/ubuntu/casper/initrd.lz
                              boot

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

                              autoboot[/CODE]

                              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                              1 Reply Last reply Reply Quote 0
                              • M
                                madskillz23
                                last edited by

                                Awesome, that got me most of the way there. Now its just messing around with kernel arguments for the two Ubuntu distros. But, I did get Xubuntu 13.04 working with the following code in case anyone else finds it useful:

                                [CODE]:Xubuntu 13.04
                                kernel ${boot_url}/xubuntu/casper/vmlinuz root=/dev/nfs/ boot=casper netboot=nfs nfsroot=xxx.xxx.xxx.xxx:/images/xubuntu/
                                initrd http://xxx.xxx.xxx.xxx/fog/service/ipxe/xubuntu/casper/initrd.lz
                                boot
                                [/CODE]

                                Thanks for all the help!

                                1 Reply Last reply Reply Quote 0
                                • D
                                  domii666
                                  last edited by

                                  [quote=“domii666, post: 28421, member: 24204”]iso is stored @ /var/www/fog/ISO fog search with initrd [url]http://${fog-ip}/${fog-webroot}/ISO/Windows8x64.iso[/url]
                                  [Wed May 28 17:50:17 2014] [error] [client 192.168.2.22] File does not exist: /var/www/fog/ISO/Windows8x64.iso[/quote]

                                  thx for help

                                  1 Reply Last reply Reply Quote 0
                                  • E
                                    Eli Kelly
                                    last edited by

                                    It was a little ugly but advanced menu codes started working for me after removing

                                    [CODE]print “console --picture http://${boot-url}/service/ipxe/bg.png --left 100 --right 80\n”;[/CODE]

                                    from advanced.php

                                    I put the line back in replacing “${boot-url}” with [[I]my.servers.ip.address[/I]]/fog and all was well and looking good.

                                    1 Reply Last reply Reply Quote 0
                                    • JunkhackerJ
                                      Junkhacker Developer
                                      last edited by

                                      [quote=“Eli Kelly, post: 30029, member: 1152”]It was a little ugly but advanced menu codes started working for me after removing

                                      [CODE]print “console --picture http://${boot-url}/service/ipxe/bg.png --left 100 --right 80\n”;[/CODE]

                                      from advanced.php

                                      I put the line back in replacing “${boot-url}” with [[I]my.servers.ip.address[/I]]/fog and all was well and looking good.[/quote]

                                      what version are you using?
                                      what you’re describing a known bug in 1.0.x that was fixed in the 1.1.0 update

                                      signature:
                                      Junkhacker
                                      We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                                      1 Reply Last reply Reply Quote 0
                                      • E
                                        Eli Kelly
                                        last edited by

                                        [quote=“Junkhacker, post: 30030, member: 21583”]what version are you using?
                                        what you’re describing a known bug in 1.0.x that was fixed in the 1.1.0 update[/quote]

                                        I managed to post this in the wrong thread. It has better context in and was intended for [url]http://fogproject.org/forum/threads/ipxe-advanced-menu-or-memdisk-problem.10544/page-2[/url]

                                        To answer your question:

                                        I did the initial install from 1.0.1 subversion 1783. After reading a post from Tom last Thursday I updated to svn 1799. When that still didn’t fix my issue I patched to svn 1801. Fog version did in fact change to 1.1.0 with eiter svn 1799 or 1801. Apparently the advanced.php file was not being updated in that process. Perhaps I missed a step but all seems well now.

                                        1 Reply Last reply Reply Quote 0
                                        • L
                                          Levi Smith
                                          last edited by

                                          Anybody have any idea how to add a login option to the advanced menu? Or is this not currently possible? I really need a password on some of my options, and this was really easy to add with syslinux. I can’t seem to figure it out with iPXE.

                                          Thanks!

                                          1 Reply Last reply Reply Quote 0
                                          • JunkhackerJ
                                            Junkhacker Developer
                                            last edited by

                                            if you set the menu to hidden, a password is required to access anything, i believe.

                                            signature:
                                            Junkhacker
                                            We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • First post
                                              Last post

                                            144

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project