Open NitichaiSawangsai opened 3 years ago
Hi @NitichaiSawangsai, thanks for reporting your issue!
As shown in the message, minikube does not yet support hyperkit on M1 Macs.
This is something we're hoping to support in the future. For now you can use the Docker driver.
Hope that helps, thanks for using minikube!
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
We're going to work on implementing a qemu driver for a vm driver on arm64 darwin.
We're going to work on implementing a qemu driver for a vm driver on arm64 darwin.
Any clue when it is planned to be released?
Any clue when it is planned to be released?
The current tentative timeline puts it the end of Q2 2022.
@spowelljr @sharifelgamal I totally love my M1 but my love for Docker is much more limited and I see the issue remains unassigned. Is there a recommended best practice as a workaround while this is being worked on, e.g. using podman?
You can use lima, as a workaround.
brew install lima
limactl start https://github.com/lima-vm/lima/blob/master/examples/k8s.yaml
It will use ubuntu and containerd.
We just released minikube v1.26.0-beta.0 that supports the QEMU driver --driver=qemu2
.
https://github.com/kubernetes/minikube/releases/tag/v1.26.0-beta.0
We just released minikube v1.26.0-beta.0 that supports the QEMU driver
--driver=qemu2
.https://github.com/kubernetes/minikube/releases/tag/v1.26.0-beta.0
Looks on the first sight very good 👏
@spowelljr is it possible to specify the path to qemu? I get
🤷 Exiting due to PROVIDER_QEMU2_NOT_FOUND: The 'qemu2' provider was not found: lookup qemu: open /opt/homebrew/Cellar/qemu: no such file or directory
with an installation to /usr/local from source.
which qemu-system-aarch64
/usr/local/bin/qemu-system-aarch64
(This is also qemu 7, so perhaps I should install qemu 6)
@spowelljr is it possible to specify the path to qemu? I get
🤷 Exiting due to PROVIDER_QEMU2_NOT_FOUND: The 'qemu2' provider was not found: lookup qemu: open /opt/homebrew/Cellar/qemu: no such file or directory
with an installation to /usr/local from source.
which qemu-system-aarch64 /usr/local/bin/qemu-system-aarch64
(This is also qemu 7, so perhaps I should install qemu 6)
Not yet, this is something we're going to fix before the GA v1.26 release. Right now, we only look for a qemu installation from brew.
https://github.com/kubernetes/minikube/issues/14146 has more details about what's missing in the qemu driver.
@tedgoddard I merged a PR that should allow you to specify the path of the firmware file (usually edk2-aarch64-code.fd
) you want to to use for qemu. We just look for a qemu-system-* binary in your PATH, so that should not be an issue.
Hi everyone, Has anybody else faced this with qemu2?
❯ minikube start --driver qemu2 --memory=4Gb
😄 minikube v1.26.0-beta.1 on Darwin 12.4 (arm64)
✨ Using the qemu2 (experimental) driver based on existing profile
❗ You cannot change the memory size for an existing minikube cluster. Please first delete the cluster.
👍 Starting control plane node minikube in cluster minikube
🔄 Restarting existing qemu2 VM for "minikube" ...
OUTPUT:
ERROR: qemu-system-aarch64: Addressing limited to 32 bits, but memory exceeds it by 1073741824 bytes
yeah, this is a known issue (seen in https://github.com/kubernetes/minikube/issues/14273) that should be fixed at HEAD, and will be fixed when the GA v1.26.0 minikube release is out.
@sharifelgamal thank you so much!
I got it to work by doing:
brew install qemu
After the download, I did this:
minikube start --driver qemu --memory=4Gb
I got it to work by doing:
brew install qemu
After the download, I did this:
minikube start --driver qemu --memory=4Gb
Thanks that works, but it uses qemu and not Hyperkit 😉
HyperKit is Intel-only, so the alternative to QEMU will be the new Virtualization.framework driver (whenever that is ready)
HyperKit is Intel-only, so the alternative to QEMU will be the new Virtualization.framework driver (whenever that is ready)
Ya, you're totally right 👍
Can we please document this to the quickstart for mac m1 ?
Can we please document this to the quickstart for mac m1 ?
Has the quickstart documentation been started for mac m1? I don't see the updates published.
Can we please document this to the quickstart for mac m1 ?
Has the quickstart documentation been started for mac m1? I don't see the updates published.
@dmiyamasu and @rajjaiswalsaumya there is a Apple Silicon documentation here → https://minikube.sigs.k8s.io/docs/start/ and also the QEMU startup flags are explained on the drivers page → https://minikube.sigs.k8s.io/docs/drivers/qemu/
I think that will help.
This document also only mentions hyperkit and doesn't mention using qemu on apple silicon: https://github.com/kubernetes/minikube/blob/master/site/content/en/docs/tutorials/docker_desktop_replacement.md
Mac M1
Steps to reproduce the issue:
Full output of failed command: