Skip to content

fix: stop VNC proxy before restoring disks - #40

Merged
CMGS merged 2 commits into
masterfrom
codex/fix-restore-vnc-proxy
Sep 3, 2026
Merged

fix: stop VNC proxy before restoring disks#40
CMGS merged 2 commits into
masterfrom
codex/fix-restore-vnc-proxy

Conversation

@CMGS

@CMGS CMGS commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • stop the detached VNC proxy immediately after a forced restore terminates QEMU
  • preserve the VNC display and in-memory password for the subsequent relaunch

Why

A running CNI VM restored with --force --vnc-password could return on a record-save, snapshot-validation, or snapshot-apply failure before launch reaped the old proxy. The host listener then remained alive even though QEMU was stopped.

The cleanup now happens at the QEMU termination boundary. A successful relaunch keeps the same behavior, and its existing cleanup remains an idempotent no-op.

Validation

  • full static review of the restore and VNC proxy call paths
  • git diff --check
  • lint, unit tests, and builds not run per the requested source-only boundary; repository CI remains authoritative

@CMGS
CMGS merged commit 79aaf4c into master Sep 3, 2026
3 checks passed
@CMGS
CMGS deleted the codex/fix-restore-vnc-proxy branch September 3, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant