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

local GRUB booting fails from FOG-Menu (PXE-UEFI)

Scheduled Pinned Locked Moved Solved
Linux Problems
4
8
1.9k
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.
  • M
    medchemii
    last edited by medchemii Mar 24, 2023, 3:36 AM Mar 24, 2023, 9:06 AM

    Hi,
    I’m trying to setup FOG for a 30 PC computer pool. I installed Ubuntu 22.04 and captured and deployed it successfully. Everything is working except for the automatic boot of the deployed System from the PXE-FOG-Menu (3 seconds timeout). It starts refind and GRUB comes up (like when directly starting from UEFI-BIOS). But then it panics with “Initramfs unpacking failed: Invalid magic at start of compressed archive” (see pictures). I can start the system directly (by changing Boot-order) but this is not what I want (because this would mean pressing F12 on each PC when deploying an image ;-( ).
    It is a recent UEFI-system (Dell Optiplex 5090). UEFI-Boot ist the only option (no CSM-Boot available anymore).
    It seems that it can’t find any harddisk at all, when coming from PXE (is the NVME not initialized from BIOS?)

    Any hint ?

    Grub-failure-1.jpg

    Grub-failure-3s.jpg

    1 Reply Last reply Reply Quote 0
    • T
      thomGee
      last edited by thomGee Mar 25, 2023, 1:59 PM Mar 25, 2023, 7:39 PM

      @medchemii Just to make feel better - You are not alone !
      I‘ve got the same problem. I do start an computerpool of 30 PC‘s for dualboot per refind in fog with pxe
      This worked like a charm until maybe 3 weeks ago, after an update.

      Exactly as you say: Booting via UEFI-Menu direkt from disk is no problem. From refind (I even tried several versions) via PXE - no way.
      I am sure it comes from the update, as i restored an old image and everything is fine. After the update - my adrenaline rises… !

      Also, the recommended solution for this Error (w/o PXE-boot) to rebuild the initramfs and update-grub has no result in our case

      I think it must have to do something with GRUB.
      Therfore I‘ve been looking to boot in refind directly from disk without grub. But no luck yet. Maybe I‘ve just not found the right way to set the
      Menuentry and how to get an appropriate efi without grub
      But if someone has an idea, I‘d be thankfull too!!!

      Meanwhile I explore and tell whatever is usefull…

      G M 2 Replies Last reply Mar 25, 2023, 10:09 PM Reply Quote 0
      • G
        george1421 Moderator @thomGee
        last edited by Mar 25, 2023, 10:09 PM

        @thomGee Instead of rEFUnd lets try mode EXIT.

        Prior to version 1.5.10 there was a bug in exit. I hope it was fixed in 1.5.10 (I don’t remember the change log at the moment).

        I am a bit confused because FOG 1.5.10 and 1.5.9 are basically the same in this area with maybe the exception that refind was updated to the latest release.

        If there is still is still a bug in EXIT, I’ll look up the patch and we will recompile ipxe with the patch.

        In regards to FOG and UEFI. FOG and iPXE chain calls refind to manage booting to the hard drive. We (you) might need to make some adjustments to the refind.conf file on the fog server to correct this behavior, I don’t know what might need to be changed at the moment.

        One last bit, don’t use FOG’s grub exit modes, those are only for bios based computers and will fall flat if you try to use them with uefi.

        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!

        M T 3 Replies Last reply Mar 27, 2023, 12:59 PM Reply Quote 0
        • M
          medchemii @george1421
          last edited by Mar 27, 2023, 12:59 PM

          @george1421
          Thanks for your answer. I tried EXIT (I’m running version 1.5.10 of FOG) and got into a “Boot-Fail-Menu”: F1 - Retry Boot; F2 Enter Setup; F3 … or the System Check right after deploying the image.

          But … on the second Boot it worked and from thereon without problems !
          Thank you very much - that helped a lot ! Step by step I’m getting closer to my new computerpool management system 🙂

          1 Reply Last reply Reply Quote 1
          • M
            medchemii @thomGee
            last edited by Mar 27, 2023, 1:05 PM

            @thomGee I was thinking about exchanging refind too - but as I’m new to this whole overcomplex UEFI-rubbish (I was running my computerpool with legacy-PXE for 15 years without any problems but now manufacturer dropped this completely in favor of UEFI) I didn’t dare to open a new construction site on this place.

            1 Reply Last reply Reply Quote 0
            • T
              thomGee @george1421
              last edited by Mar 28, 2023, 11:25 PM

              @george1421 i‘ll try this tomorrow, but I hope, that I still may use the configs in refind, as i used the option to boot different OS on different hours after reboot (ex. win on daytime linux at night, or for course 1 (Linux) 08:00-12:00 and course 2 (Windows) 12:15 to 16:00)

              And this managed centralised on the fog-server

              1 Reply Last reply Reply Quote 0
              • [[undefined-on, S Sebastian Roth, Mar 29, 2023, 10:03 PM]]
              • T
                thomGee @george1421
                last edited by Mar 31, 2023, 8:33 PM

                Unfortunately, it is not working!
                I am not sure where to look at for further errors.
                Any ideas! But for now - happy easter!

                @george1421 said in local GRUB booting fails from FOG-Menu (PXE-UEFI):

                @thomGee Instead of rEFUnd lets try mode EXIT.
                Prior to version 1.5.10 there was a bug in exit. I hope it was fixed in 1.5.10 (I don’t remember the change log at the moment).
                I am a bit confused because FOG 1.5.10 and 1.5.9 are basically the same in this area with maybe the exception that refind was updated to the latest release.
                If there is still is still a bug in EXIT, I’ll look up the patch and we will recompile ipxe with the patch.
                In regards to FOG and UEFI. FOG and iPXE chain calls refind to manage booting to the hard drive. We (you) might need to make some adjustments to the refind.conf file on the fog server to correct this behavior, I don’t know what might need to be changed at the moment.
                One last bit, don’t use FOG’s grub exit modes, those are only for bios based computers and will fall flat if you try to use them with uefi.

                1 Reply Last reply Reply Quote 0
                • T thomGee referenced this topic on Jun 7, 2023, 7:35 PM
                • F
                  fhwedel-hoe
                  last edited by Nov 1, 2023, 11:16 PM

                  Hi all

                  @thomGee said:

                  But if someone has an idea, I‘d be thankfull too!

                  We encountered exactly the same issue at my place of work. A colleague of mine found out that local boot works with GRUB Version 2.06-13 as supplied by Debian “bookworm”. We were able to insert those packages into our Ubuntu. So far, it works without issues. 🙂

                  Hope this helps
                  Hermann

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

                  149

                  Online

                  12.1k

                  Users

                  17.3k

                  Topics

                  155.3k

                  Posts
                  Copyright © 2012-2024 FOG Project