Hi all, been looking at Fog for years but only got time now so I’m testing!
I know I have a “bad setup” being Debian 8 but let me explain.
Here we have a server 2008 R2 with MDT 2012 running (soon 2013) and DHCP offered from another MS server.
It was running standard PXE and wanted to boot other things so I setup PXELinux using syslinux 6.03 and it works great!
Now I ventured on the next part and without much reading went with the latest release of Debian 8.2 and figured out after that trunk is needed, but only after installing Fog 1.2.0! So I installed trunk over 1.2.0 using Git. By the way, I wonder how to check for changelog whenever there is a new git version out? The changelog file just talks about 1.3.x but no specifics…
So, I didn`t want to bother changing our DHCP to call Undi, it is still pointing pxeboot.0, I thought it would be simple to chainload, not really knowing what I was getting into! How the heck would one achieve this?!?
I read quite a bit since about a week and now it’s time for me to sign up here and participate and request answers!
I get it that I should be modifying our boot to undi of the Fog server but from the wiki’s I saw it was possible to do so, reading https://wiki.fogproject.org/wiki/index.php/Modifying_existing_DHCP_server_to_work_with_FOG and https://wiki.fogproject.org/wiki/index.php/Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_server. So I also installed dnsmasq but one thing not mentionned in the docs is that it will take over the original PXE boot sequence, I though it would just help me having an IP without dirupting anything else! So I stopped the service and tried https://wiki.fogproject.org/wiki/index.php/Chainloading_PXE_to_iPXE_using_pxelinux.0 instead.
Now, i couldn’t get why I would need to change anything on the actual Fog server at this point and just used the config part of the default file for my PXE server to which I added LABEL iPXE Boot MENU LABEL FOG KERNEL ipxe.krn APPEND dhcp && chain http://x.x.x.x/fog/service/ipxe/boot.php?mac=${net0/mac}
For this to work, I first copied the ipxe.krn file from the Fog machine to my pxe server, it asks for the tftp server address, even if I add default.ipxe containing the ip address. If I press enter it will fail saying tftp://{PXE ip address}/default.ipxe Error 0x3d126001
If instead I enter the IP manually of the Fog box I get to the menu! Yay!! I shouldnt rejoice so fast, though!
I try Full registration and Inventory, Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0) Kernel Offset: disabled...
I have read that it’s better to use ipxe.krn from svn but I tought why not give the one from ipxe.org ISO a try?
Funny thing is, it gets to the Fog server without having me enter manually the ip address! Even if default.ipxe is not present on the PXE server. But even more strange, the screen instead of being the nice white Fog backgroud is a plain blue one, not centered or anything.
If I try Full regist and inventory it works! I’m prompt to enter the info and at the end I said yes to image itt but it just rebooted.
So I go back in I see now it’s already registered, I choose Quick Image and I get
params: command not found
Could not boot: Exec format error (http://ipxe.org/2e022001)
Guys I am sorry I know this is a long post! I’m trying to give as much info as I can.
I am really trying to avoid changing the DHCP option to Undionly, seeing that it “should” be working, i think but all I read is people are trying. I do have some time to play around for a couple of days so I would love to try a few things. Thanks!