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

    IPXE ISO boot problems

    FOG Problems
    4
    10
    7716
    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.
    • C
      csurepair
      last edited by

      Hello all first time poster here,

      Ive been trying to boot Hirens live CD(or any iso for that matter) from the advanced ipxe menu(i.e. fog admin area). When booting a client the menu & iPXE shell appear correctly but when I select Hirens boot CD it brings me immediately back to the the main pxe menu. This is the code that I am using,

      menu
      item --gap – ---------------- iPXE boot menu ----------------
      item BOOTCD Hirens BOOTCD
      item shell ipxe shell
      choose target && goto ${target}

      :BOOTCD
      initrd ${192.168.1.130}/var/www/fog/service/ipxe/iso/Hirens152.iso
      chain memdisk iso raw ||
      echo failed to boot
      prompt
      goto MENU

      :shell
      shell ||
      goto MENU

      autoboot[/CODE]

      Any insight would be greatly appreciated thanks!

      Server specs:

      FOG version 1.1.1
      Ubuntu 14.04 LTS

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User
        last edited by

        Hi Guys!!

        I was having this problem too, so i would like to explain about the memory needs for HIrens to open by iPXE.
        My configuration was correctly, but my VirtualMachine does not load the Hiren’s boot image because of my Memory (512mb)

        It’s important to check the computers memory before trying upload an ISO image.

        1 Reply Last reply Reply Quote 0
        • C
          csurepair
          last edited by

          Wahoo!!

          Shes up and running! Thank you both for the feedback, you guys deserve a beer! If your ever in Fort Collins, Colorado PM me haha.

          So for everyone else my problem was totally due to syntax and directory location,

          By changing CODE initrd ${fog-ip}/fog/iso/Hirens152.iso[/CODE] to CODE initrd http://${fog-ip}/fog/service/ipxe/iso/Hirens152.iso[/CODE] iPXE was able to fully resolve the path. This was only accomplished by making iPXE produce some sort of feedback via the below code(most graciously posted by Junkhacker),

          menu
          item --gap – ---------------- iPXE boot menu ----------------
          item BOOTCD Hirens BOOTCD
          item shell ipxe shell
          choose target && goto ${target}

          :BOOTCD
          initrd 192.168.1.130/fog/iso/Hirens152.iso ||
          echo failed to load iso if it stops here
          prompt
          chain memdisk iso raw ||
          echo failed to chain memdisk if it stops here
          prompt
          boot ||
          echo failed to boot here if it stops here
          prompt
          goto MENU

          :shell
          shell ||
          goto MENU

          autoboot[/CODE]

          Thanks again guys!!

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

            try this

            menu
            item --gap – ---------------- iPXE boot menu ----------------
            item BOOTCD Hirens BOOTCD
            item shell ipxe shell
            choose target && goto ${target}

            :BOOTCD
            initrd 192.168.1.130/fog/iso/Hirens152.iso ||
            echo failed to load iso if it stops here
            prompt
            chain memdisk iso raw ||
            echo failed to chain memdisk if it stops here
            prompt
            boot ||
            echo failed to boot here if it stops here
            prompt
            goto MENU

            :shell
            shell ||
            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
            • Tom ElliottT
              Tom Elliott
              last edited by

              [quote=“csurepair, post: 31243, member: 24772”]I actually noticed that mistake right after I posted the code. This is what I have now,
              CODE:MENU
              menu
              item --gap – ---------------- iPXE boot menu ----------------
              item BOOTCD Hirens BOOTCD
              item shell ipxe shell
              choose target && goto ${target}

              :BOOTCD
              initrd 192.168.1.130/fog/iso/Hirens152.iso
              chain memdisk iso raw ||
              echo failed to boot
              prompt
              goto MENU

              :shell
              shell ||
              goto MENU

              autoboot[/CODE]

              And the link resolves fine via a browser,

              [IMG]https://collinscustoms.info/public.php?service=files&t=179ccb1dc8da0d41cb951c602e37ea4e[/IMG]

              But it continues to immediately return to the previous main menu. It seems strange to me that it returns to the main menu so fast without throwing any sort of error or timeout message.[/quote]

              Is the ISO located in /var/www/fog/iso/Hirens152.iso or /var/www/fog/service/ipxe/iso/Hirens152.iso

              menu
              item --gap – ---------------- iPXE boot menu ----------------
              item BOOTCD Hirens BOOTCD
              item shell ipxe shell
              choose target && goto ${target}

              :BOOTCD
              initrd http://${fog-ip}/fog/service/ipxe/iso/Hirens152.iso
              chain memdisk iso raw ||
              echo failed to boot
              prompt
              goto MENU

              :shell
              shell ||
              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
              • C
                csurepair
                last edited by

                I actually noticed that mistake right after I posted the code. This is what I have now,
                [CODE]:MENU
                menu
                item --gap – ---------------- iPXE boot menu ----------------
                item BOOTCD Hirens BOOTCD
                item shell ipxe shell
                choose target && goto ${target}

                :BOOTCD
                initrd 192.168.1.130/fog/iso/Hirens152.iso
                chain memdisk iso raw ||
                echo failed to boot
                prompt
                goto MENU

                :shell
                shell ||
                goto MENU

                autoboot[/CODE]

                And the link resolves fine via a browser,

                [IMG]https://collinscustoms.info/public.php?service=files&t=179ccb1dc8da0d41cb951c602e37ea4e[/IMG]

                But it continues to immediately return to the previous main menu. It seems strange to me that it returns to the main menu so fast without throwing any sort of error or timeout message.

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

                  tom spotted something on your menu
                  [FONT=Consolas]192.168.1.130/var/www/fog/service/ipxe/iso/Hirens152.iso[/FONT]
                  is pretty unlikely to be a valid path
                  [FONT=Consolas]/var/www/fog/service/ipxe/iso/Hirens152.iso[/FONT]
                  is the file path, the web directory path is probably
                  [FONT=Consolas]192.168.1.130/fog/service/ipxe/iso/Hirens152.iso[/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
                  • JunkhackerJ
                    Junkhacker Developer
                    last edited by

                    have you verified that you get a download prompt if you put that iso link in a browser?
                    everything after the IP is case sensitive

                    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
                    • C
                      csurepair
                      last edited by

                      Hi Junkhacker,

                      Thanks for the quick response! I just changed that around and unfortunately the boot menu is still acting the same way. I double checked all the permissions on the folder and everything seems fine. Does the .iso need to be mounted or is it correct to have the file just as a stand alone .iso inside that pxe “pointed” folder? Thanks again for taking the time.

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

                        the ${ } marks are for variables

                        menu
                        item --gap – ---------------- iPXE boot menu ----------------
                        item BOOTCD Hirens BOOTCD
                        item shell ipxe shell
                        choose target && goto ${target}

                        :BOOTCD
                        initrd 192.168.1.130/var/www/fog/service/ipxe/iso/Hirens152.iso
                        chain memdisk iso raw ||
                        echo failed to boot
                        prompt
                        goto MENU

                        :shell
                        shell ||
                        goto MENU

                        autoboot[/CODE]

                        or, if that is the IP of your fog server

                        menu
                        item --gap – ---------------- iPXE boot menu ----------------
                        item BOOTCD Hirens BOOTCD
                        item shell ipxe shell
                        choose target && goto ${target}

                        :BOOTCD
                        initrd ${fog-ip}/var/www/fog/service/ipxe/iso/Hirens152.iso
                        chain memdisk iso raw ||
                        echo failed to boot
                        prompt
                        goto MENU

                        :shell
                        shell ||
                        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
                        • 1 / 1
                        • First post
                          Last post

                        113

                        Online

                        10.6k

                        Users

                        16.5k

                        Topics

                        151.1k

                        Posts
                        Copyright © 2012-2023 FOG Project