Issues with Gparted PXE Booting


  • Developer

    @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.



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


  • Moderator

    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, <??>.


  • Moderator

    @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.



  • @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


  • Moderator

    @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.


  • Moderator

    @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
    


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


  • Developer

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



  • @Sebastian-Roth It has not been resolved.


  • Developer

    @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.



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


  • Developer

    @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.


Log in to reply
 

445
Online

6.3k
Users

13.7k
Topics

129.0k
Posts