Repository navigation
fix(vm): free a VM's SSH port before it boots - #168
Merged
Merged
Conversation
A QEMU the harness lost track of kept the port, so every later boot of that VM failed. Kill it when this checkout started it; otherwise name the pid that holds the port. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#161's VM suite failed this way on .66. A VM 1 boot ran past the login wait, and the harness lost track of its QEMU, which kept SSH port 2720. Every later VM 1 boot then failed with "Could not set up host forwarding rule".
Before each boot, the harness now checks the port. A QEMU for this VM from this checkout's runtime is killed. Anything else holding the port fails the boot with its pid and command line.
Tested on .66 in a separate checkout on port 3522:
python3 -m http.serveron the port, the boot fails and names that pid.🤖 Generated with Claude Code