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

"Chainloading Failed" on iPXE-Boot

Scheduled Pinned Locked Moved Solved
Bug Reports
3
17
7.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.
  • T
    tian
    last edited by Jun 30, 2016, 12:33 PM

    We’re currently experimenting on cloning Apple/iMacs with fog.

    The PXE boot seems to be fine already and iPXE is loaded (Also the entry in the mac’s boot menu is there - twice which seems not to be a problem).
    But at the end of the iPXE Process it won’t continue and stops with “Chainloading failed, hit ‘s’ for the iPXE shell; reboot in 10 seconds”:

    0_1467288898098_2016-06-30 - Fog Mac Chainload.jpg

    We first tested with fog version 8301 and updated today to 8329 but the problem remains.

    Here are some of the iMac’s data that might be important:

    • iMac14,2 (late 2013), Intel Core i5 3,2 GHz, Boot-ROM-Version: IM142.0118.B13
    • NIC: Broadcom 57766-A1, Firmware 57766a-v1.15

    If there are any more information (from logs, hardware, iPXE shell…) needed I can get them.

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Jun 30, 2016, 12:34 PM

      Please update to lastest.

      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
      • T
        tian
        last edited by Jun 30, 2016, 12:54 PM

        With version 8341 it is still the same.

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Jun 30, 2016, 12:55 PM

          When you see the error, is there anything in the apache error logs on the server?

          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
          • S
            Sebastian Roth Moderator
            last edited by Jun 30, 2016, 12:58 PM

            @tian Please open that URL (http://x.x.x.x/fog/service/ipxe/boot.php) in your browser and copy/paste the full content here in the forum (change IPs if you like but please post the full content).

            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

            T 1 Reply Last reply Jun 30, 2016, 1:46 PM Reply Quote 0
            • T
              tian @Sebastian Roth
              last edited by Jun 30, 2016, 1:46 PM

              @tom-elliott

              I found something in other_vhosts_access.log:

              %fog_ip%:80 %imac_ip% - - [30/Jun/2016:15:29:21 +0200] "POST /fog/service/ipxe/boot.php HTTP/1.1" 200 432 "-" "iPXE/1.0.0+ (7156)"
              

              The error.log and access.log didn’t contain anything from the time pxe-booting the iMac.

              @Sebastian-Roth said in "Chainloading Failed" on iPXE-Boot:

              @tian Please open that URL (http://x.x.x.x/fog/service/ipxe/boot.php) in your browser and copy/paste the full content here in the forum (change IPs if you like but please post the full content).

              #!ipxe
              set fog-ip %fog_ip%
              set fog-webroot fog
              set boot-url http://${fog-ip}/${fog-webroot}
              cpuid --ext 29 && set arch x86_64 || set arch i386
              iseq ${platform} efi && set key 0x1b || set key 0x1b
              iseq ${platform} efi && set keyName ESC || set keyName Escape
              prompt --key ${key} --timeout 3000 Booting... (Press ${keyName} to access the menu) && goto menuAccess || sanboot --no-describe --drive 0x80
              :menuAccess
              login
              params
              param mac0 ${net0/mac}
              param arch ${arch}
              param platform ${platform}
              param username ${username}
              param password ${password}
              param menuaccess 1
              param debug 1
              isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
              isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
              :bootme
              chain -ar http://%fog_ip%/fog/service/ipxe/boot.php##params```
              1 Reply Last reply Reply Quote 0
              • T
                Tom Elliott
                last edited by Jun 30, 2016, 2:08 PM

                What bootfile are you using? I’m not sure that Mac can work using hidden menu.

                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

                T 1 Reply Last reply Jun 30, 2016, 2:42 PM Reply Quote 0
                • T
                  Tom Elliott
                  last edited by Jun 30, 2016, 2:14 PM

                  Also, you might try updating again? I doubt it will help, but it should ensure your hosts get seen properly.

                  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
                  • T
                    tian @Tom Elliott
                    last edited by Jun 30, 2016, 2:42 PM

                    We’re using the “fancy version” (https://wiki.fogproject.org/wiki/index.php?title=FOG_on_a_MAC#fancy) with ipxe.efi to get pxe-boot working with the iMac. - The DHCP server is not the fog-server itself but also a Linux based server.

                    (Version 8343 still has this problem.)

                    1 Reply Last reply Reply Quote 0
                    • T
                      Tom Elliott
                      last edited by Jun 30, 2016, 2:47 PM

                      Can you edit the boot file to come out of the i386-efi/ipxe.efi rather than just ipxe.efi? I, again, doubt it will work, but just trying to see what’s going on in the first place. Can you also disable (for now) the hidden menu just to ensure it’s not something lacking that hidden menu is requesting?

                      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
                      • T
                        tian
                        last edited by Jul 1, 2016, 10:20 AM

                        I deactivated the entries for “Hidden Menu” and “No Menu” and the menu appeared. But I activated both entries again because the “Chainloading failed” message does not appear, when a task is planned for this client. I tried the hardware inventory and capturing task - both tasks still seem to have some other problems on the iMac, but at least they are beginning to run/start. Sorry for the inconvenience and for not testing this simple thing first…

                        Since it is just a appearing, when booting from network without a planned task it should be no problem for the iMacs since we would have to net boot them manually every time.

                        Thanks for your effort.

                        1 Reply Last reply Reply Quote 0
                        • S
                          Sebastian Roth Moderator
                          last edited by Jul 8, 2016, 11:06 AM

                          @tian said:

                          Since it is just a appearing, when booting from network without a planned task it should be no problem for the iMacs since we would have to net boot them manually every time.

                          Do I get this right? You are netbooting you iMacs by hand every time you want to image those? Hope you have read this (although I still do not prefer this method, others might like it)!

                          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

                          T 1 Reply Last reply Jul 8, 2016, 11:51 AM Reply Quote 0
                          • T
                            tian @Sebastian Roth
                            last edited by Jul 8, 2016, 11:51 AM

                            @Sebastian-Roth
                            By “manually” I meant pressing the “n”-key or “alt” key for direct network boot or the apple boot menu. The next-server and filename are already delivered by our DHCP server automatically.

                            But for now it would be fine like it is. If we decide to use Fog for deploying our iMacs too it would be no problem to start a deployment task and press the keys, since it is only one classroom. It is not that necessary to set the network boot as default.

                            If needed I also could do some additional testing (e.g. with the EFI Exit Types) when I have some time.

                            [For the other problems I already opened other threads.]

                            1 Reply Last reply Reply Quote 0
                            • T
                              Tom Elliott
                              last edited by Jul 11, 2016, 12:54 PM

                              Anybody have any ideas for this? @tian I know you’re trying, but this is so far specific to Apple Mac systems, correct?

                              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

                              T 1 Reply Last reply Jul 14, 2016, 10:20 AM Reply Quote 0
                              • T
                                tian @Tom Elliott
                                last edited by Jul 14, 2016, 10:20 AM

                                @Tom-Elliott So far it is appearing on the Mac-System we maybe want to use fog with in the future.
                                I tried some more (now Version 8581) with the exit types and “REFIND_EFI” is working - instead of the “Chainloading failed” message a blue Refind screen appears for less then a second and OSX booting continues without the 10 seconds delay.

                                Currently we also use the trunk version for testing normal PCs for quite some time - but these don’t have EFI. I’ll ask my co-worker if he still has the older iMac (2007 Model I think) I used for testing PXE by the bless command a long time ago (Fog 1.20?) - because I don’t remember a “Chainloading failed” message back then.

                                1 Reply Last reply Reply Quote 0
                                • T
                                  Tom Elliott
                                  last edited by Jul 14, 2016, 2:09 PM

                                  I’ve update the iPXE files and I believe I finally figured out the efi files getting the chainloading issue. Of course I won’t know if it is actually working until somebody tests and lets us know the status.

                                  I believe the errors were not a bug on iPXE (directly) but rather the configuration that needs things was not happening properly. Because the ipxe scripts as they’re sent to the user have some needs, but the efi files did not have those “needs” I think you would see the chainloading error simply because it couldn’t run that particular command. (What command that was I have no clue).

                                  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

                                  T 1 Reply Last reply Jul 19, 2016, 3:10 PM Reply Quote 1
                                  • T
                                    tian @Tom Elliott
                                    last edited by Jul 19, 2016, 3:10 PM

                                    @Tom-Elliott Today we tested with Version 1.3.0-RC-1 (SVN Revision: 5935) and the “Chainload failed” message still appears with exit type “EXIT”.

                                    But since the exit type “REFIND_EFI”works, we’re OK with that.

                                    1 Reply Last reply Reply Quote 0
                                    • 1 / 1
                                    • First post
                                      Last post

                                    332

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project