macos minikube unsupported driver: kvm2

4/6/2019

Hi do you know why I get the following error:

  ~ minikube start --vm-driver kvm2             
  minikube v1.0.0 on darwin (amd64)
  Downloading Kubernetes v1.14.0 images in the background ...
  Creating kvm2 VM (CPUs=2, Memory=2048MB, Disk=20000MB) ...
  unsupported driver: kvm2

I have installed:

brew update && brew install kubernetes-cli && brew cask install docker docker-machine minikube virtualbox && brew install hyperkit
-- Chris G.
kubernetes
minikube

1 Answer

4/18/2019

As per Minikube Driver Plugin Installation:

Minikube uses Docker Machine to manage the Kubernetes VM so it benefits from the driver plugin architecture that Docker Machine uses to provide a consistent way to manage various VM providers. Minikube embeds VirtualBox and VMware Fusion drivers so there are no additional steps to use them. However, other drivers require an extra binary to be present in the host PATH.

The KVM2 driver is maintained by the minikube team. It is built, tested and released with minikube, however, it's not supported by MacOS.

(I'm assuming that you are using MacOS since you are managing your packages with brew).

Minikube supports the following drivers (set with --vm-driver=xxxxx; default is virtualbox):

  • virtualbox
  • vmwarefusion
  • kvm2
  • kvm
  • hyperkit
  • xhyve (deprecated)
  • hyperv
  • none (Runs the Kubernetes components on the host and not in a VM. Using this driver requires Docker and a Linux environment

From this list, the best suitable drivers to use with MacOS are:

-- Eduardo Baitello
Source: StackOverflow