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

    Capture UEFI image on hyper-v VM

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    8
    1.1k
    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.
    • B
      Baessens
      last edited by

      Hello

      I’ve been trying to capture an image (UEFI) Windows 11 on our Hyper-v server.

      I’ve made a Gen 2 VM on the hyper-v.

      I’ve created a task to capture the image.
      It keeps hanging on the screen below.

      b411f6aa-d758-4f31-8246-c1e637c46545-image.png

      I’ve tried both ipxe.efi and snponly.efi as boot file. Both have the same result.

      I’m on FOG 1.5.10.1593 .
      Secure boot is disabled.
      TPM is enabled.

      i’ve found this earlier post (https://forums.fogproject.org/topic/16993/client-hangs-at-efi-stub/2)
      But don’t know how to implement the solution…

      Thanks in advance.

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @Baessens
        last edited by

        @Baessens Unforutnately the EFI stub: Measured initrd data into PCR 9 seems to be hitting us a lot lately and I don’t know why or what’s causing it.

        I have heard mixed results of using older kernels, and sometimes newer ones fix it for the person. Not really sure what will be the right case here.

        From FOG UI you can downgrade the init based kernel by FOG Configuration -> Kernel Update.

        Please try some of them and let us know, if any, which works for you.

        6.1.89 was one (20240430_1) was one that seemed to work for somebody. Maybe there?

        The configs don’t change much between newer version, but we were seeing similar errors using the 6.1.22 version. This leads me to believe something was added to the kernel code, potentially removed, then re-added to it later. Just a suspicion I have.

        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

        B L 2 Replies Last reply Reply Quote 1
        • Tom ElliottT
          Tom Elliott @Baessens
          last edited by

          @Baessens Reinstall fog. It should download the latest kernels and inits of which what was referenced on that post is the EXP items. (So it’s now the default)

          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

          B 2 Replies Last reply Reply Quote 0
          • B
            Baessens @Tom Elliott
            last edited by

            @Tom-Elliott Thanks for your quick reply.

            Unfortunately it didn’t fix my problem.

            When trying to’ quick register’ the host (Win11 hyperV VM) I get the following.

            47626520-ac1e-41d7-9366-c99bcd5b5ac3-image.png

            Or when trying to capture image.
            7e0fbbfb-c198-4ed8-8091-35a27a52b7ce-image.png

            Tried both boot files again as well.

            I feel like it’s some small/silly thing that’s giving me these issues…

            Thanks

            1 Reply Last reply Reply Quote 0
            • B
              Baessens @Tom Elliott
              last edited by

              @Tom-Elliott I reinstalled Ubuntu as well as Fog. but no luck.
              Any help would be appreciated.

              Thanks

              Tom ElliottT 1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott @Baessens
                last edited by

                @Baessens Unforutnately the EFI stub: Measured initrd data into PCR 9 seems to be hitting us a lot lately and I don’t know why or what’s causing it.

                I have heard mixed results of using older kernels, and sometimes newer ones fix it for the person. Not really sure what will be the right case here.

                From FOG UI you can downgrade the init based kernel by FOG Configuration -> Kernel Update.

                Please try some of them and let us know, if any, which works for you.

                6.1.89 was one (20240430_1) was one that seemed to work for somebody. Maybe there?

                The configs don’t change much between newer version, but we were seeing similar errors using the 6.1.22 version. This leads me to believe something was added to the kernel code, potentially removed, then re-added to it later. Just a suspicion I have.

                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

                B L 2 Replies Last reply Reply Quote 1
                • B
                  Baessens @Tom Elliott
                  last edited by Baessens

                  @Tom-Elliott Thanks for your reply.

                  I tried “Kernel 6.1.89 AMD/Intel 64 Bit (devel)” and it worked!

                  edit: FYI, I still got the “EFI stub: Measured initrd data into PCR 9” but it continued after that 🙂

                  Thanks !

                  1 Reply Last reply Reply Quote 0
                  • [[undefined-on, B Baessens, ]]
                  • L
                    lperoma @Tom Elliott
                    last edited by

                    @Tom-Elliott I’ve been battling with this for a few days. This Kernel image solved the issue.

                    1 Reply Last reply Reply Quote 0
                    • L lperoma referenced this topic on
                    • L
                      LiamRetrams
                      last edited by

                      @Tom-Elliott said in Capture UEFI image on hyper-v VM:

                      6.1.89

                      Thanks, this worked for me.

                      When tasking a host, I’d get the same as @Baessens (Hyper-V).

                      I went to kernel update and installed 6.1.89 as per Tom’s suggestion and I was able to get past and into image deployment!

                      1 Reply Last reply Reply Quote 0
                      • W wilsol referenced this topic on
                      • 1 / 1
                      • First post
                        Last post

                      256

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project