Improve QEMU execution
Draft
HE
25d ago+234+234+012345678901234567890123456789-34-34-01234567890123456789
Improve error reporting from qemu execution, in preparation for conformance test failed runs.
Summary by cubic
Improves qemu-runner.sh lifecycle handling and diagnostics so a VM can be started and stopped from different shells without risking cleanup of a recycled PID. It also centralizes the test VM's SSH options and adds no-VM regression coverage.
start --state-file PATHrecords the port, key, and pidfile;stop --state-file PATHvalidates process identity before signaling and preserves state if SIGKILL fails.- Failed boots and guest
/tmpsetup now report the serial console and QEMU output before cleanup. - Both QEMU lanes share one SSH option list (their keep-alive settings had drifted), and
IdentitiesOnly=yeslimits offers to the VM key so agent-held keys can't trip the guest dropbear's 15-query cap. - Sourcing the script no longer replaces the caller's EXIT trap, and
test-qemu-runner.shcovers start/stop with stand-ins in thechecklane.
Migration
- Pass
--state-file PATHto bothstartandstopfor cross-shell use; without it,stopcannot find the VM.