docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.63k stars 1.97k forks source link

virtualbox version check fooled by virtualbox error messages #4384

Open daurnimator opened 6 years ago

daurnimator commented 6 years ago

Originally reported at https://github.com/kubernetes/minikube/issues/2522

E0207 16:46:48.120797   11890 start.go:159] Error starting host: Error creating host: Error executing step: Running precreate checks.
: We support Virtualbox starting with version 5. Your VirtualBox install is "WARNING: The vboxdrv kernel module is not loaded. Either there is no module\n         available for the current kernel (4.15.1-2-ARCH) or it failed to\n         load. Please recompile the kernel module and install it by\n\n           sudo /sbin/vboxconfig\n\n         You will not be able to start VMs until this problem is fixed.\n5.2.6r120293". Please upgrade at https://www.virtualbox.org.
opiatamus79 commented 5 years ago

I came to the same error using Antergos Linux and what I had to do was make sure that virtualbox was setup/configured correctly. I thought because I had installed it via pamac that the package was already setup, but I had to go to the docs to find out that I still needed to install linux-headers ( I am using linux kernel and not linux-lts) using command 1. yay linux-headers, I had to make sure to load modules that are used by VirtualBox by doing 2. sudo rcvboxdrv then sudo systemctl start systemd-modules-load.service, and finally 3. minikube start -p vb --vm-driver=virtualbox

opiatamus79 commented 5 years ago

Also, be sure to select the correct repo for each package, this is mentioned in the link provided.

leo7 commented 5 years ago

Just having the exact issue.

leo@tmv:~/dev/kubernetes$ minikube start --kubernetes-version v1.9.4
Starting local Kubernetes v1.9.4 cluster...
Starting VM...
E0430 16:10:25.962867    1225 start.go:180] Error starting host: Error creating host: Error executing step: Running precreate checks.
: We support Virtualbox starting with version 5. Your VirtualBox install is "WARNING: The vboxdrv kernel module is not loaded. Either there is no module\n         available for the current kernel (4.15.0-47-generic) or it failed to\n         load. Please recompile the kernel module and install it by\n\n           sudo /sbin/vboxconfig\n\n         You will not be able to start VMs until this problem is fixed.\n5.2.22r126460". Please upgrade at https://www.virtualbox.org.

 Retrying.
E0430 16:10:25.964185    1225 start.go:186] Error starting host:  Error creating host: Error executing step: Running precreate checks.
: We support Virtualbox starting with version 5. Your VirtualBox install is "WARNING: The vboxdrv kernel module is not loaded. Either there is no module\n         available for the current kernel (4.15.0-47-generic) or it failed to\n         load. Please recompile the kernel module and install it by\n\n           sudo /sbin/vboxconfig\n\n         You will not be able to start VMs until this problem is fixed.\n5.2.22r126460". Please upgrade at https://www.virtualbox.org
E0430 16:10:27.905310    1225 util.go:151] Error uploading error message: Error sending error report to https://clouderrorreporting.googleapis.com/v1beta1/projects/k8s-minikube/events:report?key=AIzaSyACUwzG0dEPcl-eOgpDKnyKoUFgHdfoFuA, got response code 400

It's VM issue. Solution:

After installation, try virtualbox cmd, if no issues, then you should be good to minikube start