Skip to content
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

Fix GuestAgentConn vsock support #2118

Merged
merged 1 commit into from
Jan 8, 2024
Merged

Conversation

pendo324
Copy link
Contributor

@pendo324 pendo324 commented Jan 8, 2024

When how Lima connects to the guest agent was refactored in #1998, https:/mdlayher/vsock was used to support vsock connections on Windows, but the library doesn't support Windows. The following error log is from a WSL Lima instance on v0.19.1:

{"error":"dial vsock host(2):994831394: vsock: not implemented on windows","level":"warning","msg":"connection to the guest agent was closed unexpectedlydial vsock host(2):994831394: vsock: not implemented on windows","time":"2024-01-08T19:19:49Z"}

The corresponding log from the library is here.

With this change to revert to using winio's Dial, guestagent communication works as it did previously.

More information on the how the HyperV/Windows vsock support works (can add this to the comment in wsl_driver too):

Also un-exported MagicVSOCKSuffix since it's now only used in the windows package.

Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda added this to the v0.20.0 milestone Jan 8, 2024
@AkihiroSuda AkihiroSuda merged commit bd7442e into lima-vm:master Jan 8, 2024
24 checks passed
pendo324 added a commit to runfinch/finch-core that referenced this pull request Jan 9, 2024
…agent communication (#227)

Issue #, if available: e2e test failures on
runfinch/finch#649

*Description of changes:*
- Track Lima commit that fixes underlying issue with guestagent
communication, which ultimately breaks port forwarding (which is why the
e2e tests are failing). See lima-vm/lima#2118
for more details

*Testing done:*
- tested on a Windows machine by compiling Lima

- [x] I've reviewed the guidance in CONTRIBUTING.md


#### License Acceptance

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.

Signed-off-by: Justin Alvarez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants