-
Notifications
You must be signed in to change notification settings - Fork 23
Add Windows guest control and ConPTY #431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
sjmiller609
wants to merge
6
commits into
hypeship/windows-images
from
hypeship/windows-guest-control
Draft
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ccae882
Add Windows guest control
sjmiller609 0f75f0c
Keep guest agent portable on Unix hosts
sjmiller609 1de18b9
Terminate Windows exec process trees
sjmiller609 a9e2970
Stabilize Windows process cleanup gate
sjmiller609 5588eee
Terminate Windows exec jobs synchronously
sjmiller609 1487012
Isolate the Windows guest-control CI gate
sjmiller609 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Windows guest agent | ||
|
|
||
| Windows personas include `hypeman-guest-agent.exe` as the automatic `HypemanGuestAgent` LocalSystem service and the signed virtio-win VioSock driver. The agent listens on virtio-vsock port 2222 and implements the existing guest gRPC protocol. | ||
|
|
||
| The Windows build supports: | ||
|
|
||
| - command execution in the LocalSystem service session | ||
| - command execution in the active interactive desktop session | ||
| - ConPTY allocation and terminal resize events | ||
| - file copy, path stat, and graceful shutdown | ||
|
|
||
| Exec requests use `session: "system"` by default. `session: "desktop"` obtains the token for the active Windows session and returns an error when no interactive user is logged in. | ||
|
|
||
| Build the service with: | ||
|
|
||
| ```sh | ||
| make build-windows-guest-agent | ||
| ``` | ||
|
|
||
| The generated executable, Windows driver packages, credentials, and prepared persona disks are release inputs. They must not be committed to this repository. | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ go 1.25.4 | |
| require ( | ||
| al.essio.dev/pkg/shellescape v1.6.0 | ||
| github.com/Code-Hex/vz/v3 v3.7.1 | ||
| github.com/aymanbagabas/go-pty v0.2.2 | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. new dependency is ok 👍 |
||
| github.com/c2h5oh/datasize v0.0.0-20231215233829-aa82cc1e6500 | ||
| github.com/creack/pty v1.1.24 | ||
| github.com/cyphar/filepath-securejoin v0.6.1 | ||
|
|
||
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like this should not be in docs but maybe in a section in the appropriate lib/**/README.md as it's more about developer level concerns, not user facing docs