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

hyperkit: machine creation: hyperkit crashed! #5811

Closed
subratasen opened this issue Nov 1, 2019 · 12 comments
Closed

hyperkit: machine creation: hyperkit crashed! #5811

subratasen opened this issue Nov 1, 2019 · 12 comments
Labels
co/hyperkit Hyperkit related issues kind/support Categorizes issue or PR as a support question. os/macos triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@subratasen
Copy link

The exact command to reproduce the issue:

The full output of the command that failed:

💿 Downloading VM boot image ...
> minikube-v1.5.1.iso.sha256: 65 B / 65 B [--------------] 100.00% ? p/s 0s
> minikube-v1.5.1.iso: 143.76 MiB / 143.76 MiB [] 100.00% 14.11 MiB p/s 10s
🔥 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 output of the minikube logs command:

The operating system version:
macOS Mojave version 10.14.6

@ubozov
Copy link

ubozov commented Nov 2, 2019

@subratasen please try to update your docker

I had the same problem that was solved after the docker upgrade.

docker version after upgrade

Client: Docker Engine - Community
 Version:           19.03.4
 API version:       1.40
 Go version:        go1.12.10
 Git commit:        9013bf5
 Built:             Thu Oct 17 23:44:48 2019
 OS/Arch:           darwin/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.4
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.10
  Git commit:       9013bf5
  Built:            Thu Oct 17 23:50:38 2019
  OS/Arch:          linux/amd64
  Experimental:     true
 containerd:
  Version:          v1.2.10
  GitCommit:        b34a5c8af56e510852c35414db4c1f4fa6172339
 runc:
  Version:          1.0.0-rc8+dev
  GitCommit:        3e425f80a8c931f88e6d94a8c831b9d5aa481657
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

@govargo
Copy link
Contributor

govargo commented Nov 3, 2019

Maybe related to #5610

If so, this issue is resolved by installing latest hyperkit.
hyperkit is installed with docker for mac together.
So, if you upgrade docker for mac to latest version, this issue may be resolved.

I'm going to add version check of hyperkit to prevent this.

@afbjorklund
Copy link
Collaborator

You shouldn't need to install docker, just to run minikube.

@medyagh medyagh added the needs-solution-message Issues where where offering a solution for an error would be helpful label Nov 4, 2019
@medyagh
Copy link
Member

medyagh commented Nov 4, 2019

@subratasen could you please check if upgrading your Hyperkit would fix this ?
#5594 (comment)

@medyagh medyagh added triage/needs-information Indicates an issue needs more information in order to work on it. kind/support Categorizes issue or PR as a support question. and removed needs-solution-message Issues where where offering a solution for an error would be helpful labels Nov 4, 2019
@medyagh medyagh changed the title Minikube installation issue in MacOS hyperkit: machine creation: hyperkit crashed! Nov 6, 2019
@medyagh medyagh added the co/hyperkit Hyperkit related issues label Nov 6, 2019
@burdiyan
Copy link

Looks like hyperkit driver for minikube doesn't work without Docker for Mac, even with hyperkit installed with Homebrew. I've been doing lots of tests with that, and no luck, unless you install Docker for Mac.

@burdiyan
Copy link

Perhaps, vpnkit is what Minikube also want with hyperkit driver? Because that seems to be the only piece missing without Docker for Mac. And you can't install vpnkit with brew apparently.

@priyawadhwa
Copy link

Hey @subratasen are you still seeing this issue? It seems that doing the following might help:

  • upgrading docker if you have it installed
  • upgrading to the latest version of hyperkit
  • upgrading to the latest version of minikube

Please let us know if that doesn't help!

@nicknovitski
Copy link

nicknovitski commented Jan 29, 2020

I can confirm that the issue is still present with the latest versions of hyperkit and minikube, on macOS catalina.

😄  minikube v1.6.2 on Darwin 10.15.2
✨  Selecting 'hyperkit' driver from user configuration (alternates: [])
🔥  Creating hyperkit VM (CPUs=2, Memory=4000MB, Disk=64000MB) ...

💣  Unable to start VM. Please investigate and run 'minikube delete' if possible
❌  Error: [HYPERKIT_CRASHED] 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
💡  Suggestion: Hyperkit is broken. Upgrade to the latest hyperkit version and/or Docker for Desktop. Alternatively, you may choose an alternate --vm-driver
⁉️   Related issues:
    ▪ https://github.com/kubernetes/minikube/issues/6079
    ▪ https://github.com/kubernetes/minikube/issues/5780

😿  If the above advice does not help, please let us know:
👉  https://github.com/kubernetes/minikube/issues/new/choose

As @burdiyan has said, the workaround is to install Docker for Desktop, which stinks.

@ylathouris
Copy link

I am having this issue as well:

  • docker-19.03.5
  • hyperkit-0.20190802
  • minikube-1.7.2

@mjgallag
Copy link

mjgallag commented Mar 9, 2020

New version of hyperkit with Catalina fix is finally available on Homebrew, see Homebrew/homebrew-core#50655 & moby/hyperkit#267 for details.

@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!

@nicknovitski
Copy link

I am no longer able to reproduce the issue, so I believe it has been resolved with newer minikube and/or hyperkit releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/hyperkit Hyperkit related issues kind/support Categorizes issue or PR as a support question. os/macos triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests