Qemu guest agent support#533
Open
hrosenfeld wants to merge 2 commits into
Open
Conversation
This allows the built-in socat of the bhyve brand to allow I/O multiplexing between stdin/stdout and a UNIX domain socket belonging to the VM, such as a virtual COM port. Unfortunately, the original socat implementation wasn't easily adaptable for this, so the result looks a bit like two different socat implementations merged in one.
This adds a new ksh script to /usr/lib/brand/bhyve, which can be used to talk to a qemu-guest-agent inside the guest listening on the 2nd serial port (COM2 in Windows parlance). This change depends on the socat changes in the previous commit.
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.
This code was written by Patrick van der Linden of EFit Partners. My part in this is helping with review and integration.
The first commit extends socat to support I/O multiplexing to/from stdout/stdin in addition to a TCP socket, while then 2nd adds a ksh script to talk to the qemu guest agent.
At this time, this pull request should be regarded as a request for comments, not as code that's completely ready for integration.