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

    FOS boot USB quick image issue.

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    12
    790
    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.
    • S
      Sebastian Roth Moderator
      last edited by

      @blindhelix Are you able to deploy this exact same image to a different host that can PXE boot? Please try and let us know.

      As well please post a screenshot of the full image settings in the FOG web UI and output of the following commands: ls -al /images/2018-07-17Win10-1803UEFI - cat /images/2018-07-17Win10-1803UEFI/d1.fixed_size_partitions - file /images/2018-07-17Win10-1803UEFI/d1p1.*

      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 blindhelixB 2 Replies Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @Sebastian Roth
        last edited by

        @Sebastian-Roth It would be also interesting to see from a normal ipxe boot, when quick image is selected and the same image is picked, does it do the same thing? Its not clear if its an issue with quick image, the target image, or FOS via USB.

        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!

        blindhelixB 1 Reply Last reply Reply Quote 0
        • blindhelixB
          blindhelix @george1421
          last edited by

          @george1421 That is super helpful. I’ll get the new kernel and init and try again.
          With the video I don’t think there was an exact error. It just said its going to use partclone to copy the image over and then never does. Hopefully that makes sense. I can get a video of what a working one does over PXE if that helps.

          1 Reply Last reply Reply Quote 0
          • blindhelixB
            blindhelix @Sebastian Roth
            last edited by

            @Sebastian-Roth This is the only image that we use currently, and it does work via PXE boot. It also works when we use the USB with the “FOG Image Deploy/Capture” GRUB menu item. I don’t believe its an issue with the image itself. I should have made that clear in my original post. My bad.

            1 Reply Last reply Reply Quote 0
            • blindhelixB
              blindhelix @george1421
              last edited by

              @george1421 I should have also clarified better in my original post that when we use PXE boot we use quick image, not like a register host and then push image method. So to answer your question, when we do a normal PXE boot, choose quick image, and pick that same image, it works. At least with the other models that do not require the USB bootable FOS.

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

                @blindhelix OK then make sure your kernels and inits on the usb are in sync with your fog server. You can get them from your fog server in /var/www/html/fog/service/ipxe directory.

                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!

                blindhelixB 1 Reply Last reply Reply Quote 1
                • blindhelixB
                  blindhelix @george1421
                  last edited by

                  @george1421 I tried just copying the files from the place you specified and it still did not work. When I have a minute I’ll try rebuilding the flash drive as last time I tried that I was still on 1.4.4.

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

                    Just for clarity I ran through the ipxe menus using a browser and ended up with this deployment script

                    set fog-ip 192.168.1.53
                    set fog-webroot fog
                    set boot-url http://${fog-ip}/${fog-webroot}
                    kernel bzImage loglevel=4 initrd=init.xz root=/dev/ram0 rw ramdisk_size=255000 web=http://192.168.1.53/fog/ consoleblank=0 rootfstype=ext4 mdraid=true mac= ftp=192.168.1.53 storage=192.168.1.53:/images/ storageip=192.168.1.53 osid=9 irqpoll chkdsk=0 img=NYCClone imgType=n imgPartitionType=all imgid=35 imgFormat=5 capone=1 type=down
                    imgfetch init.xz
                    boot
                    

                    I would then rewrite it as the following (I also think I found the problem)

                    linux  $myimage loglevel=$myloglevel initrd=init.xz boottype=usb root=/dev/ram0 rw ramdisk_size=255000 web=http://$myfogip/fog/ consoleblank=0 rootfstype=ext4 ftp=$myfogip storage=$myfogip:/images/ storageip=$myfogip osid=9 irqpoll chkdsk=0 img=$fogimage imgType=n imgPartitionType=all imgid=$imageid imgFormat=5 capone=1 type=down
                    

                    There is a new kernel parameter or at least one that is not currently in the grub menu as well as now the protocol needs to be added to the web= parameter. In the case of the new parameter its imgFormat= This is the Image Manager manager field in the image definition. 5 is Partclone Zstd and it appears 0 is Partclone GZip. From what I’ve been able to reverse engineer. That number comes from the ordinal number of items in the Image Manager list in the web ui. With the first drop down list entry being 0. You will need to set the imgFormat value correctly for your image. With this parameter missing I can understand why the actual image deployment is failing to launch partclone.

                    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!

                    blindhelixB 2 Replies Last reply Reply Quote 0
                    • blindhelixB
                      blindhelix @george1421
                      last edited by

                      @george1421 Thank you so much! I’ll try this hopefully tonight but it might end up being tomorrow. Seriously, thank you for following up.

                      1 Reply Last reply Reply Quote 0
                      • blindhelixB
                        blindhelix @george1421
                        last edited by

                        @george1421 DUDE it worked after adding imgFormat=0 (for gzip). Thank you again!

                        For anyone having the same issue I ended up with this GRUB menu item:

                        
                        set myfogip=10.100.71.8
                        set myimage=/boot/bzImage
                        set myinits=/boot/init.xz
                        set myloglevel=4
                        set timeout=-1
                        set fogimage=2018-07-17Win10-1803UEFI
                        set imageid=9
                        insmod all_video
                        
                        
                        menuentry "1. FOG Quick Image Deploy $fogimage" {
                         echo loading the kernel
                         linux  $myimage loglevel=$myloglevel initrd=init.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=$myfogip/fog/ storage=$myfogip:/images/ storageip=$myfogip boottype=usb consoleblank=0 rootfstype=ext4 imgPartitionType=all chkdsk=0 capone=1 type=down imgid=$imageid img=$fogimage imgFormat=0 imgType=n osid=9 
                         echo loading the virtual hard drive
                         initrd $myinits
                         echo booting kernel...
                        }
                        
                        1 Reply Last reply Reply Quote 1
                        • 1 / 1
                        • First post
                          Last post

                        154

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project