Skip to content

Add Windows guest control and ConPTY - #431

Draft
sjmiller609 wants to merge 3 commits into
hypeship/windows-imagesfrom
hypeship/windows-guest-control
Draft

Add Windows guest control and ConPTY#431
sjmiller609 wants to merge 3 commits into
hypeship/windows-imagesfrom
hypeship/windows-guest-control

Conversation

@sjmiller609

@sjmiller609 sjmiller609 commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

summary

  • cross-compile the guest agent as a Windows LocalSystem service
  • listen on the virtio-win VioSock provider and retain port 2222 protocol compatibility
  • add SYSTEM and active desktop execution sessions
  • add ConPTY terminal allocation and resize handling
  • support Windows file copy, stat, readiness, and graceful shutdown
  • promote Windows instances to Running when guest-agent readiness is proven
  • keep Linux guest-agent behavior and lifecycle tests unchanged

tests

  • GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go test -c ./lib/system/guest_agent
  • go test ./lib/system/guest_agent ./lib/guest
  • go test -run 'TestHydrateBootMarkersUsesWindowsGuestAgentAsBootMarker|TestValidateWindowsCreate|TestRejectWindowsSnapshotLifecycle' ./lib/instances
  • CI=true HYPEMAN_WINDOWS_TEST_AGENT_PERSONA=/ci/windows/persona-agent.qcow2 go test -run TestWindowsGuestAgentIntegration -v -timeout 20m ./lib/instances on deft
  • cumulative deft gate: TestWindowsConfigIntegration, TestWindowsImagesIntegration, TestWindowsGuestAgentIntegration, and Linux TestQEMUStandbyAndRestore

fixture

The private test persona contains the signed virtio-win VioSock driver and the current guest-agent service. No Windows media, generated disks, credentials, or licensing material is committed.

@sjmiller609 sjmiller609 changed the title Add Windows guest control Add Windows guest control and ConPTY Aug 20, 2026
@socket-security

socket-security Bot commented Aug 20, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedgithub.com/​aymanbagabas/​go-pty@​v0.2.2100100100100100

View full report

@sjmiller609
sjmiller609 force-pushed the hypeship/windows-guest-control branch from 66426a0 to c5bc68c Compare August 20, 2026 03:07
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