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

    EFI Stub Errors on XCP-ng Virtual Machine Attempting 'Perform Full Host Registration and Inventory'

    Scheduled Pinned Locked Moved Unsolved FOG Problems
    14 Posts 4 Posters 510 Views
    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.
    • J
      JCS-RVK
      last edited by

      Hello!
      I’m trying to capture a Windows 11 base image from an XCP-ng VM. The VM will boot to the FOG menu, and I can select the desired option (Full host registration), but after loading bzImage and init.xz, the VM hangs on

      EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
      EFI stub: Measured initrd data into PCR 9
      

      I’ve tried a list of different kernel versions:

      • 5.15.93
      • 5.15.98
      • 6.1.22
      • 6.1.89
      • 6.6.49
      • 6.6.69
      • 6.12.25
      • 6.12.35
      • The experimental kernel listed here: https://github.com/FOGProject/fos/issues/108

      None have allowed the VM to get any further. What else should I be trying?

      Other devices are able to image successfully. We deploy laptops to staff and students, and all are imaging as expected.

      System info:
      FOG server is running AlmaLinux 9.5, in a VM that was migrated from ESXi to XCP-ng.
      FOG version is 1.5.10.15
      XCP-ng hosts are Dell PowerEdge R630. 2x Intel Xeon E5-2660v3, 128GB RAM
      Windows 11 VM has 2 CPUs, 4GB RAM, 64GB disk

      Thanks for your time!

      Screenshot 2026-03-17 092817.png

      Tom ElliottT 2 Replies Last reply Reply Quote 0
      • B
        BPSTravis Developer
        last edited by

        I have a windows 11 golden VM residing on an xcp-ng 8.3 host, I am able to boot into the fog menus and upload images(although sometimes the console window blanks out after 3-4 minutes so I use snapshots and brute force to get it to complete).

        Try adding this to your host kernel arguments: xen_emul_unplug=unmodified nomodeset vga=788

        Also use the intel nic option not realtek. I am not using a custom kernel for my VM, just the latest same as any other machine.

        UEFI bios mode on the VM(required for TPM).

        [SIZE=12px]signature:[/SIZE]
        [QUOTE]I think I know things, but I really don't. You shouldn't follow any advice I give. - BPSTravis[/QUOTE]

        J 1 Reply Last reply Reply Quote 0
        • J
          JCS-RVK @BPSTravis
          last edited by

          @BPSTravis
          Sorry for the slow response. Apparently I didn’t have email alerts set up yet, and I’m only at this job in the middle of the week, so just seeing your reply this morning.

          I manually added the host and tried the host kernel arguments you suggested. This did not make a difference. I also tried with just xen_emul_umplug=unmodified and this did not work either.

          I switched to the Intel NIC option, this did not make a difference.

          UEFI BIOS mode was set already.

          R 1 Reply Last reply Reply Quote 0
          • R
            rodluz Developer @JCS-RVK
            last edited by

            @JCS-RVK Hi I have a kernel that should work for XCP-ng. If you don’t mind giving it a try and let me know if it works for you please.
            You will need to download and set it up manually but here are the instructions.

            On your FOG server, run this command to download the test kernel
            wget https://github.com/rluzuriaga/fos/releases/download/EXPERIMENTAL_XCP_1/bzImage
            That will download it to whatever directory you are currently on.

            Rename the file and move it to the correct location like this:
            sudo mv bzImage /var/www/fog/service/ipxe/bzImage_XCP

            Then you need to change the permissions and ownership of that file:
            sudo chmod 644 /var/www/fog/service/ipxe/bzImage_XCP

            Red Had based server: sudo chown fogproject:apache /var/www/fog/service/ipxe/bzImage_XCP

            Debian based server: sudo chown fogproject:www-data /var/www/fog/service/ipxe/bzImage_XCP

            Then add bzImage_XCP to the Host Kernel line in the XCP-ng host on the FOG web.
            Also, remove all the host kernel arguments.

            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

            J 1 Reply Last reply Reply Quote 0
            • J
              JCS-RVK @rodluz
              last edited by

              @rodluz Thanks for the detailed instructions - that was quite helpful in getting your kernel installed and set up.

              Unfortunately it didn’t work for me. I got stuck at the same point. Screenshot attached. I also tried adding the host kernel arguments back with the experimental kernel and that didn’t change it either. Anything else I should try?

              Screenshot 2026-04-01 073148.png

              Tom ElliottT 1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott @JCS-RVK
                last edited by

                @JCS-RVK Would you be willing to disable your TPM on the XCP-ng device and see if that helps?

                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

                J 1 Reply Last reply Reply Quote 0
                • J
                  JCS-RVK @Tom Elliott
                  last edited by

                  @Tom-Elliott As I couldn’t find a way to disable the TPM without deleting it, I cloned the VM just in case removing the TPM screwed up my Windows install, and added the clone to FOG with the same settings as the original (rodluz’s experimental kernel, same image associated, no kernel arguments, etc).

                  The cloned VM still hangs at EFI stub: Measured initrd data into PCR 9.

                  Tom ElliottT 1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott @JCS-RVK
                    last edited by

                    @JCS-RVK said in EFI Stub Errors on XCP-ng Virtual Machine Attempting 'Perform Full Host Registration and Inventory':

                    EFI stub: Measured initrd data into PCR 9.

                    Do you have nomodeset as a kernel argument set somewhere?

                    Maybe on the Host kernel args or Global Kernel Args?

                    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
                    • Tom ElliottT
                      Tom Elliott @JCS-RVK
                      last edited by

                      @JCS-RVK https://www.reddit.com/r/Ubuntu/comments/1jc7bzj/install_hangs_after_efi_stub_measured_initrd_data/

                      I’m using this link, I know it’s a thirdparty link but wanted to show my thoughts here.

                      Based on what I’m seeing -> it would seem to me that the output is working just fine, but sending to a different Video output port than the expected one when the machine boots.

                      Since it’s waiting on input, the machine appears to be “Hung” but it’s not really, so maybe (without making any other changes) If you’re able connect a monitor (or maybe multiple monitors) to all the Video ports on the machine and see which one is directing video to.

                      yes, I know this can be clumsy becuase one video card might have multiple output ports.

                      I hate this issue because it never seems to have a solution, but maybe that’s because there (technically speaking) wasn’t anything wrong. The kernel has decided to send the output somewhere else.

                      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

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        JCS-RVK @Tom Elliott
                        last edited by

                        @Tom-Elliott Just checked, no kernel args set at either host or global levels.

                        As for your theory about video output going somewhere else, I’m struggling to think of a way to test it as this instance is a virtual machine with no physical display outputs. I did toggle off the VGA setting in the VM advanced settings in XCP, which didn’t make a difference. Once the VM reached the point where it hangs (or appears to), I switched that setting back on, and off, and back on, hoping for a change but nothing happened.

                        I’ve got the VM set in a capture task now that I’ve manually registered it, and the task never fires according to my FOG web GUI, which makes me think the VM is actually hanging instead of just redirecting display output somewhere else. I tried forcing the task to start, and nothing changed.

                        1 Reply Last reply Reply Quote 0
                        • Tom ElliottT
                          Tom Elliott @JCS-RVK
                          last edited by

                          @JCS-RVK Roger thank you.

                          I know @BPSTravis was able to test with XCP and this particular kernel, so if you’d be willing to maybe share the VM Configuration less any ‘secret’ data?

                          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

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            JCS-RVK @Tom Elliott
                            last edited by

                            @Tom-Elliott @BPSTravis Not much to hide, see attached screenshots as I couldn’t find a way to export the config as an XML. I removed the MAC address from the network screenshot, and note the disk shows disconnected because the VM was shutdown while taking screenshots. Disk resides on an NFS share alongside my other VMs.

                            The only difference between this VM and the clone I made was removing the VTPM on the clone.

                            Screenshot 2026-04-01 085512.png Screenshot 2026-04-01 085535.png Screenshot 2026-04-01 085552.png Screenshot 2026-04-01 085610.png Screenshot 2026-04-01 085641.png Screenshot 2026-04-01 085657.png

                            Tom ElliottT 1 Reply Last reply Reply Quote 0
                            • Tom ElliottT
                              Tom Elliott @JCS-RVK
                              last edited by

                              @JCS-RVK Based on the limited information I see:

                              VGA RAM on yours is 8MiB vs 16MiB (doubt this would be the issue):

                              56207332-4dd2-4b97-b8f2-1d7eb4b32000-image.png

                              Of other note is the “Secure boot -> Propogate Certificates” which seems to be missing on yours?

                              Also His VM has 8 cpu limits and memory is much higher (4/16 vs 4/4 on yours):
                              396443ee-6eda-4ba5-b7f5-55db572dcbf2-image.png

                              I’m not saying these are the definitive causes of the problem you’re seeing, rather just pointing out the differences I’m seeing at a glance.

                              Why one side works, vs the other, I don’t know (using this XCP-ng specific kernel of course)

                              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

                              J 1 Reply Last reply Reply Quote 0
                              • J
                                JCS-RVK @Tom Elliott
                                last edited by

                                @Tom-Elliott I must’ve propagated the pool certificates to the VM already. I looked at my cloned VM and that prompts to propagate certificates. On the clone I matched the settings you called out (Video RAM, CPU, and RAM) and nothing changed.

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

                                144

                                Online

                                12.6k

                                Users

                                17.5k

                                Topics

                                156.4k

                                Posts
                                Copyright © 2012-2026 FOG Project