Close the gaps that a fresh redeploy would have shipped

- install the QEMU guest agent from virtio-win: Proxmox provisions over
  qm guest exec, so without it every provision would hang waiting for the
  agent. virtio-win is now attached as ide3 on the Proxmox platform.
- restore the .url MIME mapping in fs01.ps1: the earlier patch silently
  missed, so a rebuilt FS01 would answer 404.3 for the easter-egg shortcut.
- kali install now builds a small tool ISO carrying the wordlist, so a
  fresh Kali is usable without network access to the host.

Audited by extracting the bundle and re-rendering the seeds: no unrendered
tokens, and every live fix is present in the generated role scripts.
This commit is contained in:
2026-10-23 00:30:40 -04:00
parent b5981dbe08
commit 7787bd5f84
5 changed files with 89 additions and 0 deletions
+20
View File
@@ -60,6 +60,26 @@ if (-not (Get-NetFirewallRule -DisplayName 'Norbourg ICMPv4' -ErrorAction Silent
-Direction Inbound -Action Allow -Profile Any | Out-Null
}
# QEMU guest agent. Proxmox provisions over `qm guest exec`, which needs it.
# virtio-win is attached as a CD on that platform; on qemu it is absent and
# this block does nothing.
try {
$virtio = Get-Volume -ErrorAction SilentlyContinue |
Where-Object { $_.FileSystemLabel -like 'virtio-win*' -and $_.DriveLetter } |
Select-Object -First 1
if ($virtio) {
$msi = "$($virtio.DriveLetter):\guest-agent\qemu-ga-x86_64.msi"
if (Test-Path $msi) {
Start-Process msiexec.exe -ArgumentList "/i `"$msi`" /qn /norestart" -Wait
Write-Host 'bootstrap: qemu guest agent installed'
} else {
Write-Host 'bootstrap: virtio-win mounted but qemu-ga msi not found'
}
}
} catch {
Write-Host "bootstrap: guest agent step skipped ($($_.Exception.Message))"
}
# RDP: useful for the instructor when a step misbehaves. This only opens the
# listener; who may log on is still governed by Remote Desktop Users.
try {