PXE connection Using Windows 2008 as DHCP Server
-
@techadmin So you are not specifically setting dhcp option 60 ? The client thinks it wants to do a dhcp proxy request (hence the port 4011).
If you can’t get it to boot and the dhcp server, fog server, and pxe booting client are on the same subnet then follow this post and upload the image to a google drive: https://forums.fogproject.org/topic/9673/when-dhcp-pxe-booting-process-goes-bad-and-you-have-no-clue
Then either post the link in the forum or send either Sebastian or myself a direct IM and we will tell you what we see is wrong flying down the wire.
-
Strange It is working now, next two question
Is the image that I am test copying from the Dell laptop image going to be the same as the CLonezilla image?
I have a few cloned images that would be nice if I could just copy them to the server with out having to rebuild the images on the test machine just to clone them to the FOG server…if so that would be a great time saver!!Second is there a usb boot/file/option/way for a system that would boot up a device and find a USB network device?
I have some test equipment that only has USB ports and the device bios does show the option for network usb boot option but it does not seem to work very well or at all! -
@techadmin said in PXE connection Using Windows 2008 as DHCP Server:
Strange It is working now, next two question
Is the image that I am test copying from the Dell laptop image going to be the same as the CLonezilla image?
I have a few cloned images that would be nice if I could just copy them to the server with out having to rebuild the images on the test machine just to clone them to the FOG server…if so that would be a great time saver!!At the heart of it both clonezilla and FOG uses partclone to capture the disk images. FOG then uses a compression program to better optimize the image size on the fog server. So technically its possible to convert a clonezilla image to a FOG image, I can tell you that you will be better off by just using clonezilla to dump the image to fast hardware and then recapture it with FOG. That way you are assured to get all of the bits in the right spots and compressed properly. You will spend far less time this way than migrating, compressing, hand creating the image definitions and then testing than just let it happen using the respective tools.
Second is there a usb boot/file/option/way for a system that would boot up a device and find a USB network device?
I have some test equipment that only has USB ports and the device bios does show the option for network usb boot option but it does not seem to work very well or at all!Well in this case there are a few options to usb boot or kickstart the process where the firmware doesn’t support the usb network adapter. The only caveat is that the Fog OS [FOS for short that captures and deploys images on the target computers] has to support the usb network adapter or you are done before you start. Before we go down this path tell use a bit more about your hardware, who makes the hardware and who/what model of usb network adapter are you trying to use.
I can tell you that you will have better luck pxe booting a UEFI based system if you use the network adapters that are supported by the hardware.
-
@george1421 technically newer versions of fog can handle the image files without compression too. It does mean renaming for partition of course. I’m just saying technically it is possible.
-
@george1421
Well as far as the boot device goes we develop specialized hardware; this new item uses a COM Express on the board with a 250gig solid state chip a the drive. We use a USB DVD drive to load everything from windows to red hat with no problems. Once the OS is up and running the network is fine but booting to the USB network device leave a lot to be desired. I have two or three different USB network device options in the parts box.But I would really like instructions on the recapture and compression; it looks like the first test capture across the network is a bit slow and my time to babysit this process is limited with the amount meetings I have this week…if you have the time
-
@techadmin said in PXE connection Using Windows 2008 as DHCP Server:
COM Express
OK, just so I understand. You have custom hardware that you need to install an image on. Your hardware doesn’t either have a network adapter that supports pxe, or there is no ethernet adapter in the device so you use an external usb ethernet adapter. It sounds like your custom hardware runs or can run rhel (that is good) and the network adapter IS seen in by rhel.
Since rhel works, then FOG/FOS will most likely work on your custom hardware. We have a couple of paths we can test to see what is the best path for you.
First a little background, FOG uses several technologies to providing imaging. The first technology is iPXE. iPXE is an extension of the PXE ROM that is built into most network adapters (in your case you don’t have a pxe rom compatible network adapter). In FOG’s case we use the built in pxe roms to download iPXE from the FOG server. Then we let iPXE take over for the rest of the image management process. When we get ready to capture or deploy images we instruct iPXE to download FOS (Fog Operating System that is used to capture and deploy images on target computers). FOS does all of the heavy work of imaging the target computer.
So the best choice if you don’t have a PXE compatible network is to see if we can load iPXE from a usb flash drive. Once iPXE is loaded it will contact the FOG server and normal imaging is possible. We have found that iPXE is not compatible with some network adapters. So for this case we can boot right into FOS, via a GRUB usb boot stick. You will loose some features by booting directly into FOS, but if you goal is to capture and deploy then we can go this path.
For the next steps I want you to build a FOS USB boot drive according to these instructions: https://forums.fogproject.org/topic/7727/building-usb-booting-fos-image/4 To save you some time I’ll DM you a link to a boot image I created just recently. Having that image will take you to step 7 in the instructions. You can use rufus (in windows) or dd (in linux) to write the image to the flash drive. The only requirement is the usb flash drive must be 512MB in size or larger.
Once you have the usb flash drive (don’t forget to update the grub.conf file to point to your local fog server) I want you to test option 7 if your custom hardware is bios based, and option 8 if its uefi based. That should jumpstart you into iPXE. I want to know does that jumpstart option display the FOG iPXE menu. If yes then we can do a few other things. If no, then we need to understand what happened. We can then try to register the computer using FOS (option 2 or option 3). That route should work. Just a note before you attempt option 1 you MUST first schedule a capture or deploy task on the FOG server then call option 1.
I know I gave you a lot of information here. Lets first start by creating the usb boot drive from the link I will send you.
-
Starting logging: ok
Populating /dev using udev: udevd[2795]: error creating epoll fd: function not implemented
done
Initializing random number generator… done
Starting eth0 interface and waiting for the link to come up
udhcp: starting, v1.26.2
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
Either DHCP failed or we were unable to access 192.168.83.94/for//index.php for connection
No DHCP response on interface etho, skipping it.
Failed to get an IP via DHCP! Tried on interfaces(s): eth0
Please chaeck your network setup and try again!Ok my first action: I updated the update the grub.conf first line to point to the FOG server 192.168.83.94
Don’t know if I need to change anything else?
I see that it is showing for eth0 a MAC of : 00:00:00:00:00:00 | 30:64:19:48:91
Yet that is not the MAC that is built on our board and it is not the MAC of the USB network dongle, we only have these two items (so where is it getting that MAC from?)
Option 7 error: loading the kernel
error: invalid magic number
booting iPXE…
Press any key to continue…Option 8 error: chain loading the kernel.
error: cannot load image.
booting ipxe-efi…
Press any key to continue… -
@techadmin I see we have a lot of details here. Can you pick option 6 which should be debug. I’m hoping that debug will drop you to a linux command prompt after a few screens of commands. Once we are at the linux command prompt we can discover what linux knows about the hardware.
Since are dealing with a USB ethernet adapter we may need to add a kernel parameter to the grub file to tell its using a usb ethernet adapter. But try the debug menu option first and see if you can get to a linux command prompt. Once there key in the following commands.
ip addr show
ip link show
lspci -nn | grep net
-
@george1421 now don’t do this yet, I’d like to see if the debug menu gives us what we need. But if not the next steps are to add the kernel parameter
has_usb_nic=1
to the kernel invocation line like this.Original menu
menuentry "6. FOG Debug Kernel" { echo loading the kernel linux $myimage loglevel=7 init=/sbin/init root=/dev/ram0 rw ramdisk_size=127000 keymap= boottype=usb consoleblank=0 rootfstype=ext4 isdebug=yes echo loading the virtual hard drive initrd $myinits echo booting kernel... }
to this
menuentry "6. FOG Debug Kernel" { echo loading the kernel linux $myimage loglevel=7 init=/sbin/init root=/dev/ram0 rw ramdisk_size=127000 keymap= boottype=usb consoleblank=0 rootfstype=ext4 isdebug=yes has_usb_nic=1 echo loading the virtual hard drive initrd $myinits echo booting kernel... }
Note the new kernel parameter
has_usb_nic=1
after theisdebug=yes
-
@george1421 any chance on an email address so I can send a few picture of the screen shots so I don’t have to type all of this out?
-
@techadmin You can post them here in the forums, or if you want to keep them private, upload them to a google drive and share the link with me via DM.
-
@george1421 Ok I don’t see a area to up load them?
-
@techadmin When you are in the editor, you should be able to just drag the picture into the compose box. and it will upload it.
-
@george1421 ![0_1505941266609_Fog-NIC-Search.JPG](Uploading 100%)
-
@techadmin Excellent.
Lets identify what device is 00:30:64:19:48:91 Do you know what device that mac address is associated with? ( do know the answer, I just need to confirm it )
-
@george1421 No idea it does not match anything we have on the board or the USB dongle
-
@techadmin Interesting, the mystery deepens. I can see in the output of the lspci command that there is an Intel l219-lm onboard that embedded controller.
-
@george1421 Ok I found one dongle that worked the one on the left (Black works for everything but this application)
The one on the right (White …FOG seams to love this one)
But I still need to know a few things!
If I clone one box using this dongle and I go and use the same dongle to push images to other devices is this going to be a problem?Next I moved the Clonzilla image over to the FOG server now what do I need to do to compress it so that FOG can reuse t?
-
@techadmin My intuition is telling me you have a nic adapter on that embedded system. You may be better off using that if you can find the interface. Since it is an intel l219-lm it probably supports pxe booting too. I would surely explore that route when time permits. You will get the best imaging speed with that device. I don’t know if that is a commercial embedded or something your company makes. There may be a header on the embedded controller where you need to supply an adapter to an RJ45.
Change topics now
You found an usb nic FOG likes, great. The more generic the better because it has to be supported by the linux.Before I go on, lets make sure I understand how you will use FOG.
You will use fog to deploy your reference image to the target system. Once you unplug that target system from your build up bench, you and FOG will never see that device again?
-
@techadmin said in PXE connection Using Windows 2008 as DHCP Server:
If I clone one box using this dongle and I go and use the same dongle to push images to other devices is this going to be a problem?
We’ve been working on identifying machines by SysUUID (see here) instead of the MAC address. Though this feature is still new and I am not exactly sure if it’ll work in all cases. Give it a go and see how it works.
Next I moved the Clonzilla image over to the FOG server now what do I need to do to compress it so that FOG can reuse t?
What George meant is that you better deploy the Clonezilla image(s) to a machine (using Clonezilla) and capture a new FOG image from that. It saves you a lot of work (converting and generating FOG metadata like partition tables and more) and you’ll have a nicely compressed image right away.
This looks really strange. There is the major part of the URL missing in the output. Should be “http://x.x.x.x/fog/index.php”. When creating the boot USB key make sure you have the
web=http://$myfogip/fog/
parameter set!!All that said I’d also recommend what George already said. Find that onboard NIC chip and use this. USB NIC PXE boot might work but is quite often a lot of hassle to get to work. See that
has_usb_nic=1
kernel parameter is also just an ugly workaround but we still need this…