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

bug: Failed to run k3s (with containerd) on Intel VM with Apple M1 #465

Open
gaocegege opened this issue Jul 21, 2023 · 7 comments
Open
Labels
f/machines Affects Linux machine users t/bug Something isn't working x/external Issue is in other software

Comments

@gaocegege
Copy link

Describe the bug

I created a linux intel VM on my M1 macOS and a k3s cluster there.

K3s uses containerd to create containers. All the containers show: seccomp is not supported.

multipass does not have such issue. I could create the k3s cluster in multipass VM successfully.

To Reproduce

$ curl -sfL https://get.k3s.io | sh -
$ sudo k3s kubectl describe pods --all-namespaces

Expected behavior

$ sudo k3s kubectl get pods --all-namespaces

All the pods should be running, instead of ContainerCreating

Logs

I do not think it is related.

Screenshots and additional context (optional)

No response

@gaocegege gaocegege added the t/bug Something isn't working label Jul 21, 2023
@kdrag0n
Copy link
Member

kdrag0n commented Jul 21, 2023

It may not be feasible to support running full-blown k3s under Rosetta emulation. I'm not familiar with Kubernetes, but consider doing it like Docker multi-platform if possible: x86 containers on an arm64 host.

@gaocegege
Copy link
Author

But multipass works well.

I am not sure if it is related to kubernetes. I think it is only about containerd. Because the kubernetes does not raise any error. The container runtime (containerd) returns seccomp not supported.

@kdrag0n
Copy link
Member

kdrag0n commented Jul 24, 2023

Multipass emulates a full x86 VM, which is better for compatibility but extremely slow. OrbStack uses Rosetta emulation instead. I'll take a look but unfortunately this may very well turn out to be infeasible/wontfix.

@gaocegege
Copy link
Author

Gotcha, thanks!

@mihirsamdarshi
Copy link

Hi, do you think it would be feasible to support x86-emulated Kubernetes on Apple Silicon through OrbStack?

@kdrag0n
Copy link
Member

kdrag0n commented Apr 18, 2024

Very unlikely.

@addozhang
Copy link

Have the same issue. After research, I got a workaround solution by specify k3s (with k3s installation option --docker) to use a x86 Docker container runtime.

The detail solution is here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f/machines Affects Linux machine users t/bug Something isn't working x/external Issue is in other software
Projects
None yet
Development

No branches or pull requests

4 participants