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

    EFI_exit failed error when leaving FOG Menu on Dell Optiplex 7010 and Lenovo M83

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    33
    4.2k
    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.
    • H
      hancocza
      last edited by Sebastian Roth

      Hello,

      I recently upgraded from FOG 1.5.7 to 1.5.9. After upgrading, I tried to boot up a computer for imaging, using a uefi ipxe usb drive. It makes it to the FOG menu, but any option I choose from there ends with an efi_exit…failed! message.

      The server is running on Ubuntu 18.04, and when I installed it I used the -S option for https. Also, if I boot using an MBR ipxe usb drive, it works fine. Both the uefi and mbr drives TFTP to the respective ipxe files on the server (ipxe.efi and ipxe.pxe), and then go to the FOG menu ( I do this to ensure I’m using the latest ipxe versions that FOG uses instead of having to update my drives every time).

      Any help is appreciated!

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @hancocza
        last edited by

        @hancocza said in EFI_exit failed error when leaving FOG Menu:

        using a uefi ipxe usb drive.

        How did you make this usb drive? Did you just include the renamed ipxe.efi file onto the usb drive? If so then you should get the traditional FOG iPXE menu. If you built the FOS Live image then the menu manager is GRUB.

        when I installed it I used the -S option for https.

        If this is the case and you used the ipxe.efi route then you need to recopy the ipxe.efi image from your current FOG server install to the usb flash drive since the -S rebuilds ipxe.efi with the https certificate. The current flash drive image probably doesn’t have that causing any menu item selection to fail except to exit to the hard drive.

        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!

        H 1 Reply Last reply Reply Quote 0
        • H
          hancocza @george1421
          last edited by

          @george1421 I created the uefi usb drive using the steps for the harder way in: https://wiki.fogproject.org/wiki/index.php?title=USB_Bootable_Media#USB_Boot_UEFI_client_into_FOG_menu_.28harder_way.29

          This way has it so that it always uses the ipxe.efi file that is created in the installation process to actually boot the fog menu, from what I gather. So I assume it’s using the recompiled ipxe binaries that are made with the certificate that is created at installation.

          I can try redoing this method and see if it changes things, but I’m not sure if it will since it’s leveraging that ipxe file.

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @hancocza
            last edited by george1421

            @hancocza So are you booting uefi clients only?

            I wrote a different one for uefi only clients that is much easier to pull off: https://forums.fogproject.org/topic/6350/usb-boot-uefi-client-into-fog-menu-easy-way

            In this case since you used the -S install time switch you need to grab the ipxe.efi from the FOG server because that has the compiled certificate in it. All you need is that file and a properly formatted usb stick and the file renamed and saved in the right location.

            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!

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Sebastian Roth

              @hancocza The method you use (USB iPXE -> TFTP pull iPXE from server -> HTTPS pull FOG menu) should not break due to a new HTTPS certificate on your FOG server unless something went wrong with the compile process.

              It makes it to the FOG menu, but any option I choose from there ends with an efi_exit…failed! message.

              Can you please be more specific? Take a picture of the error and post here. Which options did you test? Always getting the exact same error message? What if you schedule a task for one of the hosts and boot that up? Same error?

              I really think we need a picture of the error as I don’t think I have ever seen that one before.

              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

              H 2 Replies Last reply Reply Quote 0
              • H
                hancocza @Sebastian Roth
                last edited by

                @sebastian-roth Here is an output of the process when scheduling a hardware inventory update task. alt text

                The exit_boot() and efi_main() both show up when choosing the Full Inventory option when a host isn’t registered, when trying to deploy an image from the menu, and when I schedule either of those tasks. It seems to boot fine to the hard drive, update product key, etc from the menu.

                This only occurs with the uefi boot process. Legacy works fine, but it won’t be an option for our newer computers that are UEFI only.

                1 Reply Last reply Reply Quote 0
                • H
                  hancocza @Sebastian Roth
                  last edited by

                  @sebastian-roth A bit more interesting information…

                  I’ve tried it on a few different models that we have here. I get this error on every Dell Optiplex 7010 and Lenovo M83 that I try. I also tried a Dell Latitude E6320 and a Dell Optiplex 5040. Both of those were able to get past that part and image.

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @hancocza Secure boot and security chip disabled in the BIOS?

                    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

                    H 1 Reply Last reply Reply Quote 0
                    • H
                      hancocza @Sebastian Roth
                      last edited by

                      @sebastian-roth secure boot is disabled, only thing security-wise that is enabled is the TPM, but that was enabled previously as well and was able to boot then.

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by

                        @hancocza Did you use the standard kernel shipped with FOG 1.5.7 or did you use a newer one? We need to figure out which part is causing this: iPXE or the Linux kernel.

                        Going back to an realier iPXE version is not as easy because the compile script used to build the iPXE binaries capeable to boot from a HTTPS enabled server are build from the latest iPXE code “at that time”. It does a git pull/clone form the official iPXE repo and compiles the binaries.

                        Please see if you still have the old stuff around:

                        ls -al / | grep tftp
                        ls -al /home/fogproject
                        ls -al /home/fog
                        

                        Post output of these commands here.

                        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

                        H 1 Reply Last reply Reply Quote 0
                        • H
                          hancocza @Sebastian Roth
                          last edited by Sebastian Roth

                          @sebastian-roth I never change kernels, so I’m assuming that it was the standard one packaged in to 1.5.7, and then if updated it was the latest one from 1.5.9.

                          Output from ls -al / | grep tftp

                          drwxr-xr-x   5 fogproject root       4096 Jun 22 10:09 tftpboot
                          drwxr-xr-x   5 root       root       4096 Nov 20 12:12 tftpboot.prev
                          

                          Output from ls -al /home/fogproject

                          total 44
                          drwxr-xr-x 3 fogproject fogproject 4096 Feb 26  2020 .
                          drwxr-xr-x 9 root       root       4096 Nov 20 12:12 ..
                          -rw-r--r-- 1 fogproject fogproject  220 Apr  4  2018 .bash_logout
                          -rw-r--r-- 1 fogproject fogproject 4144 Feb 26  2020 .bashrc
                          drwxr-xr-x 3 fogproject fogproject 4096 Feb 26  2020 .config
                          -rw-r--r-- 1 fogproject fogproject 8980 Apr 16  2018 examples.desktop
                          -rw-r--r-- 1 fogproject fogproject  807 Apr  4  2018 .profile
                          -rwxr-xr-x 1 fogproject fogproject  681 Nov 20 12:11 warnfogaccount.sh
                          

                          There was no output from the last command.

                          My current kernel versions:

                          bzImage Version: 4.19.145
                          bzImage32 Version: 4.19.145
                          
                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by Sebastian Roth

                            @hancocza Ok, we still have backups of the iPXE binaries. Please make sure you don’t re-run the FOG installer (for whatever reason) before moving the single backup copy we have out of the way:

                            mv /tftpboot.prev /home/fog_tftpboot_1.5.7
                            

                            That’s just to make sure we won’t loose those when re-running the FOG installer at some point.

                            The other directory listing is not of much help as I made a mistake when typing this from the top of my head. Please run ls -al /home | grep fog_web and post results here.

                            I suppose you will see a directory named /home/fog_web_1.5.9.BACKUP. In that case you might run file /home/fog_web_1.5.9.BACKUP/service/ipxe/bzImage to find out the kernel used earlier.

                            Now let’s start with testing if it’s the kernel or iPXE causing the error.

                            cp /home/fog_web_1.5.9.BACKUP/service/ipxe/bzImage /var/www/html/fog/service/ipxe/bzImage_1.5.7
                            cp /home/fog_web_1.5.9.BACKUP/service/ipxe/bzImage32 /var/www/html/fog/service/ipxe/bzImage32_1.5.7
                            chown www-data:www-data /var/www/html/fog/service/ipxe/bzImage*1.5.7
                            

                            Now chose one of your Dell Optiplex 7010 or Lenovo M83 devices you have seen the error on before and edit its host settings in the FOG web UI. Set Host Kernel to bzImage_1.5.7 (suppose this is a 64 bit CPU or bzImage32_1.5.7 if it’s 32 bit) and then boot it up to do whatever you have done before that ended up with that error.

                            Just found a few interesting posts on this on the web:
                            https://support.lenovo.com/us/en/solutions/ht510865-system-fails-to-boot-into-rhel81-with-error-message-exit_boot-failed-efi_main-failed-lenovo-thinksystem
                            https://bugzilla.redhat.com/show_bug.cgi?id=1824005 (anyone with access to the redhat bugzilla portal?)
                            https://github.com/clearlinux/distribution/issues/1885 (though this one is about kernel 5.6 and a kernel setting which we do not use - not sure if this is related or not?!?!)

                            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

                            H 2 Replies Last reply Reply Quote 0
                            • H
                              hancocza @Sebastian Roth
                              last edited by

                              @sebastian-roth May be an issue with the tftpboot.prev folder… When I first updated to 1.5.9, I thought that the issues I was seeing were from some file not installing correctly… so I ran the installer again after I ran into the issue. So I might not have the actual previous tftpboot folder.

                              Heres the output from ls -al /home | grep fog_web:

                              drwxr-xr-x 10 root root 4096 Feb 26 2020 fog_web_1.5.8.BACKUP
                              drwxr-xr-x 10 root root 4096 Nov 20 12:12 fog_web_1.5.9.BACKUP
                              drwxr-xr-x 11 root root 4096 Jun 22 10:22 fog_web_1.5.9-RC2.9.BACKUP

                              I’ll have to test the older bzimage kernel next Wednesday, I’m on vacation until then. I will get back to you with the results that morning.

                              1 Reply Last reply Reply Quote 0
                              • H
                                hancocza @Sebastian Roth
                                last edited by

                                @sebastian-roth I was able to test out the kernel this morning. I swapped in the ones from the 1.5.9.BACKUP folder as well as the 1.5.8.BACKUP folder, both of them had the same error. Thinking this might then be an iPXE error?

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Sebastian Roth Moderator
                                  last edited by Sebastian Roth

                                  @hancocza said in EFI_exit failed error when leaving FOG Menu:

                                  I swapped in the ones from the 1.5.9.BACKUP folder as well as the 1.5.8.BACKUP folder, both of them had the same error. Thinking this might then be an iPXE error?

                                  Sure seems to be in the iPXE side. So we will need to step back to an earlier version. As a first reference we have the date of the backup directories. Looks like you upgraded from 1.5.8 to 1.5.9-RC2 on 26th of Feb 2020. We will try using iPXE from around that time.

                                  When you have the FOG installer in /root/fogproject the following commands should work for you. Just change according to your situation:

                                  cd /root/ipxe-efi/ipxe/
                                  git clean -fd
                                  git reset --hard
                                  git checkout e3ca2110712f6472465c70f2e83b745ff8a25fcc
                                  cd src/
                                  cp ../../fogproject/src/ipxe/src-efi/ipxescript .
                                  cp ../../fogproject/src/ipxe/src-efi/ipxescript10sec .
                                  cp ../../fogproject/src/ipxe/src-efi/config/general.h config/
                                  cp ../../fogproject/src/ipxe/src-efi/config/settings.h config/
                                  cp ../../fogproject/src/ipxe/src-efi/config/console.h config/
                                  make EMBED=ipxescript bin-x86_64-efi/ipxe.efi CERT=/opt/fog/snapins/ssl/CA/.fogCA.pem TRUST=/opt/fog/snapins/ssl/CA/.fogCA.pem
                                  

                                  You should end up with a 64bit UEFI binary in /root/ipxe-efi/ipxe/src/bin-x86_64-efi/ipxe.efi to use. Copy that over to /tftpboot (rename the current one) and give it a try.

                                  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

                                  H 1 Reply Last reply Reply Quote 0
                                  • H
                                    hancocza @Sebastian Roth
                                    last edited by

                                    @sebastian-roth That seems to have worked. Was able to boot to to a task on an Optiplex 7010. Will test on a few others tomorrow to be sure.

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by

                                      @hancocza That sounds like we hit an error that was introduced in iPXE some time within the last year. Would you be keen to find out which change exacly it was to hopefully report to the iPXE devs and get it fixed?

                                      That would mean you’d compile a fair amount of binaries and test all of them. Would you be willing? Half a day of work should be enough I suppose.

                                      It’s not too complicated and you will learn using an awesome feature of git called “bisect”…

                                      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

                                      H 1 Reply Last reply Reply Quote 0
                                      • H
                                        hancocza @Sebastian Roth
                                        last edited by

                                        @sebastian-roth Yeah I can do that. Give me till next week, gotta get a few imaged while it’s up and running.

                                        1 Reply Last reply Reply Quote 1
                                        • S
                                          Sebastian Roth Moderator
                                          last edited by

                                          @hancocza Just wondering if you are still keen to dig into this?

                                          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

                                          H 1 Reply Last reply Reply Quote 0
                                          • H
                                            hancocza @Sebastian Roth
                                            last edited by

                                            @sebastian-roth Can do. Feel free to post the instructions and I’ll get working.

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

                                            158

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project