Why minikube needs a VM

minikube github
minikube config
minikube docker-env
minikube proxy
minikube tutorial
minikube login
minikube vs kubernetes
minikube dashboard --url

I guess that minikube needs VirtualBox because of dockers' dependencies, but my current docker version doesn't need it.

So do I still need VirtualBox or another VM to start minikube?

this is only case on window or osx, do need virtualbox, vmware to create minikube vm using boot2docker, in Linux even Linux VM minikube can directly run kubernetes in host docker when choice --vm-driver none, which uses localkube.

Installing Kubernetes with Minikube, There is a problem with minikube on VirtualBox VM: minikube uses VirtualBox hypervisor for virtualization and thus requires VT-X support on  Running MiniKube on an Azure VM MiniKube is a Kubernetes distribution designed to make running a single node Kubernetes cluster easy for local development. However MiniKube relies on docker which relies on you having a Professional version of Windows on your laptop. If you don’t have that then it is really easy to stand up an Azure VM which can run MiniKube.

Minikube uses the docker machine to manage the kubernetes VM, so it abstracts the 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 like KVM, xhyve, HyperV, etc.

Yes you need the virtualbox along with respective driver to run the kubernetes cluster on your machine and it is because of docker dependencies. Minikube started a virtual machine for us(based on our local environment), and a Kubernetes cluster is running in that VM i.e. all your nodes and services are running under the VM box.

Install Minikube, So, Minikube is a Linux virtual machine image that you run in a Once you are ready to deploy your first Kubernetes setup you need to build all  The Minikube VM is exposed to the host system via a host-only IP address, that can be obtained with the minikube ip command. Any services of type NodePort can be accessed over that IP address, on the NodePort.

Minikube creates a simple local kubernetes cluster having one VM. Minikube needs a hypervisor such as VirtualBox or KVM... to create this VM.

Minikube won't be able to start if VirtualBox (which is the default) is not available.

minikube start 

You will get this error:

VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path

Setup minikube on VirtualBox - Privalov Vladimir, VT-x/AMD-v virtualization must be enabled in BIOS (requires Create the external switch with a name of VM-External-Switch, bound to the  Minikube is a tool that makes it easy to run Kubernetes locally. Minikube runs a single-node Kubernetes cluster inside a VM  (on Virtualbox for example) on your laptop for users looking to try out Kubernetes or develop with it day-to-day.

Exploring Kubernetes with Minikube - Kari Marttila, This setup requires you to build your own Ubuntu installation with a Vagrantfile. For this setup you need: VirtualBox. This provides the  Once the VM is running we will have two more steps to do to address a bug in minikube for Windows. We need to turn off Dynamic Memory for the minikube VM. There is bug reported on this issue which

Kubernetes Local Development With Minikube on Hyper-V Windows , Hi Is it possible to use minikube on ubuntu vm on virtualbox and does this mean I still need to install another virualbox for linux which means 2  If you can just run minikube directly on your host, it will work much better than running it from inside a VM due to restrictions VM managers have for nesting. If you must run minikube in a VM, consider using --vm-driver=none.

Minikube on Windows. Hyper-V vs Vagrant/VirtualBox -, I have tried for a week to get minikube with docker running, and each common (using a VM instead of a laptop), and probably needs some  3. Run minikube start --hyperv-external-switch=minikube If this does not help, and you happen to have Docker installed, consider trying minikube start --driver=docker, which will piggyback on Docker's Hyper-V configuration. It does mean you will need Docker running to use minikube, however.

Use minikube on my ubuntu vm on virtualbox · Issue #3685 , The Minikube option –vm-driver=none operates the Kubernetes components on a host and not within a VM. When using this driver, it will require  Output of minikube logs (if applicable): Anything else do we need to know: This is easily fixed, by checking if the hyper-v ew-vm command is present. It now checks for new-vm, Gets the first item of the returned array (in this case hyperv, and vmware), then checks the module it belongs to. If this is vmware, it fails.

Comments
  • And there is absolutely no way to run Minikube on docker that is not inside a VM? This is such a huge and useless overhead, I still cannot believe nobody thought about it, but this is the only mention I've found so far.
  • you do not necessarily need VirtualBox. As @mohan08p answered: you need a docker-machine driver.
  • Downvote, not correct. sudo minikube --vm-driver none start does work fine on linux systems (and doesnt require docker-machine)