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

Do not allow running darwin/amd64 minikube on darwin/arm64 macs #10928

Closed
ilya-zuyev opened this issue Mar 25, 2021 · 3 comments · Fixed by #11024
Closed

Do not allow running darwin/amd64 minikube on darwin/arm64 macs #10928

ilya-zuyev opened this issue Mar 25, 2021 · 3 comments · Fixed by #11024
Labels
arch/arm64 kind/bug Categorizes issue or PR as related to a bug. os/macos priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@ilya-zuyev
Copy link
Contributor

M1 macs allow to run amd64 in rosetta mode. We need to prohibit this, as it leads to downloading amd64 preloads, running amd64 kubeadm and SEGFAULT in the end.

runtime.GOARCH is 'amd64' in this case, so we need an extra step to detect what we're running im emulation mode, like usinggopsutil library, or running an external binary like arch or uname

@ilya-zuyev ilya-zuyev added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. arch/arm64 os/macos kind/bug Categorizes issue or PR as related to a bug. labels Mar 25, 2021
@afbjorklund
Copy link
Collaborator

afbjorklund commented Mar 26, 2021

This can also be addressed by making it more explicit what architecture to use for the actual cluster, as suggested in #9593

Being able to run arm64 on amd64 and amd64 on arm64 would be an excellent feature, so we should try to allow it.

@afbjorklund
Copy link
Collaborator

afbjorklund commented Mar 26, 2021

Theoretically it should be possible to run an amd64 VM on an arm64 host, even though it would be slower (emulating the CPU)

I think the mentioned segfault mostly affects the Docker Preview, when running with the "docker" driver ? (haven't tried it on Linux)

@ilya-zuyev
Copy link
Contributor Author

Theoretically it should be possible to run an amd64 VM on an arm64 host, even though it would be slower (emulating the CPU)

I think the mentioned segfault mostly affects the Docker Preview, when running with the "docker" driver ? (haven't tried it on Linux)

Yes. This should probably be fixed in Docker release version, but right now we have a lot of segfault reports from users who running amd64 binaries in emulation mode. Seems like the easiest workaround for now is to ask them to use native binary and exit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch/arm64 kind/bug Categorizes issue or PR as related to a bug. os/macos priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants