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

Unable to capture image after performing iPXE boot loader update

Scheduled Pinned Locked Moved Solved
FOG Problems
3
15
1.8k
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
    JYost @george1421
    last edited by JYost Dec 3, 2021, 10:48 AM Dec 3, 2021, 4:48 PM

    @george1421
    How does one get to the dev-branch to download 1.5.9.111??? The Kernel has already been updated to the latest.

    G 1 Reply Last reply Dec 3, 2021, 5:27 PM Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Sebastian Roth Dec 3, 2021, 11:20 AM Dec 3, 2021, 5:19 PM

      @JYost Updating to 1.5.9.111 is one way but you can also just update the FOS init.

      fos-version.jpg

      In the picture we see you’re still using the FOS init that was released with FOG 1.5.9. This init definitely has issues with newer 20H2 (and also earlier version I think).

      To update the init just follow these commands (run as root on your FOG server):

      cd /var/www/html/fog/service/ipxe/
      mv init.xz init.xz.orig
      mv init_32.xz init_32.xz.orig
      wget https://github.com/FOGProject/fos/releases/latest/download/init.xz
      wget https://github.com/FOGProject/fos/releases/latest/download/init_32.xz
      

      Try a new capture and pay attention to the “Init version” that is shown on bootup. Should be newer than what we see in the picture now.

      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 1
      • G
        george1421 Moderator @JYost
        last edited by george1421 Dec 3, 2021, 11:28 AM Dec 3, 2021, 5:27 PM

        @jyost If you use the git method to install FOG initially then its pretty easy.

        Change into that directory depending on who’s instructions the fogproject folder will be in /root or /opt Then key in

        git pull
        git checkout dev-branch
        git pull
        

        Then simply rerun the installer with the latest options. Understand the installer will reset all of the iPXE files you have as well as bzImage which you just updated. So you will need to recompile ipxe and copy ipxe.efi and snponly.efi back over to the /tftpboot directory as well as redownload 5.10.x kernels.

        Edit: yeah it would probably help to see if someone already answered the question before replying.

        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!

        J 1 Reply Last reply Dec 3, 2021, 6:03 PM Reply Quote 0
        • J
          JYost @george1421
          last edited by JYost Dec 3, 2021, 12:04 PM Dec 3, 2021, 6:03 PM

          @george1421

          Closer…after updating the FOS init and restarting the server, the Init Version is now 20210807. The blkid error is also gone. “New fixed partition for (/dev/nvme0n1p4 added.” message is now displayed (which I assume is good 🙂 ). The only issue now is that the PXE boot process is now hung up on Resizing filesystem…
          Normally this passes within a minute or so and PartClone does it’s thing. It’s been 15 minutes now and we’re still stuck.

          Capture.JPG

          G 1 Reply Last reply Dec 3, 2021, 6:09 PM Reply Quote 0
          • G
            george1421 Moderator @JYost
            last edited by Dec 3, 2021, 6:09 PM

            @jyost It almost appears there is something going on with this disk. Did the source computer have windows 10 (any version) and someone did an in place upgrade to a different version of windows 10?

            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!

            J 1 Reply Last reply Dec 3, 2021, 6:19 PM Reply Quote 0
            • J
              JYost @george1421
              last edited by JYost Dec 3, 2021, 12:20 PM Dec 3, 2021, 6:19 PM

              @george1421
              No, I never do in place upgrades. This is a fresh copy of 21H2 straight from Micro$oft.
              The strange this is I created a 21H2 image with no problems whatsoever immediately before doing the iPXE boot loader update. After the boot loader update I went back into the VM, Opened the pre-sysprep snapshot, uninstalled the FOG client and reinstalled it with a different IP address (for a different site in India) as I’ve done countless times before. Re-ran sysprep and attempted the capture. That’s when the problems started…

              EDIT: AS I AM TYPING THIS Partclone finally started the capture (~25+ minutes later). Strange.

              PartClone.JPG

              I will need to test this image to see if it’s working and report back…

              G 1 Reply Last reply Dec 3, 2021, 6:49 PM Reply Quote 0
              • G
                george1421 Moderator @JYost
                last edited by Dec 3, 2021, 6:49 PM

                @jyost Unless the disk was badly fragmented it shouldn’t have taken that much time to squeeze down a disk. What the FOG Program does is packs the file system to make the disk files sequential taking up as little non-contiguous space on the disk as possible. Its kind of akin to disk fragmentation, but it moves all of the blocks towards the start of the disk. Then it shrinks the partitions to the size of data. That is how it can make a partition resizable. It squeezes all of the air out of the partition then clones that squeezed partition.

                While I don’t recommend this if you were to abort the capture right in the middle then look at your disk structure you would see what you see in partclone a 35.5 GB partition with 800MB of free space. Its possible that this partition was 100GB (guess) in size to start with. Having about 34.6GB of data on that 100GB disk.

                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!

                J 1 Reply Last reply Dec 3, 2021, 7:59 PM Reply Quote 0
                • J
                  JYost @george1421
                  last edited by Dec 3, 2021, 7:59 PM

                  @george1421
                  The VM partition is 60GB - as far as fragmentation goes the partition resides on an SSD which shouldn’t be defragmented. I’m not of the opinion that fragmentation had anything to do with the slow resizing as the image I captured immediately before the iPXE boot loader update resized within a minute or so. The same image was captured after the boot loader update (the only difference being the FOG client installation using a different IP.)

                  Even with the long resizing the second time around the image uploaded and downloaded fine without any errors.

                  Sidenote: You stated that FOG 1.5.9 had issues with 20H2 and possibly even 20H1. Ironically we have been using FOG 1.5.9 with 20H1, 20H2, and 21H1 without any issues whatsoever. 21H2 is where we ran into problems.

                  So, moving forward…for the rest of our fog servers I take it that the order of operations to fully update our servers should be as follows:

                  1.) Update FOG to v.1.5.9.111 by updating the FOS init (is server restart or re-run install fog.sh required here?)
                  2.) Update Kernel to latest version, then restart FOG server
                  3.) Update iPXE to latest version, then re-run installfog.sh

                  Again, thank you George, Sebastian, et al. for the excellent tech support. You guys are geniuses.

                  J 1 Reply Last reply Dec 3, 2021, 8:25 PM Reply Quote 0
                  • J
                    JYost @JYost
                    last edited by JYost Dec 3, 2021, 2:30 PM Dec 3, 2021, 8:25 PM

                    @jyost

                    I did notice something odd about the latest image capture though…
                    Normally using Partclone G-Zip we end up with 10 files in the image…this time we ended up with 11 files:

                    11Files.JPG

                    And here is the 21H2 image I captured immediately prior to the iPXE boot loader update - 10 files:

                    9Files.JPG

                    G 1 Reply Last reply Dec 3, 2021, 8:43 PM Reply Quote 0
                    • G
                      george1421 Moderator @JYost
                      last edited by Dec 3, 2021, 8:43 PM

                      @jyost well we can always put back the ipxe if you really think that is your problem.

                      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!

                      J 1 Reply Last reply Dec 3, 2021, 8:50 PM Reply Quote 0
                      • J
                        JYost @george1421
                        last edited by Dec 3, 2021, 8:50 PM

                        @george1421

                        I just tried another capture after changing the FOG client on the image to point to our FOG server in Germany. This time there was a normal 1 minute pause during the resizing process then Partclone G-zip started and imaged without problems. All seems normal again…gremlins have been eradicated. You can mark this as solved.

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

                        227

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project