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

dotnet CLI does not work under gVisor #42862

Open
saquibmian opened this issue Aug 20, 2024 · 0 comments
Open

dotnet CLI does not work under gVisor #42862

saquibmian opened this issue Aug 20, 2024 · 0 comments
Labels
Area-CLI untriaged Request triage from a team member

Comments

@saquibmian
Copy link

Describe the bug

I am trying to use mcr.microsoft.com/dotnet/sdk under a gVisor environment on arm64 (Apple Silicon). Most commands fail with the following error:

Fatal error. AdvSimd processor support required.
Aborted

To Reproduce

You will need gVisor set up as an additional container runtime.

This command succeeds:

$ docker run -it --runtime runsc mcr.microsoft.com/dotnet/sdk:8.0.401-bookworm-slim dotnet    

Usage: dotnet [options]
Usage: dotnet [path-to-application]

Options:
  -h|--help         Display help.
  --info            Display .NET information.
  --list-sdks       Display the installed SDKs.
  --list-runtimes   Display the installed runtimes.

path-to-application:
  The path to an application .dll file to execute.

This command fails:

$ docker run -it --runtime runsc mcr.microsoft.com/dotnet/sdk:8.0.401-bookworm-slim dotnet --version
Fatal error. AdvSimd processor support required.

dotnet new|build|pack also fail with the same error.

Exceptions (if any)

The same commands (dotnet --version and others) work for the following images:

  • mcr.microsoft.com/dotnet/sdk:7.0-bookworm-slim
  • mcr.microsoft.com/dotnet/sdk:6.0-bookworm-slim

Further technical details

I am targeting the arm64 arch (running under Apple Silicon). I have not tested this under any other arch.

dotnet --info fails under sdk:8, but sdk:7 returns the following:

$ docker run -it --runtime runsc mcr.microsoft.com/dotnet/sdk:7.0-bookworm-slim dotnet --info
.NET SDK:
 Version:   7.0.410
 Commit:    8b4848c3b2

Runtime Environment:
 OS Name:     debian
 OS Version:  12
 OS Platform: Linux
 RID:         debian.12-arm64
 Base Path:   /usr/share/dotnet/sdk/7.0.410/

Host:
  Version:      7.0.20
  Architecture: arm64
  Commit:       0fb6ac59fb

.NET SDKs installed:
  7.0.410 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 7.0.20 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 7.0.20 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-CLI untriaged Request triage from a team member labels Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CLI untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

1 participant