• Dev-branch version string mismatch: 1.6.0.402 vs 1.6.1.402

    Solved Bug Reports
    3
    0 Votes
    3 Posts
    37 Views
    F

    @Tom-Elliott Awesome. All set. Thanks

  • FOG 1.6.1 Available

    Announcements
    1
    0 Votes
    1 Posts
    24 Views
    No one has replied
  • Imaging Log for unregistered hosts

    Feature Request
    4
    0 Votes
    4 Posts
    2k Views
    Tom ElliottT

    @DBCountMan Both parts of this are planned for FOG 1.6.1. They are not in 1.5.x, so you will need to upgrade to 1.6 to get them.

    Imaging log for unregistered hosts

    A deploy or a multicast join from the iPXE menu on an unregistered (or pending) host now creates a real task. That task:

    shows in Active Tasks with full progress, like a registered host, under the name <MAC> (unregistered) records the menu user who started it, so you can see who deployed appears in Reports > Imaging Log with the MAC address, the image, the user, and the result

    This needs the FOS (init) that ships alongside 1.6.1. The installer pulls the latest FOS. With an older init the imaging still works, but the task never gets a report back, and it closes as “No Report” after 24 hours.

    Forcing registration before a deploy

    Go to FOG Configuration > iPXE Menu, then open “Deploy Image” and “Join Multicast Session”. Set “Menu Show with” to “Registered Hosts”. Before this change, that setting only hid the menu item. In 1.6.1 the server also refuses the deploy or join for an unregistered host, so someone cannot get around it by calling the menu option directly.

    Also in 1.6.1: when you pick “deploy image now” during Full Registration, the machine images in the same boot. It no longer reboots back through PXE first.

  • Avoid running tasks when in audit mode

    Feature Request
    7
    0 Votes
    7 Posts
    4k Views
    Tom ElliottT

    @AlexisPHC Following up on this one. FOG 1.6 ships with the new FOG Agent, which replaces the legacy FOG Client. From agent version 0.1.23, the agent reads HKLM\SYSTEM\Setup\State\ImageState and does nothing until Windows setup reports itself complete. That includes audit mode. A machine in audit mode does not enroll, check in, join the domain, run snapins, or reboot. You can leave the service enabled through Sysprep. You no longer need to disable it or start it from SetupComplete.cmd.

    The legacy FOG Client does not have this check. With the legacy client, disable the service as described earlier on.

    Details: https://docs.fogproject.org/en/latest/installation/client/install-fog-agent/#sysprep

  • 1 Votes
    2 Posts
    1k Views
    Tom ElliottT

    @takeit FOG 1.6.0 can do this. A booting machine is matched on its SMBIOS identity as well as its MAC: system UUID, system serial, board serial, and chassis asset tag.

    It is controlled by one setting: FOG Configuration > FOG Settings > General Settings > FOG_HOST_IDENTIFY_SMBIOS.

    Off: MAC only, the old behavior. Log (the default): the MAC still decides. Every disagreement between the MAC and the firmware is written to the web server error log. Enforce: a unique firmware match wins over the MAC.

    For your case (one laptop, a different dongle each time):

    Upgrade to 1.6.0. Make sure each laptop has an inventory record. A full registration or an inventory task captures the SMBIOS values. Leave the setting on Log for a while and read the error log. Some firmware reports junk identifiers, for example every board of a model with the UUID FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF. A value that is not unique is not used for matching, but it is good to know what your hardware reports. Switch to Enforce. A laptop that boots on an unknown dongle MAC then resolves to its existing host by its firmware identity.

    If you share one dongle between many laptops (the opposite case), the next release adds a Register mode for that. It is on dev-branch now.

  • Certificate manament helper not working

    Unsolved FOG Problems
    3
    0 Votes
    3 Posts
    70 Views
    A

    @Tom-Elliott Perfect, thanks again!

  • Services failing to start

    Unsolved FOG Problems
    5
    0 Votes
    5 Posts
    99 Views
    A

    @Tom-Elliott Thank you!

  • AD join problems

    Unsolved FOG Problems
    8
    0 Votes
    8 Posts
    180 Views
    A

    @Tom-Elliott I ran that and as soon as the agent checked in it joined the domain.

    So I guess I’m waiting for the next release.

    Thanks for the help 🙂

  • 0 Votes
    2 Posts
    49 Views
    Tom ElliottT

    @MrJohnson Thanks for the detailed report. We have no known issue with the Framework 16 or Ryzen 7040. The OVMF result shows that your server, bzImage and init.xz are good.

    “No output, even with earlyprintk=efi” has two possible causes:

    The kernel never starts. The hang is in the firmware or in the handoff from iPXE. The kernel starts, but nothing reaches the screen. FOS then also fails on the network, so it looks like a hang.

    The fixes for these are different, so please split them first.

    Test 1: does the kernel run? Set the host kernel arguments to:

    panic=10 init=/nonexistent

    If the kernel runs, it cannot find that init, panics, and reboots by itself after about 10 seconds. This works with a black screen. If the laptop reboots, the kernel runs and the problem is the display. If the cursor blinks forever, the kernel hangs before it starts init. Remove the arguments after the test.

    Test 2: no change needed. Look in the UniFi DHCP log for MAC 9c:bf:0d:00:83:97 after the iPXE request. FOS sends its own DHCP request after the kernel boots. A second request means the kernel booted.

    About irqpoll: FOG adds it for every host, and there is no per-host way to remove it now. It can only matter if Test 1 does not reboot. If that happens, tell us, and we will give you a way to boot without it.

    Please post the result of both tests, and we will go from there.

  • iPXE boot doing nothing after update to 1.6.0.158

    Unsolved FOG Problems
    6
    0 Votes
    6 Posts
    119 Views
    M

    @Tom-Elliott Oh thank you, yes I edited the new file and didn’t notice that typo. Sorry for the confusion.

  • 0 Votes
    2 Posts
    93 Views
    Tom ElliottT

    @sgennadi Thanks, this is a good catch. The installer did not check PHP at all. The only check ran on the first web request, after the upgrade was already done.

    This is now fixed on dev-branch: https://github.com/FOGProject/fogproject/pull/2154

    After the packages install, and before FOG copies any file or touches the database, the installer now:

    stops if the PHP CLI is below FOG’s minimum (PHP 7.4). It reads that number from the FOG code it is installing, so it cannot drift. stops if no PHP-FPM of the same version as the CLI is installed. A third-party repository can give you a CLI of 8.5 and an FPM of 8.4, and the web UI runs on FPM. warns about a missing PHP extension that FOG uses.

    When it stops, your current install is unchanged. --skip-php-check lets you continue anyway.

    You get it with your next dev-branch update. The docs are here: https://docs.fogproject.org/1.6/installation/server/command-line-options

    If your login breaks again after an update, please post the output of php -v, php-fpm -v (or php-fpm8.x -v), and the last lines of the PHP-FPM error log. That tells us whether it is PHP or a bug in the new code.

  • Kea DHCPv6 / IPv6 PXE

    Feature Request
    3
  • Upgrade to 1.6.0.158 fails with mysql 8.4.13

    Unsolved FOG Problems
    7
    0 Votes
    7 Posts
    178 Views
    M

    @Tom-Elliott Thanks for the detailed reply. That does seem overkill for my needs but I’ll bookmark this for later reading.

  • 0 Votes
    5 Posts
    212 Views
    Tom ElliottT

    @DBailey635 Good questions.

    Release: waiting for stable is sensible. The stable channel gets a release on the 11th of each month, and this feature is in the next one, on December 11.

    Check-ins: both OSes share one host and one hostname. The host list shows the most recent check-in from either OS. The host’s edit page lists each OS on its own line, with its agent version, last check-in, and certificate expiry. So you can see when Windows and Linux each last checked in.

    Separate hostnames for the domain join: not today. FOG applies the host’s one name to every OS, and the domain join follows the Windows install. A per-OS suffix (host01-win / host01-lnx) is a reasonable feature request. It needs a second computer account per machine, so it is not a small change.

    Deploy window: the default is 24 hours after FOG completes a deploy to the host. You can change it in FOG Configuration > FOG Settings > General Settings > FOG_AGENT_ENROLL_DEPLOY_WINDOW (in hours). A longer window does work, but for that whole time any machine that presents that host’s identity enrolls with no approval. For an OS that first boots months later, two better routes:

    Approve it when it shows up. The second OS waits in pending agents until you approve it, and it keeps retrying, so a student’s first boot just queues it. Put an agent enrollment token in the Linux image’s agent install (--token). Give the token enough uses and an expiry past the point where the course switches OS. The agent then enrolls on its first boot, whenever that is, without an approval click.

    No need to walk the room after imaging.

  • 0 Votes
    3 Posts
    129 Views
    Tom ElliottT

    @sgennadi One addition: the installer now also moves FOG_WEB_HOST the same way as FOG_TFTP_HOST. It changes the value only when it still holds the old address. A host name you set there stays.

    This matters because iPXE builds every boot URL after boot.php from FOG_WEB_HOST, and the FOG client uses it as the server address. Before this change, a server on plain HTTP netboot kept the old address there after a move.

    This change is in review now (#2137). It reaches dev-branch when that merges, and stable with the next stable release.

  • 0 Votes
    5 Posts
    182 Views
    Tom ElliottT

    @lperoma The snapin fix is in, in two parts.

    https://github.com/FOGProject/fogproject/pull/2127 (merged)

    Every Deploy, on a single host or a group, now cancels the host’s leftover snapins and snapin tasks when it is queued. This includes Multicast. A Deploy with snapins starts a fresh snapin job. It no longer adds to the old one. A Capture refuses to start while the host has queued snapins, with this message: “Host has queued snapins. Let them finish, or cancel them, before a capture.” The Capture task has a new Cancel queued snapins first option. Tick it, and FOG cancels the snapins and starts the Capture. In the API, send cancelSnapins in the task body. A task that is refused for any reason cancels nothing.

    https://github.com/FOGProject/fogproject/pull/2134 (in review)

    A scheduled Capture keeps the Cancel queued snapins first option, so it behaves the same as an instant one. Without this, a scheduled Capture on a host with stuck snapins would never run. Captures that are already scheduled get the option turned on during the upgrade, because that is how a Capture behaved when they were scheduled.

    Both are on the dev-branch (patches) channel. They will be in the next 1.6 release. The docs are updated too:

    https://docs.fogproject.org/en/latest/management/web/tasks/#queued-snapins-deploy-and-capture https://docs.fogproject.org/en/latest/kb/troubleshooting/snapin-queued-capture-refused/
  • "Join" column empty after reimage + rejoin

    Unsolved FOG Problems
    2
    0 Votes
    2 Posts
    81 Views
    Tom ElliottT

    @lperoma Thanks, your analysis is correct. A join through the rejoin protocol records its result in hdRejoinState, and the Join column read only hdJoinAt. So a reimaged host that joined correctly showed a blank cell.

    The fix is in https://github.com/FOGProject/fogproject/pull/2125. The Join column now also reads the rejoin result and labels it: “ok (rejoin)”, “rejoin failed”, “rejoin awaiting reboot” or “rejoin result unknown”. A plain join still shows “ok” or its error, so you can tell the two paths apart. Whichever result is newer is the one shown.

    It is merged to dev-branch now, and it reaches stable with the next stable merge.

  • 0 Votes
    2 Posts
    66 Views
    Tom ElliottT

    @sgennadi Thanks for the report. The installer read lsb_release for a value that nothing used. That step is now removed on dev-branch (https://github.com/FOGProject/fogproject/pull/2124). Update to the latest dev-branch and the message is gone. You do not need EPEL or lsb_release for FOG.

  • 0 Votes
    14 Posts
    427 Views
    Tom ElliottT

    @lperoma Thanks for the detail. There are two server fixes and one agent fix.

    Please update instead of copying files this time. This fix changes the database (schema step 465), and the code depends on it. Copied files without that step make enrollment saves fail in a new way. Your server is also now several changes past 1.6.0.158. Run the updater on the patches channel. It installs the files and runs the schema update together. Or wait for the stable release on December 11.

    Server (FOG PRs #2116 and #2118):

    Agent enrollment now follows the boot rule for a shared adapter. The firmware names one host, and the adapter’s MAC is on another host. If that other host’s stored serial differs from the reported serial, the firmware’s host wins. Your laptop then enrolls as its own host, with the normal “known-host-no-agent” reason. The firmware host must match the serial too. A copied UUID alone never wins over a MAC. Any other disagreement stays an identity conflict. The row is now saved with no host, instead of host 0, so the foreign key no longer refuses it. The agent gets “pending”, not 409, and the row shows in All Pending Agents. For a conflict, All Pending Agents now shows which other host has the MAC. After you remove the cause (for example the stray MAC), the next agent poll binds the request to the right host. Then you approve it. A conflict is never approved automatically, not by a token and not by a recent deploy (#2118 closes this for older agents too).

    Agent (fog-agent PR FOGProject/fog-agent#52): a key whose first request went in without the directory feature cannot add the feature later. That is deliberate on the server. The agent now makes a new key once when the server answers enrollment_upgrade_requires_new_key, and enrolls again. This is in agent v0.1.28. Agents update to it on their own.

  • 0 Votes
    6 Posts
    183 Views
    M

    @Tom-Elliott I checked again. I was mistaken; FOG 1.5 was not affected. Thanks again for the help.