lemonai icon indicating copy to clipboard operation
lemonai copied to clipboard

Fails on WSL 2 with "protocol not available" — is WSL supported?

Open kobe359002 opened this issue 1 year ago • 1 comments

I'm trying to run hexdolemonai/lemon-runtime-sandbox:latest on WSL 2 (Windows 11), but even docker run ... /bin/bash fails with:

Failed to initialize: protocol not available

Is this expected? Does the runtime depend on AF_VSOCK or other kernel features not available in WSL 2?

Could you provide a WSL-compatible mode or alternative communication protocol (e.g., TCP)?

kobe359002 avatar Sep 29 '25 07:09 kobe359002

Hi @kobe359002 ,

Thank you for this incredibly detailed and high-quality report! This is extremely helpful.

To be transparent, the specifics of kernel features in the WSL 2 environment (like AF_VSOCK) are an area I am not an expert in. Your analysis that the lemon-runtime-sandbox depends on a kernel feature that isn't available or enabled by default in WSL 2 seems highly plausible.

This is a significant finding, as we definitely want the sandbox to be compatible with a popular environment like WSL 2.

Given my unfamiliarity with this specific virtualization layer, I'm not in a position to implement a fix quickly. I have marked this issue as help wanted and am officially opening this up to the community for investigation.

Your suggestion to provide an alternative communication protocol (like TCP) sounds like the perfect solution.

My question for you (or anyone else in the community reading this):

  1. Are you familiar with how we might implement this switch to TCP?
  2. Would you (or anyone else) be willing to investigate this further or even contribute a Pull Request (PR)?

We would be very grateful for any pointers or contributions to make this WSL-compatible.

Thanks again for identifying this!

HexdoAI avatar Nov 07 '25 06:11 HexdoAI