Skip to content

Publish .NET sandbox packages for macOS Apple Silicon #202

Open

Description

@verdie-g

Hyperlight v0.17.0 added macOS Apple Silicon support (hyperlight-dev/hyperlight#1674), but the published .NET sandbox packages do not currently include macOS native assets.

Hyperlight.HyperlightSandbox.PInvoke 0.6.0 contains only:

  • runtimes/linux-x64
  • runtimes/win-x64

Could an osx-arm64 native asset and compatible guest packages be published so Microsoft.Agents.AI.Hyperlight CodeAct can run on Apple Silicon Macs?

Related release: https://github.com/hyperlight-dev/hyperlight/releases/tag/v0.17.0

Activity

  1. jsturtevant commented on Sep 11, 2026

    @jsturtevant
    Contributor

    Yes, I started to look at this but we need to finish up one more item in hyperlight to fully enable it hyperlight-dev/hyperlight#1690 for hyperlight-wasm which is used in the project

  2. thangchung commented on Sep 15, 2026

    @thangchung

    Hyperlight v0.17.0 added macOS Apple Silicon support (hyperlight-dev/hyperlight#1674), but the published .NET sandbox packages do not currently include macOS native assets.

    Hyperlight.HyperlightSandbox.PInvoke 0.6.0 contains only:

    • runtimes/linux-x64
    • runtimes/win-x64

    Could an osx-arm64 native asset and compatible guest packages be published so Microsoft.Agents.AI.Hyperlight CodeAct can run on Apple Silicon Macs?

    Related release: hyperlight-dev/hyperlight@v0.17.0 (release)

    I have got the error, just like to said above

    warn: McpServer.CodeMode.SandboxRunnerFactory[0]
          Falling back to local sandbox runner because Hyperlight runner could not be created.
          System.DllNotFoundException: Unable to load shared library '/Users/chungt02/source_codes/oss/agent-engineering-experiment/mcp-experiments/src/McpServer/bin/Debug/net10.0/runtimes/linux-x64/native/libhyperlight_sandbox_dotnet_ffi.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: 
          dlopen(/Users/chungt02/source_codes/oss/agent-engineering-experiment/mcp-experiments/src/McpServer/bin/Debug/net10.0/runtimes/linux-x64/native/libhyperlight_sandbox_dotnet_ffi.so, 0x0001): tried: '/Users/chungt02/source_codes/oss/agent-engineering-experiment/mcp-experiments/src/McpServer/bin/Debug/net10.0/runtimes/linux-x64/native/libhyperlight_sandbox_dotnet_ffi.so' (slice is not valid mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/chungt02/source_codes/oss/agent-engineering-experiment/mcp-experiments/src/McpServer/bin/Debug/net10.0/runtimes/linux-x64/native/libhyperlight_sandbox_dotnet_ffi.so' (no such file), '/Users/chungt02/source_codes/oss/agent-engineering-experiment/mcp-experiments/src/McpServer/bin/Debug/net10.0/runtimes/linux-x64/native/libhyperlight_sandbox_dotnet_ffi.so' (slice is not valid mach-o file)
          
             at System.Runtime.InteropServices.NativeLibrary.Load(String libraryPath)
             at HyperlightSandbox.PInvoke.SafeNativeMethods.DllImportResolver(String libraryName, Assembly assembly, Nullable`1 searchPath)
             at System.Runtime.InteropServices.NativeLibrary.LoadLibraryCallbackStub(String libraryName, Assembly assembly, Boolean hasDllImportSearchPathFlags, UInt32 dllImportSearchPathFlags)
             at HyperlightSandbox.PInvoke.SafeNativeMethods.hyperlight_sandbox_create(FFISandboxOptions options)
             at HyperlightSandbox.PInvoke.SafeNativeMethods.hyperlight_sandbox_create(FFISandboxOptions options)
             at HyperlightSandbox.Api.Sandbox..ctor(String modulePath, UInt64 heapSize, UInt64 stackSize, String inputDir, String outputDir, Boolean tempOutput, Nullable`1 filesystemLimits, SandboxBackend backend)
             at HyperlightSandbox.Api.SandboxBuilder.Build()
             at McpServer.CodeMode.Hyperlight.HyperlightSandboxRunner..ctor(TimeSpan timeout, Int32 maxToolCalls, ILogger`1 logger, IReadOnlyList`1 allowedBaseUrls) in /Users/chungt02/source_codes/oss/agent-engineering-experiment/mcp-experiments/src/McpServer/CodeMode/Hyperlight/HyperlightSandboxRunner.cs:line 39
             at McpServer.CodeMode.SandboxRunnerFactory.Create(IConfiguration configuration, ILoggerFactory loggerFactory, IReadOnlyList`1 allowedBaseUrls) in /Users/chungt02/source_codes/oss/agent-engineering-experiment/mcp-experiments/src/McpServer/CodeMode/SandboxRunnerFactory.cs:line 60
    

    Looking forward to hyperlight-dev/hyperlight#1690; then we can solve this problem completely.

  3. jsturtevant commented on Oct 17, 2026

    @jsturtevant
    Contributor

    The core hl pr merged. The hl-wasm and hl-js prs are in flight

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions