Skip to content

Can't start minkube: VirtualBox is not installed on the machine #9

@zelima

Description

@zelima

As a developer whothout any experience with minikube, I want to know what I need to have installed (and maybe how), so that I can start it easiely.

Acceptance Criteria

  • Able to start minkube following instructions from README
  • Do not have to google around to start minkube server

Tasks

  • Do analysis
  • Update README with instuctions if neccessary

Analysis

As a developer I encountered the following error after installed Minkube and trying to start it as suggestetd in README

minikube start --kubernetes-version "${KUBERNETES_VERSION}"
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
E1105 15:27:46.230633   25830 start.go:187] Error starting host: Error creating host: Error executing step: Running precreate checks.
: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path.

 Retrying.
E1105 15:27:46.231159   25830 start.go:193] Error starting host:  Error creating host: Error executing step: Running precreate checks.
: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path
================================================================================
An error has occurred. Would you like to opt in to sending anonymized crash
information to minikube to help prevent future errors?
To opt out of these messages, run the command:
	minikube config set WantReportErrorPrompt false
================================================================================

I had to do following to make it running

  • Install virtualbox
  • Include --vm-driver flag when starting minkube

Install virtualbox

This tutorial hellped https://websiteforstudents.com/installing-virtualbox-5-2-ubuntu-17-04-17-10/

sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove
sudo apt-get -y install gcc make linux-headers-$(uname -r) dkms
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list'
sudo apt-get update
sudo apt-get install virtualbox-5.2

Run with --vm-driver=

minikube start --kubernetes-version "${KUBERNETES_VERSION}" --vm-driver=virtualbox

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions