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

macOS catalina: Error in driver during machine creation: hyperkit crashed #5780

Closed
stherrien opened this issue Oct 30, 2019 · 11 comments
Closed
Labels
kind/support Categorizes issue or PR as a support question. long-term-support Long-term support issues that can't be fixed in code os/macos top-10-issues Top 10 support issues triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@stherrien
Copy link

The exact command to reproduce the issue:
minikube start
😄 minikube v1.5.1 on Darwin 10.15
🔥 Creating hyperkit VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
🔄 Retriable failure: create: Error creating machine: Error in driver during machine creation: hyperkit crashed! command line:
hyperkit loglevel=3 console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10 systemd.legacy_systemd_cgroup_controller=yes random.trust_cpu=on hw_rng_model=virtio base host=minikube
🔥 Deleting "minikube" in hyperkit ...
🔥 Creating hyperkit VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
🔄 Retriable failure: create: Error creating machine: Error in driver during machine creation: hyperkit crashed! command line:
hyperkit loglevel=3 console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10 systemd.legacy_systemd_cgroup_controller=yes random.trust_cpu=on hw_rng_model=virtio base host=minikube
🔥 Deleting "minikube" in hyperkit ...
🔥 Creating hyperkit VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
🔄 Retriable failure: create: Error creating machine: Error in driver during machine creation: hyperkit crashed! command line:
hyperkit loglevel=3 console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10 systemd.legacy_systemd_cgroup_controller=yes random.trust_cpu=on hw_rng_model=virtio base host=minikube
🔥 Deleting "minikube" in hyperkit ...
🔥 Creating hyperkit VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
🔄 Retriable failure: create: Error creating machine: Error in driver during machine creation: hyperkit crashed! command line:
hyperkit loglevel=3 console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10 systemd.legacy_systemd_cgroup_controller=yes random.trust_cpu=on hw_rng_model=virtio base host=minikube
🔥 Deleting "minikube" in hyperkit ...

💣 Unable to start VM: create: Error creating machine: Error in driver during machine creation: hyperkit crashed! command line:
hyperkit loglevel=3 console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10 systemd.legacy_systemd_cgroup_controller=yes random.trust_cpu=on hw_rng_model=virtio base host=minikube

😿 Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉 https://github.com/kubernetes/minikube/issues/new/choose

The full output of the command that failed:

The output of the minikube logs command:

The operating system version:

@tstromberg tstromberg changed the title start on osx catalina failure macOS catalina: Error in driver during machine creation: hyperkit crashed Oct 30, 2019
@tstromberg tstromberg added os/macos kind/support Categorizes issue or PR as a support question. labels Oct 30, 2019
@ebokov
Copy link

ebokov commented Oct 31, 2019

Have same exception. I'm working with Virtual VM - not with hyperkit. Adding --vm-driver=virtualbox solved the issue for me.

@scalaster
Copy link

scalaster commented Oct 31, 2019

I had the same errors. Here are the things I had to do to fix it.

  1. I had installed hyperkit using the instructions on their github repo. I uninstalled hyperkit and reinstalled it using homebrew. I guess the instructions on github didn't install a compatible version whereas homebrew did it.
  2. I deleted ~/.minikube and ran minikube start again.

I had other unrelated errors coz I was behind the proxy. I followed the instructions in the documentation here https://minikube.sigs.k8s.io/docs/reference/networking/proxy/ except I had to add one more CIDR in NO_PROXY environment variable: 192.168.64.0/24 because hyperkit kept assigning IP to VM in that range

@vvuibert
Copy link

@scalaster your solution also worked for me. thanks!

@medyagh
Copy link
Member

medyagh commented Nov 4, 2019

@stherrien @ebokov @scalaster @vvuibert

this is a duplicate issue of #5594 (comment)

the problem is the hyperkit bug, and hyperkit needs to be upgraded see #5594 (comment)

closing this.

@tstromberg
Copy link
Contributor

tstromberg commented Nov 6, 2019

This is related to #5594 - similar root cause, but different error message seen by the user.

@SaberMyKing
Copy link

SaberMyKing commented Jan 23, 2020

Just try this:

brew install hyperkit  # skip if installed
brew link --overwrite hyperkit

Then everything will be ok.

@medyagh
Copy link
Member

medyagh commented Mar 4, 2020

@stherrien do you mind trying the solution provided in the comment ? #5780 (comment)

@tstromberg
Copy link
Contributor

I'm closing this issue as it hasn't seen activity in awhile, and it's unclear if this issue still exists. If this issue does continue to exist in the most recent release of minikube, please feel free to re-open it.

Thank you for opening the issue!

@oyemeLife
Copy link

Just try this:

brew install hyperkit  # skip if installed
brew link --overwrite hyperkit

Then everything will be ok.

thanks, It's just worked.

@yhyecho
Copy link

yhyecho commented Jul 10, 2020

Just try this:

brew install hyperkit  # skip if installed
brew link --overwrite hyperkit

Then everything will be ok.

thanks it's ok

@gayatrisarnobat
Copy link

We can use the default Docker driver for Minikube on macOS Apple Silicon chips. To do this, we need to install the arm64 version of Minikube and start it with the default Docker driver.

  1. First uninstall the existing Minikube setup by executing
    brew uninstall minikube

  2. Remove the ".minikube" directory:
    rm -rf ~/.minikube

  3. Install the arm64 version of Minikube:
    curl -LO https://github.com/kubernetes/minikube/releases/latest/download/minikube-darwin-arm64 && sudo install minikube-darwin-arm64 /usr/local/bin/minikube

  4. Run Minikube:
    minikube start --driver=docker

The above setup works on macOS Sequoia Version 15.0.1, Apple M2 Chip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question. long-term-support Long-term support issues that can't be fixed in code os/macos top-10-issues Top 10 support issues triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

10 participants