Repository navigation
feat: one-flag --hvsocket for the mount - #25
Merged
Merged
Conversation
Makes the Hyper-V socket transport a single command instead of manual GUID/port
wiring:
wsldrive mount X: --distro Ubuntu --wsl-root ~/proj --hvsocket [--vm-guid G]
- WslAgentSpec gains a `listen` endpoint; the auto-launched agent listens on
vsock://any:<port> (default 5700, a registered vsock port) and the Windows
client connects to hv://{vm-guid}:<port>.
- discover_wsl_vm_guid() finds the WSL2 VM GUID via `hcsdiag list` (needs
Hyper-V admin); --vm-guid overrides it for non-admin use.
- The auto-launch waits briefly before connecting, since an AF_HYPERV connect
blocks on a long OS timeout when the service is not yet listening (unlike
TCP's fast refusal).
Verified: `wsldrive mount X: --distro Ubuntu --wsl-root ~/wsldrive-bench
--hvsocket --vm-guid <g>` mounts X: over hvsocket in ~3 s; dir + reads work.
build_wsl_command vsock case unit-tested. 98/98 Windows, zero warnings.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
zcsizmadia
force-pushed
the
feat-hvsocket-ux
branch
from
August 28, 2026 17:15
5c821f9 to
e5fbdcc
Compare
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.
wsldrive mount X: --distro <d> --wsl-root <p> --hvsocketauto-launches the agent over vsock and connects over AF_HYPERV. VM-GUID auto-discovery (hcsdiag) + --vm-guid override. Verified: mounts in ~3s.