Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start VM: create: precreate: The character device /dev/vboxdrv does not exist #3974

Closed
yrmmout opened this issue Mar 26, 2019 · 11 comments
Labels
co/virtualbox priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@yrmmout
Copy link

yrmmout commented Mar 26, 2019

minikube v0.35.0 on linux (amd64)
🔥 Creating virtualbox VM (CPUs=2, Memory=2048MB, Disk=20000MB) ...
💣 Unable to start VM: create: precreate: We support Virtualbox starting with version 5. Your VirtualBox install is "WARNING: The character device /dev/vboxdrv does not exist.\n\t Please install the virtualbox-dkms package and the appropriate\n\t headers, most likely linux-headers-generic.\n\n\t You will not be able to start VMs until this problem is fixed.\n5.2.18_Ubuntur123745". Please upgrade at https://www.virtualbox.org

😿 Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉 https://github.com/kubernetes/minikube/issues/new

Think you

@tstromberg
Copy link
Contributor

tstromberg commented Mar 26, 2019

It sounds like VirtualBox is not completely installed, specifically the kernel driver. Could you try uninstalling it and installing it again?

You may also want to take the time to upgrade VirtualBox to 6.0: https://www.virtualbox.org/wiki/Downloads

@tstromberg tstromberg changed the title problme with install virtualbox and minikube on linux ubuntu Unable to start VM: create: precreate: The character device /dev/vboxdrv does not exist Mar 26, 2019
@balopat balopat added the triage/needs-information Indicates an issue needs more information in order to work on it. label Apr 4, 2019
@balopat
Copy link
Contributor

balopat commented Apr 4, 2019

friendly ping @yrmmout - does reinstalling VirtualBox help?

@tstromberg tstromberg added needs-solution-message Issues where where offering a solution for an error would be helpful priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. labels Apr 5, 2019
@tstromberg tstromberg removed the needs-solution-message Issues where where offering a solution for an error would be helpful label May 2, 2019
@tstromberg
Copy link
Contributor

I'm closing this issue as it hasn't seen activity in awhile, and it's unclear if this issue still exists. If this issue does continue to exist in the most recent release of minikube, please feel free to re-open it.

Thank you for opening the issue!

@ajit555db
Copy link

I disabled the "secured boot" option on my host machine.

https://askubuntu.com/questions/900118/vboxdrv-sh-failed-modprobe-vboxdrv-failed-please-use-dmesg-to-find-out-why

@SohailKhanPAK
Copy link

Just about half an hour ago i faced same problem but i followed that 2 lines and i got the solution
try it !!

sudo apt-get update
sudo apt-get upgrade

@yrmmout
Copy link
Author

yrmmout commented Aug 7, 2019 via email

@John-Dormevil
Copy link

Try to:

  • Deactivate Secure Boot from your bios system;
  • Then run sudo /sbin/vboxconfig in case you install and use virtualbox 6+
  • Then minikube start

@skemuel007
Copy link

The code below is added to your /etc/apt/sources.list
echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list

Add these keys with
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 -

To install VirtualBox, do
sudo apt-get update
sudo apt-get install virtualbox-6.1

For more details visit https://www.virtualbox.org/wiki/Linux_Downloads

@ecourtial
Copy link

ecourtial commented Oct 8, 2020

To solve the issue I had to mix the solutions presented above:

  • Install VB6.1
  • Disable SecureBoot.

@kullwindergit
Copy link

Facing same issue even after disabling 'secure boot' on below environment
Ubuntu 18.04.5 (as windows subsystem for linux)
minikube version: 1.16.0
virtualbox 5.2.42

@kullwindergit
Copy link

followed: https://tecadmin.net/install-virtualbox-on-ubuntu-18-04/ to attempt installation of virtualbox 6.1 but at the end of install process throws error:

This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.

There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.

This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.

There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.

This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.

There were problems setting up VirtualBox. To re-start the set-up process, run

$ /sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/virtualbox priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

9 participants