The recursive search returned vioserial/2k12 first (alphabetical), and
pnputil rejects it on Server 2022 with -536870325. The agent MSI installed
fine (exit 0) but never had a channel. Pick the folder from the OS build
and fall back through the other amd64 builds until one succeeds.
The agent MSI was installed at first logon, before the virtio-serial port
existed. The service started without a channel and Proxmox kept reporting
"guest agent is not running", which blocked provisioning at backend_ready.
- backend_finalize now waits for the first-logon bootstrap to finish
(stamp.txt over SMB, which does not need the agent), detaches the
installer ISO, reboots the VM once and waits for the agent to answer.
- bootstrap logs the pnputil and msiexec exit codes, so bootstrap.log says
exactly what happened if it still fails.
- check requires smbclient (site sync + finalize) and python3.
- instructor guide: snapshot doubles disk usage, plan ~60 GB.
Get-Volume only returns a label when the image carries one; when it did
not, the whole block was skipped and neither vioser nor the agent was
installed. Probe the drives for guest-agent/qemu-ga-x86_64.msi instead.
qemu-ga-x86_64.msi installs the service but not vioserial. The service then
starts without a channel and Proxmox reports "guest agent is not running",
so provisioning never gets past backend_ready. Install vioser.inf from the
virtio CD first, then enable and start the service.
A from-scratch rebuild surfaced three defects that only appear on a clean
deployment:
- dc01-post: `Set-ADObject -Identity <sAMAccountName>` raises
ADIdentityNotFoundException even right after New-ADUser, so resolve the
DN once and reuse it. The stage aborted before DNS, flags, DHCP and the
audit policy, leaving a half-built domain.
- bootstrap ran the role script at first boot while `provision` also ran
it. fs01 tried to join a domain that did not exist yet, and dc01 ran two
promotions concurrently; the loser wrote "FAIL Stream was not readable".
Roles are now only started by the harness, which orders them.
- fs01: the `.url` MIME existence test read the staticContent element
(-Name '.') instead of its collection, so any re-run died on a duplicate
entry. Test -Name 'collection'.
Every stage now takes a PID-based lock: a duplicate start exits instead of
racing the real one.
Validated on a fresh build: doctor 0 warnings, and the full path
(site -> SMB -> AS-REP -> Kerberoast -> WinRM -> ACL -> replication ->
DCSync) reproduces.
session1/ now holds the whole live lab (content, platforms, docs, answer key,
README); session2/ keeps the design for the second workshop. The root README
indexes both and states that session2 modifies session1 rather than
duplicating it.
build-bundle.sh builds from session1 and still produces a flat archive, so
the documented paths inside a deployment (platforms/<p>/lab.sh) are
unchanged. .gitignore follows the move.