@george1421 This is correct. It works fine. Thanks,
Best posts made by lperoma
-
RE: Could not mount /dev/sda3: Metadata kept in Windows cache, refused to mount.posted in FOG Problems
-
RE: Attempting to join domain: The parameter is incorrect, code = 87posted in FOG Problems
This worked for me :
Domain name: subdomain.domain.tld
OU: OU=Computers,DC=SUBDOMAIN,DC=DOMAIN,DC=TLD
AD DEFAULT USER: adminuser
Domain Password: supersecret
Name Change/AD Join Forced reboot?: chekedNot sure if I was doing anything wrong, I tried too many things, but this now works. Thanks.
-
RE: Kernel Panic - not syncing, unable to mount rootposted in FOG Problems
Is your machine trying to boot bzimage32 ? send a picture if you can.
-
RE: Could not mount /dev/sda3: Metadata kept in Windows cache, refused to mount.posted in FOG Problems
OK, looks like Disable Fast Startup in Windows solved the issue. Sorry for the noise.
Latest posts made by lperoma
-
RE: Feature request: option to run a software item only after the host has been renamed and joined to the domain (with record failed Chocolatey packages)posted in FOG Problems
Thanks Tom, that explains both. I re-ran the same test with your fixes in place.
Setup: server updated to dev-branch
4c426a799(includes #2301, schema 492). Fresh BIOS image captured with agent 0.1.38, so there was no self-update during the run. Same host (test-bios), same packageavast-business-agent1.0.0 (the name check in its script is still there).Result: software now waits for the join. All times UTC (agent log is +01:00, minus one hour).
Time Source Event 17:09:23 server Deploy task 16969 created 17:09:45 server PXE: boot.php, bzImage, init.xz 17:10:05 server Task check-in, copy starts 17:12:34 server Post_Stage3.php, copy done. softwareStatus for the host is empty (#2214 OK) 17:13:08 agent this state was made on another machine ... enrolling as this machine, host 66717:14:20 agent Service starts after the next reboot (0.1.38, no update) 17:14:26 agent directory rejoin: blocked (directory_observation_required)andsoftware: deferred; the server has not renamed this machine yet17:14:29 server POST directory/rejoin/start 17:14:30.7 AD pwdLastSet of the computer account: joined 17:14:31 agent directory rejoin: native success; Windows restart and verification pending17:14:33 agent software: deferred; a rename or domain join is waiting for its restart, thenreboot: applied (directory-rejoin...)17:14:56 agent directory rejoin: verified after Windows restart17:15:40 agent Snapin 129 (before software): exit 0, success 17:15:40 agent software: Chocolatey is missing; bootstrapping from https://community.chocolatey.org/install.ps1(done 17:15:52)17:17:28 server Feed: avast-business-agent1.0.0 downloaded17:17:45 Avast console ANTIVIRUS: INSTALLING 17:18:34 agent 7 packages installed, exit 0, outcome success(googlechrome, vlc, 7zip, avast-business-agent, qemu-virtio-driver, qemu-guest-agent, chocolateygui). The server stored all 7 rows, Avast included17:18:58 agent All 7 converged17:21:15 Avast console ANTIVIRUS: ACTIVATED Compared with the earlier run (0.1.35, before your fix), software ran twice before the join and the Avast row was missing; now software runs once, after the join, and everything is stored.
What I could not test: the Avast install succeeded, so the failure path (exit code -1 / 4294967295, your #2301) was not exercised, and the name check never had to act (the name was already final). Before I remove it I would like to test a package that fails on purpose and check that the row is stored with -1. Does that sound right?
Two small questions:
- The join block (
directory_observation_required) lasted about 5 minutes in the first run and about 6 seconds here. Is that expected, or did something change on the server side? - At 17:14:26 and 17:14:33 the log says
reconcile: a provider failed; will retry next poll. Which provider is that, and should I worry?
One observation: the image has no Chocolatey installed, so the agent bootstraps it from the public site (12 seconds). That works, but a machine with no internet access would fail there.
Thanks again for the quick fixes.
- The join block (
-
RE: Feature request: option to run a software item only after the host has been renamed and joined to the domain (with record failed Chocolatey packages)posted in FOG Problems
@Tom-Elliott
Test result with the agent log: software waits for the rename/join restart, but not while the rejoin is still blockedThanks a lot, Tom, for the quick work on this, for the agent change and for #2214. I tested it on a fresh Deploy: image captured with agent 0.1.35, server 1.6.1.59 (27a1194fb, dev-branch with #2214). The deferral works, but software still ran twice before it kicked in. Times are UTC (web server and agent logs are UTC+1 and have been converted).
14:02:30 Post_Stage3.php, deploy finished (task complete, software status list cleared by #2214) 14:02:41 PXE boot.php (reboot after imaging) 14:03:06 Agent 0.1.35 enrolls (GET enroll, identity/check 409, POST enroll 200, identity/check 200) 14:04:06 PXE boot.php (second reboot, before the domain join) 14:04:22 Agent contacts (enroll, identity/check, poll 14:04:23) 14:04:26 "Run before software" snapin downloaded; result rc 0 at 14:05:11 14:06:49 SOFTWARE PASS 1: our package downloaded from the Chocolatey feed (200) 14:07:43 8 x POST /agent/v1/result: six packages "installed", rc 0; our Avast package has no status row. Agent update payload downloaded 14:07:54 Agent is now 0.1.36, update state ok 14:08:07 SOFTWARE PASS 2: package downloaded again; at 14:08:20 the six packages are "converged", still no row for the Avast package 14:08:23 POST /fog/agent/v1/directory/rejoin/start 14:08:25 AD: computer account password set (pwdLastSet) = the domain join 14:08:39 PXE boot.php: the rename/join restart 14:08:48 AD: computer object changed (whenChanged), first boot under the new name 14:08:49 First agent contact after the restart (enroll, identity/check, poll 14:08:54) 14:09:11 SOFTWARE PASS 3 (first one after the restart): package downloaded again (200) 14:09:31 Avast console: NO_SERVICES / ANTIVIRUS: INSTALLING 14:09:37 Avast package reported "installed", rc 0 (first time it has a status row); the other six "converged" 14:10:01 Pass 4: all seven packages "converged" 14:13:17 Avast console: SAFE / ANTIVIRUS: ACTIVATED (3 min 46 s after INSTALLING)The matching agent log lines (fog-agent.log, local time +01:00):
15:04:25 directory rejoin: blocked (directory_observation_required) 15:07:42 software "avast-business-agent": installed, exit 4294967295, outcome failed, installed "" 15:07:54 directory rejoin: blocked (directory_observation_required) 15:08:19 software "avast-business-agent": installed, exit 4294967295, outcome failed, installed "" 15:08:24 directory rejoin: native success; Windows restart and verification pending 15:08:25 software: deferred; a rename or domain join is waiting for its restart 15:08:25 reboot: applied (directory-rejoin: directory rejoin needs a Windows restart, mode reboot) 15:08:54 directory rejoin: verified after Windows restart 15:09:35 software "avast-business-agent": installed, exit 0, outcome success, installed "1.0.0"What I see:
- The deferral works.
software: deferredappears right after the join, and pass 3 only ran afterdirectory rejoin: verified after Windows restart. - The gap is before the join. From enrollment (15:03) until 15:08:24 the rejoin was
blocked (directory_observation_required), so nothing was pending and software ran twice while the computer was still named INSTALACION (the image name). What is that observation, and could software also wait while a join is expected but still blocked? - The failed run was not stored. The agent logged
outcome failed(exit 4294967295) for our package in both early passes, and the 7 results were posted, but the host had only 6 software status rows, none for that package, until after the restart (point 2 of my first post is still open). - The Avast install worked, but only thanks to our own name check in the package script, which made it skip passes 1 and 2 and let pass 3 through.
- The status list was empty right after the deploy finished, so #2214 works. That one is a big help, thank you.
Happy to test a patch or send more logs.
- The deferral works.
-
Feature request: option to run a software item only after the host has been renamed and joined to the domain (with record failed Chocolatey packages)posted in FOG Problems
Hello everyone,
I would like to propose a small option on a software item (or on a group association): “run only after the host has been renamed and joined to the domain”.
Today, on a fresh deploy, the agent enrolls, runs the snapins and then runs the Chocolatey software module, and only after that does it rename the host and join it to the domain, which ends in a reboot. That order is fine for Chrome or VLC. It is a problem for installers that do their real work in a second stage after the first one returns. Our case is the Avast Business agent: the MSI returns 0 in about ten seconds, but the antivirus itself is downloaded and installed afterwards, over the next few minutes. If the join reboot lands in the middle, the install can be left half done, and from FOG’s side everything looks fine because the Chocolatey package reported success.
What we do today is a workaround inside the package script: if the computer name is still the image name, the script throws on purpose, so nothing gets installed, and then we rely on FOG running the software again after the reboot. It works, but it has some rough edges that a native option would remove:
-
When the script throws, the software status row for that host is not updated. It keeps the old state (
convergedfrom a previous run), so the web UI never shows that the package failed. We only knew from the host itself. -
We had to rely on the retry. By watching the web server log we saw that after each boot the agent runs the Chocolatey module about four times, roughly a minute apart, and then not again for hours (we saw passes about every six hours). So if the retry after the join reboot is missed, the next chance is a long way off.
-
The software status list of the host survives a new deploy. When an image is deployed, pending tasks such as snapins are cleared, but the old software status rows stay, so a freshly cloned host still shows software as
convergedorinstalledfrom the previous install. That is also why a failed package could not be told apart from an old success. The machine is new after a deploy, so that list should not be kept. -
We first tried to detect “not joined yet” with the domain membership, but that does not work: the agent renames the host and joins the domain in the same step, and both only become effective after the reboot, so right before it Windows already reports the host as part of the domain while it still has the image name. The host name was the only reliable signal.
So the request would be, in order of importance:
-
An option per software item (or per group) to defer it until after the rename/join reboot.
-
Recording a failed Chocolatey run in the software status (failed, with the output), instead of leaving the previous status.
-
Clearing the host’s software status list when a deploy finishes, the same way pending snapin tasks are cleared, since the machine is new.
I am not sure the ordering is the only thing behind our Avast problem, since we also had a separate crash of the vendor installer that seems unrelated, so I am only asking for the generic behavior, which would help with any installer that continues working after it returns.
Happy to share logs or test a patch if it helps. Thanks!
-
-
"Join" column empty after reimage + rejoinposted in FOG Problems
Morning all.
Small reporting inconsistency in Reports > Directory Membership (FOG 1.6.0.158 stable, agent 0.1.28, AD join). Cosmetic, nothing breaks.
The “Join” column comes from
hdJoinAt. InDirectory_Membership::join()an emptyhdJoinAtwith no error is shown as empty, and the code comment says “Never attempted: the host is already joined, or it has never reported, or nothing has needed doing. Not a problem.”But a host that was reimaged and joined through the rejoin protocol (the result carries an
attempt_id, soDirectoryJoin::report()hands it toDirectoryRejoin::report()) never getshdJoinAtwritten. On top of that,TaskQueue::checkout()callsDirectoryJoin::forgetAttempt()when a Deploy completes, which setshdJoinAtback to NULL. So after every reinstall the host ends up like this:hdJoined=1,hdDomaincorrect, Drift “ok”,hdRejoinStatephaseverifiedhdJoinAtNULL,hdJoinErrorempty, so “Join” is blank
In our case two test VMs that we reinstall many times show a blank “Join” even though they joined correctly and automatically, while hosts joined with the older path (or by hand before) show “ok”. Looking at the report you can’t tell the two cases apart, and a blank reads as “never joined”.
I checked the unpatched
DirectoryRejoin.php(before our local #2122 patch) and it has nojoinAteither, so it is not caused by that.Thanks for the help.
-
RE: A reimaged host stays stuck on an old directory join plan ("marker absent; automatic retry refused")posted in FOG Problems
Thanks Tom, I tested #2122 and it does what you described.
I applied the two
srcfiles of the PR by hand on top of thepatcheschannel (schema 465, agent 0.1.28) and reproduced the same situation with test-bios. First Deploy (16928): the agent asked for the directory join and the plan went toawaiting_reboot(attempt12f448e3…,trigger_task_id16928). Before it rebooted I powered the VM off and queued a second Deploy (16929), which completed normally. The agent enrolled by itself after that (rebind, approved via deploy).For a while the old plan was still in
hdRejoinState, stillawaiting_rebootwith trigger 16928, so right after queuing the Deploy nothing had changed. Once the machine booted the new Windows and the agent checked in, FOG replaced it on its own. A minute later there was a new attempt (3e64f53…, trigger 16929,awaiting_reboot). I didn’t touch “Clear directory operation review” or edit anything in the database. After one reboot the host wasverified,hdJoined=1,hdKind=ad,secure_channel: healthy.So the old attempt is dropped after the new Deploy and the first boot, not at the moment the Deploy is created, which matches what you wrote. It only looks odd if you check the host in between and still see the old plan. No problem on my side, just mentioning it in case anyone else notices the same thing.
One idea, only if you think it’s worth it: a checkbox in the Deploy task form, something like “discard every pending task of this host”, unchecked by default. The automatic rules are safer for the normal case, but sometimes the admin knows everything left over from the previous install is dead (queued tasks, snapins, a pending directory join) and wants to force a clean start right when the Deploy is queued, without waiting for the first boot and without the “Clear directory operation review” box. In our case, when a machine misbehaves it often keeps snapin tasks queued, and today you have to open the host, work out which tasks it has and delete them one by one. In a big fleet that is slow and easy to get wrong, whereas one box on the Deploy would clean the slate in a single step.
I’ll drop my manual patch when #2122 reaches
patches. -
A reimaged host stays stuck on an old directory join plan ("marker absent; automatic retry refused")posted in FOG Problems
Hi Tom and everyone,
First, thanks for the quick work on the shared adapter and enrollment issues. I tested #2116/#2118 today and enrollment behaves now. While doing that I hit something else with the directory join that I think is worth a thread of its own.
Setup: FOG 1.6.0.158 stable moved today to the patches channel (schema 465, so it includes #2111, #2112, #2113, #2116 and #2118). Two Proxmox VMs (test-uefi and test-bios) deployed from the same image, whose source machine already has agent 0.1.28. Both hosts are set to join AD and both had been deployed once before today.
After the second Deploy, test-bios joined the domain without any trouble. test-uefi never did. It kept the Windows name “instalacion”, stayed in the workgroup, and installed its software normally (Chrome, VLC, 7-Zip and Avast, before the activation snapin, which is the order we wanted). The agent log shows this every minute, and nothing else about the directory:
2026-11-20T19:24:29+01:00 this state was made on another machine (a cloned or reimaged disk); generated a new key and enrolling as this machine 2026-11-20T19:24:29+01:00 enrolled as host 666, certificate valid until 2027-11-20 18:24:29 2026-11-20T19:26:01+01:00 facts: sending inventory=true software=6 directory=true printers=4 network=1 2026-11-20T19:26:04+01:00 directory rejoin: directory rejoin marker absent; automatic retry refused 2026-11-20T19:28:55+01:00 directory rejoin: directory rejoin marker absent; automatic retry refusedSo the very first directory poll after the reimage was already refused. On the server,
hostDirectory.hdRejoinStatefor that host had this (trimmed):"phase":"awaiting_reboot", "attempt_id":"add87a0f...", "trigger_task_id":16923, "last_deploy_task_id":16923, "retry_authorized":false, "placement_hold":trueThe Deploy that had just reimaged the machine was task 16927, newer than 16923, but it did not replace that plan. The computer account was fine in AD (it existed and belonged to the account FOG uses to join), so it was not an account problem.
Reading the code, this looks like the intended protection:
PROTECTED_PHASESis started, awaiting_reboot, unknown and failed, and only a plan inreadyis dropped when a newer Deploy arrives (dropSupersededPlan, reasondirectory_task_superseded). That makes sense for the old disk, where the join may really have happened. But after a Deploy the old disk is gone. The plan waits for a local marker and a reboot that can no longer exist, the new install has no marker, so the agent refuses, and the server keeps waiting for the agent. Neither side ever gives up.What happened to this host before is simple: it had a join plan pending that never actually ran, I reinstalled it, and it got stuck on that old plan. I can’t show you the log of the earlier install, because the reimage overwrote it, so the odd part is that the stored state says awaiting_reboot for something that, as far as I know, was never executed. test-bios did not get stuck, and its previous plan had ended in “verified”.
The way out is the “Clear directory operation review” checkbox, and here is where I got a second surprise.
clearReview()writes a new state withlast_deploy_task_idset to the latest Deploy and dropsworkgroupandobservation. As far as I can tell, with the Deploy counted as already used and no workgroup flag, nothing gets planned afterwards. On a real PC earlier today, ticking the box left the host with no plan at all. I added"workgroup":trueby hand and FOG did plan a join, but that agent never ran it and I joined the machine manually.For test-uefi I wrote the cleared state by hand instead:
reason: operator_cleared,workgroup: true, andlast_deploy_task_idset to the previous Deploy (16923), so that 16927 was still pending. On the next poll FOG created a new plan (ready, trigger 16927), the agent ran it (awaiting_reboot, no error), and after a reboot it went toverifiedwith the host joined. So the join itself works, and only the stuck state was the problem.What I would suggest, if you agree:
- A new Deploy for a host should clear everything that was pending for the previous installation: queued tasks, snapin tasks and directory join plans, not only plans in
ready. This includes plans in started, awaiting_reboot, unknown and failed, because they refer to a disk that has been replaced. Whatever the Deploy itself creates (for example the snapins attached to it) would of course stay. I only checked the join plans; I have not tested what happens to old queued tasks and snapins when a Deploy is created, so please take that part as a suggestion. - The review checkbox should keep
workgroupandobservation, and should not mark the latest Deploy as used, so the next poll can plan the join again. - When the agent says “marker absent; automatic retry refused”, the host’s Active Directory panel could say that this needs the checkbox. Right now the only hint is in the agent log on the machine.
Open question on my side: I don’t know why that first plan was in awaiting_reboot if it never ran. If there is something I should capture the next time (agent log before reimaging, a particular field of the state), tell me and I will.
Thanks!
- A new Deploy for a host should clear everything that was pending for the previous installation: queued tasks, snapin tasks and directory join plans, not only plans in
-
RE: Feature request: a way to handle USB Ethernet adapters shared between many hostsposted in Feature Request
Hi Tom, thanks again for the shared-adapter work.
We hit a case with the new agent that your replies in this thread don’t spell out, and while reproducing it we found a few more things, so here are the details.
Setup: FOG 1.6.0.158 stable with #2100, #2104 and #2111 applied by hand,
FOG_HOST_IDENTIFY_SMBIOS=register, agent 0.1.24, Windows 10 IoT LTSC images, HP laptops that boot from the shared USB-C Ethernet adapter.What worked yesterday and what doesn’t today: yesterday, with #2104 and #2111 already applied, we tested two VMs with a duplicated MAC and FOG handled it fine at PXE (
register, firmware first). Today, when we reinstall hosts whose firmware is already registered, it is the agent’s enrollment that fails when a MAC belongs to another host.The laptop that could never enroll
The laptop’s host has a full inventory (system serial, UUID, board serial), and no other host has any of those values. Boot worked: PXE identified it correctly through the shared adapter, since in
registera unique firmware match wins over the MAC. But the agent tried to enroll every 5 minutes and always gotHTTP 409 with status "error", 16 times in a row. Each attempt left this infaults-web.log:Database save failed: Class: AgentEnrollment ... SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fog`.`agentEnrollment`, CONSTRAINT `fk_agentEnrollment_aeHostID` FOREIGN KEY (`aeHostID`) REFERENCES `hosts` (`hostID`) ON DELETE CASCADE)The agent sends two MACs: the shared adapter’s, still stored on another laptop’s host, and one of its own that no host had. Reading the code,
MachineIdentity::choose()returnsconflictwithhost_id0 when the firmware points to one host and a MAC points to a different one.Enrollment::enroll()then sets the reason toconflictand saves the row withhostID0, which doesn’t exist inhosts, so the foreign key fails and nothing is stored. Nothing shows up in All Pending Agents, so the admin never sees it. The agent enrollment code only checks whether the setting isoff, soregisterandenforcemake no difference there.We worked around it by deleting the adapter’s MAC from the other host. The very next attempt enrolled fine (
known-host-no-agent).Reproducing it with a VM
We gave a VM the MAC of another VM’s host (approved,
hmPending=0). Its firmware UUID names its own host. This time the conflict was stored: All Pending Agents shows it asidentity-conflict(the enroll got a 202) and the agent logs:directory rejoin: this machine's MAC addresses or SMBIOS identity match more than one FOG host; ... this state was made on another machine (a cloned or reimaged disk); generated a new key and enrolling as this machine pending approval on the server (identity-conflict); waitingThat row has no
_directoryIdentity. After the agent restarted, every enroll gotHTTP 409 with status "error"again, but with no database error infaults-web.log. We approved the pending row, restarted the VM, and the agent still gets 409 while the row staysissuedwith its certificate uncollected. As far as we can tell fromMachineIdentity::enrollmentGate(), it returnsupgrade_blocked: the stored row doesn’t have_directoryIdentityand the new request declares it, and that check runs before the row’s state is looked at. We haven’t confirmed that part on the agent side.So the same mismatch seems to end in two different 409 loops. If the agent declares the directory-identity feature from its first contact (the laptop, whose rows all have
{"required": true}), the conflict goes throughMachineIdentity::resolve()and ends with host 0 and the foreign key error. If it doesn’t declare it at the first contact (the VM), the conflict is stored, but the agent is locked out as soon as it starts declaring it, even after the admin approves.What we expected
A shared MAC shouldn’t be a conflict at all when the firmware identifies a different machine, which is what
enforce/registeralready do at boot. So:- Could agent enrollment follow the same rule as boot, so that a unique firmware match wins over the MAC?
- If a conflict is meant to apply there anyway, the row should be saved with the host the firmware matched (or none) instead of host 0, so it doesn’t fail on the foreign key.
- All Pending Agents only shows the Windows name, the reason, the IP and the UUID. It would help to show which host the conflict is with, so the admin can tell it’s another machine before approving.
- Approving a conflict should let the agent collect its certificate, even if the stored row was created before the agent started declaring the feature.
Happy to send full log lines or test a patch. We’re posting a second, unrelated problem (the “Clear directory operation review” button leaving a host unable to join) separately.
-
RE: FOG 1.6 – Dependencies between Software Management and Snapins?posted in FOG Problems
Thanks Tom, this is useful for us too. We use the same modules, and we have the opposite constraint to the one in the first post. We haven’t hit it yet (our hosts are still on 0.1.24, and we’ll test 0.1.26 on a VM first), but it follows directly from the new order.
Our setup
- One group with Chocolatey packages, including Avast Business (its own package generated by us).
- In the same group, one snapin run with
powershell.exethat checks the Windows activation.
What we expect
- Once Avast is installed it generally blocks PowerShell on our machines, so PowerShell snapins stop working.
- Until now the snapin ran first and the software after, so they never collided. With software always before snapins, the Avast package may install first and block the snapin.
Two suggestions, both as a per-snapin flag on the group’s snapin grant (so only the snapins that need it are affected, and other groups behave as today):
- Run before software. A flag on a snapin granted by a group, to run it before the host’s software instead of after.
- Run when a host joins the group. Today a group’s snapins are only used when a task is created (Deploy, Single Snapin, All Snapins). Software is applied as soon as a host is in the group; it would be handy for such a flagged snapin to be queued once when a host joins, if the host never completed it before.
Both default to off, so nothing changes for anyone who doesn’t set them. We’re happy to test any patch on our server.
-
RE: Feature request: a way to handle USB Ethernet adapters shared between many hostsposted in Feature Request
Quick update: we’ve tested PR #2111 and it works perfectly for us.
Setup
- We also updated from 1.6.0.14 to 1.6.0.158 (stable).
- On top of it we applied #2100, #2104 and #2111 by hand (we skipped the schema 462 step, since it only changes a setting description).
FOG_HOST_IDENTIFY_SMBIOSis set toregister.
Test (two Proxmox VMs)
We moved the MAC of an already registered host onto a different machine. The machine with the different serial was not taken for the registered host: it booted as unregistered and registered as a new host, and the original host kept its MAC. Exactly the shared USB adapter case from this thread.
Real laptops with the shared adapter are the next step, and I’ll report back if anything behaves differently. We’ll switch to the stable release on December 11.
Thanks, Tom, this solves our problem.
-
RE: Feature request: a way to handle USB Ethernet adapters shared between many hostsposted in Feature Request
Thanks for #2104. The case that is still open for us is PXE registration and the PXE menu.
A new laptop (not in FOG) boots through the shared USB adapter whose MAC is still on another host Y. Its firmware matches no host, so FOG falls back to the MAC and answers “This machine already registered as Y”.
Could the identification order be simply this? Always check UUID and serial first. Use the MAC only when the machine reports no usable firmware data (empty or placeholder values). If it does report firmware data and it matches no host, it is a new machine: offer registration, without moving any MAC and without giving the new host the adapter’s MAC.
It could be a new value of
FOG_HOST_IDENTIFY_SMBIOSsoenforcestays as it is.We understand that iPXE already sends the UUID and serial numbers with every PXE request (
sysuuid,sysserial,mbserial), also when booting through a USB adapter, since the firmware is read from the laptop and not from the NIC. Please correct us if that is wrong for registration.In our case the laptops that boot only through a USB adapter are recent and always report UUID and serial.
Happy to test a patch.