• Deploy and capture images remotely?

    Unsolved
    13
    0 Votes
    13 Posts
    3k Views
    G

    @george1421 That’s what I am looking for… What guides do I need to follow and where is the script? It would stay DHCP so I can use it anywhere

  • TFTP using pxe-service menu option on existing DNSMasq DHCP server

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    george1421G

    @frobishant32 There is a couple of things going on here.

    Your dnsmasq configuration is only setup for bios based computers. Look at this tutorial here to see how to configure dnsmasq for proxy dhcp. Understand this is not what you need, but look at the section with the pxe-service entries for the uefi settings : https://forums.fogproject.org/topic/12796/installing-dnsmasq-on-your-fog-server?_=1699482367667

    The second issue you have is that when iPXE boots it once again does a dhcp query to find the IP address of the “what it assumes” is the fog server. So what ever dhcp has for options 66 and 67 will be used to find the fog server. This next part is a little complicated but let me explain. When iPXE boots it runs an internal script that the fog developers embedded in the FOG version of iPXE. The script is pretty much here: https://github.com/FOGProject/fogproject/blob/master/src/ipxe/src/ipxescript

    #!ipxe isset ${net0/mac} && ifopen net0 && dhcp net0 || goto dhcpnet1 echo Received DHCP answer on interface net0 && goto proxycheck :dhcpnet1 isset ${net1/mac} && ifopen net1 && dhcp net1 || goto dhcpnet2 echo Received DHCP answer on interface net1 && goto proxycheck :dhcpnet2 isset ${net2/mac} && ifopen net2 && dhcp net2 || goto dhcpall echo Received DHCP answer on interface net2 && goto proxycheck :dhcpall dhcp && goto proxycheck || goto dhcperror :dhcperror prompt --key s --timeout 10000 DHCP failed, hit 's' for the iPXE shell; reboot in 10 seconds && shell || reboot :proxycheck isset ${proxydhcp/next-server} && set next-server ${proxydhcp/next-server} || goto nextservercheck :nextservercheck isset ${next-server} && goto netboot || goto setserv :setserv echo -n Please enter tftp server: && read next-server && goto netboot || goto setserv :chainloadfailed prompt --key s --timeout 10000 Chainloading failed, hit 's' for the iPXE shell; reboot in 10 seconds && shell || reboot :netboot chain tftp://${next-server}/default.ipxe || goto chainloadfailed

    As I said this script looks to what dhcp settings are and then uses that to chain to load default.ipxe.

    So you will need to adjust this script and rebuild ipxe if you want to change the behavior of ipxe as it boots from fog. Maybe something like this edit

    #!ipxe isset ${net0/mac} && ifopen net0 && dhcp net0 || goto dhcpnet1 echo Received DHCP answer on interface net0 && goto proxycheck :dhcpnet1 isset ${net1/mac} && ifopen net1 && dhcp net1 || goto dhcpnet2 echo Received DHCP answer on interface net1 && goto proxycheck :dhcpnet2 isset ${net2/mac} && ifopen net2 && dhcp net2 || goto dhcpall echo Received DHCP answer on interface net2 && goto proxycheck :dhcpall dhcp && goto proxycheck || goto dhcperror :dhcperror prompt --key s --timeout 10000 DHCP failed, hit 's' for the iPXE shell; reboot in 10 seconds && shell || reboot :proxycheck isset ${proxydhcp/next-server} && set next-server ${proxydhcp/next-server} || goto nextservercheck :nextservercheck isset ${next-server} && goto netboot || goto setserv :setserv echo -n Please enter tftp server: && read next-server && goto netboot || goto setserv :chainloadfailed prompt --key s --timeout 10000 Chainloading failed, hit 's' for the iPXE shell; reboot in 10 seconds && shell || reboot :netboot chain tftp://192.168.21.82/default.ipxe || goto chainloadfailed

    That chain update will then ignore what dhcp is telling ipxe and it will load always from the 21.82 address.

    Here is a tutorial on rebuilding ipxe. https://forums.fogproject.org/topic/15826/updating-compiling-the-latest-version-of-ipxe

    I’m pretty sure you can get to what you need with the above info. I would try the dnsmasq settings first before going down the ipxe edit route.

  • bootable USB FOG image

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    P

    @george1421: I cannot launch the FOS Linux engine.

  • FTP server not running

    Unsolved
    1
    0 Votes
    1 Posts
    401 Views
    No one has replied
  • Owner and permissions in /images

    Unsolved
    1
    0 Votes
    1 Posts
    375 Views
    No one has replied
  • New Lenovo Computers

    Solved
    4
    0 Votes
    4 Posts
    812 Views
    T

    I was using the Factory image that came on the device from Lenovo. It was Win 10 and I updated it to Win 11 and we were getting the issues.

    I wiped it clean, and loaded a new instance of Win 11, and everything worked fine afterwards. Looks like after disabling Secure Boot, all other issue were with the device. We now have a working images. Thank you for all the help.

  • Can PXE Boot in to the Fog Menu but can't get anywhere after that.

    Unsolved
    3
    0 Votes
    3 Posts
    729 Views
    M

    @george1421 I updated the FOG Linux Kernel to the newest one and tried using an unmanaged switch but the problem still remains.

  • Cannot boot client on PXE

    Unsolved
    4
    0 Votes
    4 Posts
    760 Views
    george1421G

    @luisgmarinr What you are telling me and what I see on the screen is not the same. Some of my confusion is that I don’t use virtual box so it may be something unique to VB.

    You tell me the FOG server is at 10.0.2.15, but from your initial screen shot that is the IP address being given to the pxe booting computer.

    The firmware is being told the next server (pxe boot server) is at 10.0.2.4. The next server field should point to the fog server IP address. Its also being told to boot win.pxe and that is not a FOG boot loader.

    So lets start to debug this by identifying what device is 10.0.2.4.

    Also what device is the dhcp server for your network? That device appears to be giving out bad information.

  • Fog Capture with 2 hard drives

    Unsolved
    12
    0 Votes
    12 Posts
    3k Views
    L

    Awesome. Thanks for the help!

  • TFTP Timeout

    Solved
    10
    0 Votes
    10 Posts
    3k Views
    george1421G

    @Tauric said in TFTP Timeout:

    (and took less than 10 minutes lol)

    Well I was taking into account for slow speeds between keyboard and chair…
    Glad you have it worked out. DNSMASQ should work flawlessly in your environment.

  • wake on lan in a loop

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    S

    @ludlud Do all the machines come back on or just some of them?

    Check the log in /var/log/fog/fogscheduler.log to see if jobs are somehow scheduled - like a plain WOL type job.

  • intel I219-v big problem

    Unsolved
    9
    0 Votes
    9 Posts
    2k Views
    Tom ElliottT

    @george1421 Just thinking outside the box as it makes 0 sense for it to be “just these network cards”

    I suppose the “real” test would be seeing if outside of this room if the same problem happens?

    I know not simple, but if you can move the whole room to an area where we know this issue doesn’t currently exist, and it shows, then it’s likely specific to this equipment. If it doesnt’ show up, it’s likely something specific to that particular room.

  • Secure boot with fog

    Unsolved
    1
    0 Votes
    1 Posts
    561 Views
    No one has replied
  • Update to 1.5.10

    Solved
    10
    0 Votes
    10 Posts
    2k Views
    B

    @Tom-Elliott
    Habit, simply habit. I looked back at the wiki documentation and it definitely does not say to use sh. I do apologize for the confusion and hopefully this helps someone in the future.

  • WDS and Fog with Syslinux - Need Help!

    Unsolved
    13
    0 Votes
    13 Posts
    3k Views
    george1421G

    @boros

    I want to transfer the “Gold” Images from the server in the other site. Can I just copy and paste the Images Folder from from the other Linux Machine?

    The short answer is yes, but there is something you need to know.

    FOG Images are made up of two components. The first is the raw data files that are kept in /images directory on your fog server. The second part is the metadata kept in the database. You need both to make the image functional. You can copy the files over by hand, but you will need to either recreate the metadata on the target system by hand (not a difficult task) or export the the image definitions from the source computer and import them on the destination computer

    Now one other tidbit that is not supported by the developers, but it works. If on your master server you add the remote fog server as a storage node. The main fog server will be a master node and the remote server is a storage node (just in the context of this configuration), the master node will copy any image marked as exportable all storage nodes in its storage group. This will get the raw images over to the target system using the standard fog image replication. But the thing it doesn’t do is copy over the image definitions. You will need to do this using the export and import method, or by manually creating the image definitions by hand. Using this method you can have golden images pushed out by HQ and each site will still be able to create their own golden images too.

  • 0 Votes
    4 Posts
    636 Views
    S

    @skyborne98 Thanks for testing and sharing you insights here!

    I just added this info to the wiki: https://wiki.fogproject.org/wiki/index.php?title=FOG_Client#Installing_-_Linux

  • Cant make custom pxe menu default

    Solved
    4
    0 Votes
    4 Posts
    824 Views
    Roger SaffleR

    @george1421 That was it. Thanks

    details:
    I had named the menu item HD Wipe
    The config file said HD_Wipe
    I used the GUI to rename HD Wipe to HD_Wipe and all worked well.

  • PXE-E32: TFTP open timeout (Isolated Network)

    Unsolved
    13
    0 Votes
    13 Posts
    2k Views
    george1421G

    @Enigma I asked a few questions in chat, but I’ll reask them here.

    Is this your fog server’s IP address? 192.168.107.200 Your dhcp server isn’t sending dhcp option values, what device is your dhcp server? Your dhcp server needs to be configured to support both bootp (values in the ethernet header that are present in the pcal) and dhcp (missing dhcp options 66 and 67).
  • Target computer doesn’t see DHCP while using proxyDHCP.

    Unsolved
    3
    0 Votes
    3 Posts
    390 Views
    george1421G

    @ArtemZ I would check to make sure your dhcp server has the fog server’s IP address in dhcp option 66. The error message is kind of telling me that.

  • Printers deleting unassigning themselves

    Unsolved
    2
    0 Votes
    2 Posts
    354 Views
    S

    @ryanlewis2010 Do I get this right? You say the printer assignment done in the FOG web UI magically vanishes after a random time (1-30 minutes)?? Sounds really strange. I don’t think I have ever seen this happen.

    The assignments are simple database entries and there is no specific FOG log you can look at I think. But you can enable MySQL/MariaDB logging and try to figure out why this is happening. Will still be hard to find out what is causing this even if you see it in the logs.

    Do you use the FOG API by any chance? Some kind of scripting to automate FOG stuff?

    If not it’s probably best to manually check the database tables on your FOG server:

    shell> mysql -u root mysql> use fog; mysql> SELECT * FROM printerAssoc WHERE paPrinterID NOT IN (SELECT pID FROM printers); mysql> SELECT * FROM printerAssoc WHERE paHostID NOT IN (SELECT hostID FROM hosts);

    The later two (select) queries should return an empty result set. If you get results it means that there are assignments still in the database for hosts or printers that do not exist anymore. While this is not a problem in general it would still be wise to clean that up.

    Now you can start looking a a certain host having printers assigned by: SELECT * FROM printerAssoc WHERE paHostID=123456 (put in the host ID you see in the FOG web UI (parameter in the URL when editing this host)

    See if the assignment is in the database compared to what you see in the web UI.

201

Online

12.4k

Users

17.4k

Topics

155.9k

Posts