-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
minikube on Apple Silicon / M1 CPU (darwin-arm64) #9224
Comments
It seems like VirtualBox is unlikely to be available: https://forums.virtualbox.org/viewtopic.php?f=8&t=98742 |
Parallells Desktop ($80) has a prototype available: https://www.parallels.com/blogs/apple-silicon-wwdc/ |
For the linux-arm64 platform (like Raspberry Pi 4), the available minikube options are libvirt (kvm2) and native (none). We still have to add proper |
Eventually we should also build a KIC base docker image for arm64. KIND is also working on this: kubernetes-sigs/kind#166 https://www.docker.com/blog/getting-started-with-docker-for-arm-on-linux/ https://hub.docker.com/r/arm64v8/ubuntu/ Thanks to QEMU, you can do this on your regular Linux laptop already: $ arch
x86_64
$ docker run -it arm64v8/ubuntu:focal
root@9937e658add6:/# arch
aarch64 (It uses binfmt_misc and That way, once Docker Desktop is done with their VM (LinuxKit) it could run the kicbase arm64 image: docker/for-mac#4733 |
Just to let you know, curl sudo curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-arm64 Drawback you have to work with the None Driver Be sure to start Vftool with 2 CPUs, not less not more ... |
This issue was actually about darwin (macOS), not so much about the actual hardware (arm64) It is not so surprising with the arm64 support, and we will have support for more drivers soon... See #9762 for more ARM links
Glad to hear that it works, if this has support for libvirt or something we could make it an alternative ? Currently we are using Docker's HyperKit, and they have been struggling a bit with the ARM support And no VirtualBox (it's x86 only) Using QEMU works (on all platforms), but it has some issues with setting up the required networking. The default user network "works", but minikube is built on a more regular networking model for the VM. We could also use the "generic" driver, and then you can use any VM - just provide it with the SSH: See #4733 |
@goafabric Glad to see none driver working with vftool (nice discovery) update: |
Thanks all for your awesome work, I just try to run minikube in apple silicon, it's working great with docker driver 💯
|
How did you achieve it? Mind documenting here the process you followed? I have the Apple MacBook Pro 13". |
|
Oh sorry, I forgot to mention the below points in my system:
|
Side note for those wanting to try this. The M1 build Go-lang formula is available in the M1 Homebrew preview with |
Trying to find the upstream (moby) issue for the qemu segfault, since it seems to be a known issue with this Docker preview...
But can mostly find user reports, that are all reporting crashes. Doesn't seem to be anything in https://github.com/moby/qemu https://github.com/docker/for-mac/labels/area%2Fm1 |
@sayboras I did a
|
I've installed arm version of minikube via brew
dashboard was loading as well:
Besides doing that, I was able to deploy a simple golang hello world container to it and expose as a service, worked like a charm!
|
@sasha7 - I tried running the "brew install minikube --build-from-source" and it couldn't get through the process. Kept giving me the following error. Any thoughts? |
We'll need to update our docs today, but as of last week, folks can install the latest release of minikube for Apple Silicon using:
|
@tstromberg - I attempted to run the commands on my M1. When starting minikube I had the following error. Any ideas? Thanks! |
@brhamill - I've not yet seen a SEGV. Can you please open a new issue? That seems like an unstable VM environment to me, so please check that you are on the latest Docker for M1 build. |
same as @brhamill @tstromberg : Probably I am on the latest build of the Docker for M1 preview :
|
@tstromberg - the commands you provided: curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-arm64 Should the second line be: sudo install minikube-darwin-arm64 /usr/local/bin/minikube instead? Since it's arm instead of amd? I made that change and then attempted a "minikube start" I got a zsh permissions error. Am I doing something incorrect with my approach? zsh: permission denied: minikube |
I was finally able to get minikube running well on my M1 Silicon. This YT link lays it all out in a very straight-forward way. Hope it helps others... |
Thanks for sharing. I played with
Video seems to actually explain it. I'll give this a shot tonight. |
minikube tunnel |
The Docker Desktop networking model doesn't offer access to the VM, so that basically leaves port forwarding (unfortunately) |
Well, did get it working a couple different ways:
Checking the LoadBalancer, it is indefinitely pending on getting an
Doesn't appear to be any issues in the
At any rate, with any of these, I'd have to make a service for each deployment--I have one Definitely a lot more straight forward with KVM2, Hyperkit, etc. drivers and using an ingress controller like |
I did manage to get I just needed to enable
I started my cluster with When that was running I ran
Didn't have to expose any, or each, of my microservices and routing seems to be working fine between them where they refer to one another. So using |
This answer and the new Docker Desktop preview 3.1.0 (with K8s included) helped me to install it successfully. Thanks! |
Support for M1 launched, so I'm closing this in preference to individual issues being opened. |
You try this command arch -x86_64 brew install hyperkit & minikube start --vm=true |
Have not try this, but are you saying iam able to run minikube on arm64 with --docker=hyperkit without the needing of port forwarding? |
Confirming that Docker's official .dmg worked fine for me along w/ |
Is there a way of using minikube without the docker for mac app on M1? it's license became kind of repelling, hyperkit doesn't seem to work on M1. |
I've gotten minikube going with I just filed #13855 to see if we can clean this up a bit more. |
use docker - install docker desktop for Mac M1 and run
source: https://medium.com/@seohee.sophie.kwon/how-to-run-a-minikube-on-apple-silicon-m1-8373c248d669 |
Virtualbox on apple silicon (M1/M2) is coming along and is now available on the developer preview version. Any chance minikube is going to support that? Have you ever discussed it or done any work on it? |
I have tried running it with a developer preview version of Virtualbox on M1 but hard luck. minikube start --driver=virtualbox ok 4s 18.14.2 node
😄 minikube v1.29.0 on Darwin 12.6 (arm64)
✨ Using the virtualbox driver based on user configuration
❌ Exiting due to DRV_UNSUPPORTED_OS: The driver 'virtualbox' is not supported on darwin/arm64 |
how about |
Actually, there's an arm64 virtualbox now: https://www.virtualbox.org/wiki/Download_Old_Builds_7_0 |
The arm64 VirtualBox runs Intel emulation, not what you want for minikube |
❌ Exiting due to GUEST_PROVISION: error provisioning guest: Failed to start host: creating host: create: precreate: Docker Machine can be used only with Parallels Desktop Pro or Business edition. You use: standard edition Argh... |
Place holder to document all the issues
Docker can not be installed
hyper kit can not be installed
The text was updated successfully, but these errors were encountered: