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

    could not boot: exec format error

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    23
    5.0k
    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.
    • R
      rude26
      last edited by rude26

      Hello all,

      hoping I can get some help here I’m new to fog trying to configure this imaging solution at my new workplace. i have it configured on debian 11 (Maybe my issue?) got DHCP configured on our windows DHCP server. I boot the PC i choose onboard NIC ipv4, I get the Fog menu, I choose to perform full host registration and inventory and i get the errors in the screen shot below.

      i did set up wire shark on another machine and all the correct info is coming through
      Next server is set up
      and bot file is set up - ipxe.efi

      im unable to boot to undionly.kpxe

      any help would be greatly appreciated.

      PXL_20220204_215724859.jpg

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

        @rude26 I have seen this before but I can’t remember the exact case.

        Lets get past the first part in that you have the right boot loader because if you try to load ipxe.efi on a bios computer it won’t load. So you have the right bits there.

        What I don’t understand is why it did not transfer init.xz before it tried to start bzImage.

        Did you create a custom ipxe menu or something?

        The error message is basically saying that bzImage is not an executable file. What do you get when (on the FOG server) you run this command file /var/www/html/fog/service/ipxe/bzImage

        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!

        R 1 Reply Last reply Reply Quote 1
        • R
          rude26 @george1421
          last edited by

          @george1421 said in could not boot: exec format error:

          file /var/www/html/fog/service/ipxe/bzImag

          Thank you for responding! i did not build a custom ipxe menu. and when i run the command you provided i get a “no such file or directory”

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

            @rude26 OK lets use the debian variant path file /var/www/fog/service/ipxe/bzImage

            If that gives us a no such file or directory, lets navigate to that path to see where the path fails.

            I’m almost getting the idea you don’t have a complete install, but lets see where the path fails us.

            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!

            R 1 Reply Last reply Reply Quote 0
            • R
              rude26 @george1421
              last edited by

              @george1421 ok! so i got the "no such file or directory
              i manually navigated to var/www/fog/service/ipxe/ there is no bzImage
              but a there is a few other files. i put up a snip

              d8a4a60e-c357-4e62-bda9-2d5eb296e140-image.png

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

                @rude26 OK I want you to reinstall fog. Make sure you do all 3 parts.

                1. installfog.sh
                2. Half way through you will be directed to the web gui.
                3. return back to the fog server console and complete the install.

                You did find the root of the problem, we just need to understand why.

                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!

                R 1 Reply Last reply Reply Quote 0
                • R
                  rude26 @george1421
                  last edited by

                  @george1421 ok! so im back at work this morning trying to correct this
                  attempted to reinstall never go the prompt to go to GUI like i did the 1st time around
                  i attempted to do a full uninstall and reinstall both of the times when attempting to install i noticed this error

                  cannot get this to download more then likely my issue?

                  4162c403-e37a-4f3d-8dfc-878a06b4ecc3-image.png

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

                    @rude26 Do you have to use a proxy server in your network?

                    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

                    R 1 Reply Last reply Reply Quote 0
                    • R
                      rude26 @Sebastian Roth
                      last edited by

                      @sebastian-roth no we are not using a proxy server.

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

                        @rude26 Does your fog server have direct access to the internet? I would think yes if you got this far. But this error is the root of why its not booting.

                        Can you test to ping fogproject.org ? Maybe something is up with name resolution.

                        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!

                        R 1 Reply Last reply Reply Quote 0
                        • R
                          rude26 @george1421
                          last edited by

                          @george1421 yes it does have direct access, yes I can ping fogproject.org
                          checked the firewall for any potential blocks. but i did not see anything

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

                            @rude26 Then try a manual download to find out what’s going on. On your FOG server run the following command and post output here:

                            curl -kOL https://github.com/FOGProject/fos/releases/latest/download/bzImage
                            

                            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

                            george1421G R 2 Replies Last reply Reply Quote 2
                            • george1421G
                              george1421 Moderator @Sebastian Roth
                              last edited by

                              @sebastian-roth said in could not boot: exec format error:

                              https://github.com/FOGProject/fos/releases/latest/download/bzImage

                              I just reversed engineering this answer…

                              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 1
                              • R
                                rude26 @Sebastian Roth
                                last edited by

                                @sebastian-roth ok ran that and this is what i got.
                                is my network denying to connection?

                                55bb2a99-999d-434f-a537-ea717822d5e7-image.png

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

                                  @rude26 For reference when I run the command from my fog server.

                                  2022-02-07 13_57_09.png

                                  Also when I paste the url into my browser I get a file download prompt. I just wanted to test to see if something was broken with the github site.

                                  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!

                                  R 1 Reply Last reply Reply Quote 0
                                  • R
                                    rude26 @george1421
                                    last edited by

                                    @george1421
                                    when i go to the url with my browser on my windows machine it did download bzimage
                                    when i do it from the fog server it does not download

                                    can i just drop this file in the correct place?

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

                                      @rude26 There are actually a series of files that gets downloaded here.

                                      Are you sure your company isn’t using a transparent proxy for internet filtering? HTTP inspect might cause https to fail. See if you can pull the file with http.

                                      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 1
                                      • S
                                        Sebastian Roth Moderator
                                        last edited by Sebastian Roth

                                        @rude26 said in could not boot: exec format error:

                                        can i just drop this file in the correct place?

                                        Yes for the binaries itself but no for the checksums. The script is made to always re-download the checksums to make sure it would pull a newer kernel/init file even if an older one sits there in the tmp folder. I know this is not great for the situation you are in right now.

                                        Are you ok with editing shell scripts? That way we could help you get around this. https://github.com/FOGProject/fogproject/blob/dev-branch/lib/common/functions.sh#L2422

                                        The other option I can suggest is downloading kernel/init binaries and checksums plus the fog-client binaries and host those on a local mirror for the moment. Just put in “github.com” to your /etc/hosts.

                                        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

                                        R 1 Reply Last reply Reply Quote 1
                                        • R
                                          rude26 @Sebastian Roth
                                          last edited by

                                          @sebastian-roth so after the last post and seeing it might be my network blocking me or a proxy set up, i decided to do it a nasty way lol please dont hate me. and also i came into a place with alot of missing staff so its been a whole discovery session for me.

                                          I tethered my cell to the machine( on a test machine in the office) for network
                                          was able to download all the files
                                          it assigned it different IP
                                          went through install
                                          and re ran install once hooked back in to the internal network changed IP and DHCP to what it should be
                                          i got success!!! i was able to check in my device with the fog server!!!
                                          you guys are awesome thanks for the help.

                                          now that its checked in and im trying to capture and image im getting this error looking through the forum to see if i can find the answer

                                          PXL_20220207_205500903.jpg

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

                                            @rude26 This is a YOU problem. What happened is that you used “shutdown” to power off the windows computer. This does not close all of the open windows files because fast startup is turned on.

                                            There are a few ways to shut it down in preparation for cloning.

                                            1. Let sysprep do it.
                                            2. Use the command prompt and use shutdown -s -t 0
                                            3. Turn off fast startup.

                                            For more information google windows dirty bit

                                            Well done on the internet bypass to get FOG installed.

                                            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!

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

                                            155

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project