mxc icon indicating copy to clipboard operation
mxc copied to clipboard

WSLC is listed by getAvailableBackends() but missing from getPlatformSupport() and --probe

Open trevotai-amd opened this issue 3 weeks ago • 1 comments

Relevant area(s)

Windows

Brief description of your issue

On a PC where the WSLC backend works, the three discovery paths give different answers:

getAvailableBackends()                -> processcontainer, wslc, isolation_session, hyperlight
getPlatformSupport().availableMethods -> processcontainer, isolation_session, hyperlight      (no wslc)
wxc-exec --probe                      -> hyperlightAvailable, isolationSessionAvailable; no WSLC field

#1491 made MicroVM "not detected" deliberate in 1.0.1; WSLC missing from two of the three is not explained. An app that uses --probe or getPlatformSupport() to decide which backends to offer would not offer WSLC, and WSLC readiness problems (e.g. Virtual Machine Platform disabled) only show up when a run fails.

Versions: MXC 1.0.1 (npm @microsoft/mxc-sdk, Node 24.15), Windows 11 26300.9711, WSL 3.0.x, Virtual Machine Platform enabled, wxc-exec --setup-wslc --image python:3.12-alpine done.

Steps to reproduce

  1. Confirm WSLC works, e.g. wxc-exec F.json with:
    {"version": "1.0.0", "containment": "wslc", "containerId": "repro-1",
     "wslc": {"image": "python:3.12-alpine"},
     "process": {"commandLine": "python3 -c 'print(1)'", "timeout": 60000}}
    
  2. Run wxc-exec --probe.
  3. In Node: print getAvailableBackends() and getPlatformSupport().availableMethods from @microsoft/mxc-sdk.

Expected behavior

All discovery paths agree on WSLC availability, and --probe reports WSLC readiness (ideally with the missing component when not ready).

Actual behavior

Only getAvailableBackends() lists WSLC; getPlatformSupport() and --probe do not.

trevotai-amd avatar Nov 05 '26 14:11 trevotai-amd

Fixed by #1558. On Windows, getPlatformSupport() now gets WSLC availability from getAvailableBackends(), so both list wslc on a PC where WSLC works.

SohamDas2021 avatar Nov 10 '26 20:11 SohamDas2021