[Solved] – Unable to install Minishift with the latest version of docker-machine-driver-xhyve

If you are doing the following steps:

  • Following the Minishift doc to install Minishift with this drive
  • Then, running brew install docker-machine-driver-xhyve
  • Then, running brew cask install minishift
  • Then, running minishift start

And facing the following issue:

$ minishift start
— Starting profile ‘minishift’
— Check if deprecated options are used … OK
— Checking if https://github.com is reachable … OK
— Checking if requested OpenShift version ‘v3.11.0’ is valid … OK
— Checking if requested OpenShift version ‘v3.11.0’ is supported … OK
— Checking if requested hypervisor ‘xhyve’ is supported on this platform … OK
— Checking if xhyve driver is installed …
Driver is available at /usr/local/bin/docker-machine-driver-xhyve
Checking for setuid bit … OK
— Checking the ISO URL … OK
— Checking if provided oc flags are supported … OK
— Starting the OpenShift cluster using ‘xhyve’ hypervisor …
— Minishift VM will be configured with …
Memory: 4 GB
vCPUs : 2
Disk size: 20 GB
— Starting Minishift VM …. FAIL E0519 18:30:25.411015 28125 start.go:494] Error starting the VM: Error creating new host: json: cannot unmarshal bool into Go struct field Driver.Virtio9p of type []string. Retrying.
Error starting the VM: Error creating new host: json: cannot unmarshal bool into Go struct field Driver.Virtio9p of type []string
camilamacedo@Camilas-MacBook-Pro ~ $ brew uninstall docker-machine-driver-xhyve
Uninstalling /usr/local/Cellar/docker-machine-driver-xhyve/0.4.0… (6 files, 9.9MB)

It is because of the latest version of docker-machine-driver-xhyve is not working with. Then, follow the steps to solve it:

Clean/Uninstall all

  • Run minishift delete
  • Run brew uninstall docker-machine-driver-xhyve
  • Run rm -rf /usr/local/bin/docker-machine-driver-xhyve
  • Run rm -rf config files .docker .kube .minishift .minikube

IMPORTANT: Ensure that you have not other drive installed as VirtualBox and/or hyper and use a docker version >= 18.19.02

Install docker-machine-driver-xhyve using the version 0.3.1

$ curl -L https://github.com/zchee/docker-machine-driver-xhyve/releases/download/v0.3.1/docker-machine-driver-xhyve > /usr/local/bin/docker-machine-driver-xhyve
$ chmod +x /usr/local/bin/docker-machine-driver-xhyve
$ sudo chown root:wheel /usr/local/bin/docker-machine-driver-xhyve
$ sudo chmod u+s /usr/local/bin/docker-machine-driver-xhyve

Download and re-install Minishift

$ brew cask install –force minishift

Now, you can start your Minishift with $ minishift start

NOTE: To be able to log in the console as admin, use:

# enable the admin-user add-on 
$ minishift addon enable admin-user 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s