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

Issues with Gparted PXE Booting

Scheduled Pinned Locked Moved
General Problems
4
33
8.3k
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.
  • Q
    quinniedid
    last edited by quinniedid Mar 20, 2019, 9:16 AM Mar 19, 2019, 9:53 PM

    I have been trying to get Gparted to work from FOG for the past week. I feel like there is something that I am simply missing.

    I can get Gparted to boot but when it boots it is giving me this error:

    6fd7ca8b-0b4b-4f9f-98a6-4f820cacea4b-image.png

    Am I missing a config file or something? It seems that it is not finding any drives? I know that Gparted works because if I plug the USB with the exact same live image it works no problem on the device.

    Here is what I have defined for my PXE menu settings:

    260bee7f-2706-4b02-bed3-f7e30bb1f1d0-image.png

    kernel http://${fog-ip}/fog/gparted/vmlinuz initrd http://${fog-ip}/fog/gparted/initrd.img boot=live config components union=overlay username=user noswap noeject ip= vga=788 fetch=http://${fog-ip}/fog/gparted/filesystem.squashfs
    boot
    

    Any advice would be greatly appreciated.

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Mar 19, 2019, 11:10 PM

      @quinniedid Probably a good idea to post your iPXE menu Parameters as text as well so people can give it a try straight away and see what’s wrong.

      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

      Q 1 Reply Last reply Mar 20, 2019, 3:16 PM Reply Quote 0
      • Q
        quinniedid @Sebastian Roth
        last edited by Mar 20, 2019, 3:16 PM

        @Sebastian-Roth Great point! It has been added.

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by May 20, 2019, 6:58 PM

          @quinniedid Whoops, just saw that we’ve lost track of this. Did you ever solve this. Might give it a try in the next days when I find the time.

          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
          • Q
            quinniedid
            last edited by quinniedid May 22, 2019, 9:58 AM May 22, 2019, 3:57 PM

            @Sebastian-Roth It has not been resolved.

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by May 22, 2019, 5:08 PM

              @quinniedid Do you mind sharing how you got this working? Others might find it helpful too. 🙂

              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
              • Q
                quinniedid
                last edited by May 22, 2019, 5:31 PM

                @Sebastian-Roth I did not get it working. I have tried some different things but it fails to load.

                G 1 Reply Last reply May 22, 2019, 5:38 PM Reply Quote 0
                • G
                  george1421 Moderator @quinniedid
                  last edited by george1421 May 22, 2019, 11:39 AM May 22, 2019, 5:38 PM

                  @quinniedid There should be an image fetch command that you need for the initrd.

                  While its a bit off target here is the commands needed to pxe boot into ubuntu

                  :os.Ubuntu1604
                  kernel tftp://${fog-ip}/ubuntu/16.04/vmlinuz
                  initrd tftp://${fog-ip}/ubuntu/16.04/initrd.gz
                  imgargs vmlinuz initrd=initrd.gz root=/dev/nfs netboot=nfs nfsroot=${fog-ip}:/images/os/ubuntu/16.04/ locale=en_US.UTF-8 ip=dhcp rw
                  

                  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!

                  G 1 Reply Last reply May 22, 2019, 5:42 PM Reply Quote 0
                  • G
                    george1421 Moderator @george1421
                    last edited by george1421 May 22, 2019, 11:43 AM May 22, 2019, 5:42 PM

                    @george1421 So to translate what you have.

                    kernel http://${fog-ip}/fog/gparted/vmlinuz initrd http://${fog-ip}/fog/gparted/initrd.img boot=live config components union=overlay username=user noswap noeject ip= vga=788 fetch=http://${fog-ip}/fog/gparted/filesystem.squashfs
                    boot
                    

                    Into iPXE syntax

                    kernel http://${fog-ip}/fog/gparted/vmlinuz 
                    initrd http://${fog-ip}/fog/gparted/initrd.img
                    imgargs  initrd=initrd.img boot=live config components union=overlay username=user noswap noeject vga=788 fetch=http://${fog-ip}/fog/gparted/filesystem.squashfs
                    boot
                    

                    Also I would strongly suggest that you NOT use the path http://${fog-ip}/fog because of the url rewriting rules that fog does with apache. If you had to use http I would put it in directory off the web root directory and not under /fog.

                    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!

                    1 Reply Last reply Reply Quote 0
                    • Q
                      quinniedid
                      last edited by May 22, 2019, 8:10 PM

                      @george1421

                      kernel tftp://${fog-ip}/gparted/vmlinuz 
                      initrd tftp://${fog-ip}/gparted/initrd.img
                      imgargs  initrd=initrd.img boot=live config components union=overlay username=user noswap noeject vga=788 fetch=tftp://${fog-ip}/gparted/filesystem.squashfs
                      boot
                      

                      I see the files download but this is the screen that I get:
                      3a72f644-63ca-4945-bf9c-aa66f1f3b94a-image.png

                      G 1 Reply Last reply May 22, 2019, 8:32 PM Reply Quote 0
                      • G
                        george1421 Moderator @quinniedid
                        last edited by george1421 May 22, 2019, 2:35 PM May 22, 2019, 8:32 PM

                        @quinniedid Well if this was FOS linux (FOG) the error at this point was that the kernel

                        1. Doesn’t understand the format of virtual hard drive (initrd.img)
                        2. The initrd file didn’t make it to the target computer
                        3. You were pxe booting a 64bit kernel and have a 32 bit initrd file.
                        4. The kernel is mismatched to the initrd file

                        Since its erroring out just as it connects to the initrd file, I don’t think the issue is related to the fetch command later in the kernel parameters.

                        edit: Looking at the gparted pxe booting page, the issue “might” be the fetch command since it may only reference http.

                        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!

                        G 1 Reply Last reply May 22, 2019, 8:45 PM Reply Quote 0
                        • G
                          george1421 Moderator @george1421
                          last edited by May 22, 2019, 8:45 PM

                          Looking at the sysconfig file inside the current gparted zip file this is the syslinux kernel boot parameters.

                            kernel /live/vmlinuz
                            append initrd=/live/initrd.img boot=live union=overlay username=user config components quiet noswap  toram=filesystem.squashfs ip= net.ifnames=0  nosplash 
                          

                          Note there is no fetch command.

                          That would be translated into this (guess)

                          kernel tftp://${fog-ip}/gparted/vmlinuz
                          initrd tftp://${fog-ip}/gparted/initrd.img
                          initrd tftp://${fog-ip}/gparted/filesystem.squashfs
                          
                          imgargs  initrd=initrd.img boot=live union=overlay username=user config components quiet noswap  toram=filesystem.squashfs ip= net.ifnames=0  nosplash 
                          

                          Will it work, <??>.

                          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!

                          1 Reply Last reply Reply Quote 0
                          • Q
                            quinniedid
                            last edited by quinniedid May 22, 2019, 3:01 PM May 22, 2019, 8:56 PM

                            @george1421 This is what I am getting now:
                            e875f811-e6cc-4488-b42d-f12afb0a2cf4-image.png

                            G 1 Reply Last reply May 22, 2019, 9:08 PM Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by May 22, 2019, 9:03 PM

                              @quinniedid said in Issues with Gparted PXE Booting:

                              It has not been resolved.

                              Sorry, I got that completely wrong. Shouldn’t try to answer in a rush.

                              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
                              • G
                                george1421 Moderator @quinniedid
                                last edited by george1421 May 22, 2019, 3:08 PM May 22, 2019, 9:08 PM

                                @quinniedid Strange, the files appear to download but then ipxe blew up on the imgargs command and then didn’t try to boot. Are you sure the ipxe menu doesn’t have any extra stuff in it? or like you missed the imgargs command?

                                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!

                                1 Reply Last reply Reply Quote 0
                                • Q
                                  quinniedid
                                  last edited by May 22, 2019, 9:09 PM

                                  @george1421 This is what I have configured:

                                  kernel tftp://${fog-ip}/gparted/vmlinuz
                                  initrd tftp://${fog-ip}/gparted/initrd.img
                                  initrd tftp://${fog-ip}/gparted/filesystem.squashfs
                                  imgargs initrd=initrd.img boot=live union=overlay username=user config components quiet noswap toram=filesystem.squashfs ip= net.ifnames=0 nosplash
                                  1 Reply Last reply Reply Quote 0
                                  • Tom ElliottT
                                    Tom Elliott
                                    last edited by Tom Elliott May 22, 2019, 4:15 PM May 22, 2019, 10:14 PM

                                    Move the components of imgargs to the kernel line after vmlinuz

                                    Remove imgargs line

                                    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
                                    • G
                                      george1421 Moderator
                                      last edited by george1421 May 23, 2019, 7:57 AM May 23, 2019, 1:46 PM

                                      Ok I have a working solution here

                                      Using gparted-live-0.33.0-2-i686.zip as the base file being used

                                      This is the parameters settings:

                                      kernel tftp://${fog-ip}/gparted/vmlinuz
                                      initrd tftp://${fog-ip}/gparted/initrd.img
                                      imgargs vmlinuz initrd=initrd.img boot=live config components union=overlay username=user noswap noeject ip= vga=788 fetch=tftp://${fog-ip}/gparted/filesystem.squashfs
                                      boot || goto MENU
                                      

                                      gparted1.png

                                      ref: https://forums.fogproject.org/topic/10944/using-fog-to-pxe-boot-into-your-favorite-installer-images/18

                                      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!

                                      1 Reply Last reply Reply Quote 0
                                      • Q
                                        quinniedid
                                        last edited by quinniedid May 23, 2019, 9:48 AM May 23, 2019, 3:09 PM

                                        @george1421 I got a lot closer! But I am now getting a failed to boot…
                                        3c5d103e-b2b8-4ac0-98de-f2991a8c6d59-image.png

                                        @Tom-Elliott Also tried these:

                                        kernel tftp://${fog-ip}/gparted/vmlinuz vmlinuz initrd=initrd.img boot=live config components union=overlay username=user noswap noeject ip= vga=788 fetch=tftp://${fog-ip}/gparted/filesystem.squashfs
                                        initrd tftp://${fog-ip}/gparted/initrd.img
                                        boot
                                        

                                        This seemed to get further

                                        kernel tftp://${fog-ip}/gparted/vmlinuz initrd=initrd.img boot=live union=overlay username=user config components quiet noswap toram=filesystem.squashfs ip= net.ifnames=0 nosplash
                                        initrd tftp://${fog-ip}/gparted/initrd.img
                                        initrd tftp://${fog-ip}/gparted/filesystem.squashfs
                                        boot
                                        

                                        030e95ae-d795-4b3a-b8e9-66289b58bbe2-image.png

                                        G 1 Reply Last reply May 23, 2019, 7:12 PM Reply Quote 0
                                        • G
                                          george1421 Moderator @quinniedid
                                          last edited by May 23, 2019, 7:12 PM

                                          @quinniedid My instructions worked on my system using the i686 gparted kernel. I didn’t try the amd64 kernel.

                                          In both of the pictures I was there during testing. The VM I used for testing was a bios based system. I did not try with a uefi based VM.

                                          In your second picture I also go that during testing when I moved the kernel arguments to the kernel line in the iPXE code. When I put them back is when it started working once I stopped copying the squashfs via initrd and used the fetch kernel parameter.

                                          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!

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

                                          226

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project