Chainloading failed / boot looping



  • Seems this should be easy but not finding the answer yet. FOG 1.2, Ubuntu 14.04.4, revision 6365. Attempting my first UEFI booting and getting “Chainloading failed…” message and a boot loop. Test clients are a VM (ESXi 5.5) and a Dell 7010 with most current BIOS. The Dell actually just hangs ans “iPXE initializing devices”. I have tried intel.efi, ipxe.efi, snp.efi, snponly.efi in my Win2008 DHCP server. Legacy booting works fine. Am I missing an edit to a file or something? Thanks for the assist!0_1456701572970_Chainload msg.JPG



  • @george1421 said:

    @gwhitfield said:

    I stopped being prompted for the IP address and I hope that’s a good thing, I’m pretty sure that happened when I changed the DHCP policies.

    wiki hint: Under efi booting, if we are getting the ipxe kernel being delivered to the target computer but the ipxe kernel either doesn’t get the next server, boot file, or possibly an IP address we should dig into what architecture is being requested and what the dhcp server’s policy is configured to deliver. @Wayne-Workman

    Added a note: https://wiki.fogproject.org/wiki/index.php?title=BIOS_and_UEFI_Co-Existence#Step_3



  • @gwhitfield Oh did I edit YOUR post??? crap sorry. How to undo that??



  • @george1421 Nope, my bad. Unintentionally ticked off Wayne. Nothing more to tell, these aren’t the droids you’re looking for.


  • Moderator

    @gwhitfield ??? Maybe a little context here would help to clarify the last post? Possibly a response to a chat session?



  • @gwhitfield said:

    Maybe no need to re-invent the wheel, there’s a great video here:

    Oh, I’m not reinventing anything. I’m documenting for FOG, not WDS.

    You also need to keep in mind - all revenue generated for the FOG videos I make will be donated to the fog project. All wiki articles I write generates traffic to the fog site, which in turn generates revenue for FOG. It’s in the best interests of the FOG Project for me to produce documentation specific to FOG.

    And no decent Open Source project would rely on documentation written for competing software. I won’t have people relying on a WDS oriented video to do something for FOG.


  • Moderator

    @gwhitfield said:

    I stopped being prompted for the IP address and I hope that’s a good thing, I’m pretty sure that happened when I changed the DHCP policies.

    wiki hint: Under efi booting, if we are getting the ipxe kernel being delivered to the target computer but the ipxe kernel either doesn’t get the next server, boot file, or possibly an IP address we should dig into what architecture is being requested and what the dhcp server’s policy is configured to deliver. @Wayne-Workman



  • This works for my VM - not that I understand why nor do I know if it’s a sign something is still wrong with my setup. My OS comes up if no tasks are pending and I am able to upload and deploy an image. Haven’t tried multicasting but I’m going with the assumption for now that it will work fine too. Current boot file is ipxe.efi but have also tested fine on snponly.efi and snp.efi.

    0_1456869740526_BootWorks.JPG

    I will work on the Dell E5550 laptop tomorrow and let you know what happens. THANK YOU EVERYONE!!! (Edit 3/2/16: E5550 works just fine)



  • @Sebastian-Roth
    Funny, no matter what I set as my exit type, I see this as HD boot instruction:
    ":fog.local
    chain -ar ${boot-url}/service/ipxe/grub.exe --config-file=“rootnoverify (hd0);chainloader +1” || goto MENU"

    but when I look at Wayne’s upload I see this:
    :fog.local
    sanboot --no-describe --drive 0x80 || goto MENU

    I would expect to see a changed response each time I change exit type.

    Edit: Actually, the parameters for boot only change when I change the BIOS exit type, they don’t change when I change the EFI exit type. Maybe I have a corrupt file of some sort?


  • Developer

    @gwhitfield Ok, the PCAP file looks good now from my point of view! DHCP setup correct now I reckon! Reading through the whole post again I think the exit type is the only issue you have on your VM really. Booting into a task works fine as you said. @george1421 Which exit type do you use on your ESXi 5.5??

    So we can go back to see if you can get things working with you Dell E5550 as well. You know that you can set exit type for each host. So play with those settings! If you cannot make it work on the E5550 you can try other iPXE binaries (and setup you DHCP to hand out the binaries depending on the clients’ MAC address). Probably best to open a complete new discussion on PXE booting E5550 in UEFI mode if you can’t make it work right away.



  • @gwhitfield - another output after reinstall OS and changing DHCP policy:
    0_1456859580183_output2.pcap



  • @gwhitfield - Nope, not it. Correcting image on the disk didn’t change anything. However, at some point recently I stopped being prompted for the IP address and I hope that’s a good thing, I’m pretty sure that happened when I changed the DHCP policies. I remember with some of our older FOG machines we had to correct the chainloading by adding/editing some files. Is this possibly as simple as that ?? I did try all the different exit conditions and they all respond exactly the same way.



  • Hold horses. I just changed boot order to look at some image details and the VM won’t boot to the HD. I think my test VM got reverted to a BIOS image on a UEFI disk. I’m guessing that’s the explanation for chainloading failure. Reinstalling OS now, should know shortly…


  • Moderator

    @gwhitfield Yeah I agree with wayne, plus I don’t think wild card matches are supported. you have to spell out each one to get a match. No windows cheating here.



  • @gwhitfield That won’t work for 32 bit UEFI systems.



  • @george1421 - For the time being I decided to simplify and set the Policies to:
    1: Arch=00000 (BIOS) - undionly.kpxe (works great)

    1. Arch<>00000 (all other) - snponly.efi
      I was hoping that this would tell anything not reporting as a BIOS machine to get the same boot file regardless of architecture. Doesn’t seem to have worked.

  • Moderator

    @gwhitfield said:

    Yes, the MAC is registered and an image task runs if/when set. It appears that if there’s no task it doesn’t go to the HD as the next option.

    That should be your exit condition. (i.e. sanboot, grub, exit, etc). Some systems have different exit conditions I’m sorry to say.



  • @Sebastian-Roth said:

    Again: Have you ever tried registering this MAC address in the FOG web interface by hand and scheduling an upload task for it? What happens when you PXE boot the client then? Picture or video of an error would be great. Otherwise I can only guess what’s going on.

    Yes, the MAC is registered and an image task runs if/when set. It appears that if there’s no task it doesn’t go to the HD as the next option.


  • Moderator

    @Wayne-Workman said:

    That said - I also understand that someone who doesn’t understand it already will be totally lost for how to set it up for additional architectures. So we do need more steps.

    Maybe just add some text under step three to rinse wash as repeat for “PXEClient:Arch:00002”, “PXEClient:Arch:00006”, “PXEClient:Arch:00008” and “PXEClient:Arch:00009”. If you don’t read through the linux section, the windows admins would not know these values are also required. (and for full disclosure, I did not create them either. Will do now…)



  • @george1421 said:

    We may need to update the wiki to be sure to include all arch settings. I see it lists this for the Linux dhcp, but not for the windows 2012 setup (step 3). @Wayne-Workman

    The steps are the same for all architecture types - you’d just change the number in step 3 and then maybe give the names something that is specific to the arch you have setup.

    That said - I also understand that someone who doesn’t understand it already will be totally lost for how to set it up for additional architectures. So we do need more steps. Maybe even a video.

    wiki

    Also - in case anyone is wondering what the heck we are talking about, we are talking about this: https://wiki.fogproject.org/wiki/index.php?title=BIOS_and_UEFI_Co-Existence


 

518
Online

41.8k
Users

12.3k
Topics

115.9k
Posts