[Low] QEMU Provision leaks the VM workdir on waitForQEMUPID / waitForSSHPort failure (latent — QEMUManager currently unwired)
Report
Summary
On waitForQEMUPID failure, QEMUManager.Provision kills the QEMU process and returns without removing the VM workdir. On waitForSSHPort failure, same. Every earlier failure path in the same function (seed ISO, qcow2 overlay, OVMF vars, qemu start) calls os.RemoveAll(workDir). Each failed provision at these stages leaks a workdir (seed.iso, user-data, meta-data, guest.qcow2 overlay, OVMF_VARS.fd, serial.log, qemu.pid); repeated failures accumulate disk usage. The killed VM is also untracked (never entered m.vms).
Root Cause
vm/qemu_manager.go:235-247: the waitForQEMUPID failure path (killQEMUByName(name) then return) and the waitForSSHPort failure path (killQEMU(pid) then return) both lack the os.RemoveAll(workDir) call that the qemu-start failure path (just above) has.
Impact
Disk accumulation from repeated failed provisions. Latent: QEMUManager has no production caller -- the provider path wires only Lima (or Mock with XE_VM_MOCK=1); repo-wide grep finds no NewQEMUManager callers outside vm/. Same standing as #655 (binary codec, accepted as Minor).
Verification
Source-level at HEAD 8cc209d (testnet-0006).
Suggested fix
Add _ = os.RemoveAll(workDir) to both failure paths, matching the earlier paths.
Thread
Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the first verifiable submission, so this one closes as a duplicate. If you believe it is a different bug, file a new report that links https://bounty.xe.network/XE-16759 and says what differs; it is read like any other.