proxmox: reboot once after the install so the guest agent can connect

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.
This commit is contained in:
2026-10-26 17:23:05 -04:00
parent bcc370d70f
commit 06a9034214
3 changed files with 42 additions and 3 deletions
+2
View File
@@ -171,6 +171,8 @@ de continuer si elle ne correspond pas à la machine.
`reset` détruit la VM et la reclone depuis le gabarit : une copie de disque (quelques dizaines de secondes), pas de réinstallation.
Espace disque : le gabarit et la VM de travail sont deux copies complètes. Prévoyez le double de l'espace utilisé par les trois disques, soit environ 60 Go pour le laboratoire seul.
`reset` ne touche pas aux Kali : `./lab.sh kali reset` les recrée séparément.
### Sans accès au serveur git