When I started minikube, I encountered the following error message:
Starting local kubernetes v1.10.0 cluster...
Starting VM...
E1010 03:27:37. 920050 4827 start. Go: 174] 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 available for the current kernel (3.10.0-862.11.6.el7.x86 _ 64) or it failed to load. please recompile the kernel module and install it by sudo/sbin/vboxconfig you will not be able to start VMS until this problem is fixed. 5.2.18r124319 ". please upgrade at https://www.virtualbox.org.
Retrying.
E1010 03:27:37. 921090 4827 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 available for the current kernel (3.10.0-862.11.6.el7.x86 _ 64) or it failed to load. please recompile the kernel module and install it by sudo/sbin/vboxconfig you will not be able to start VMS until this problem is fixed. 5.2.18r124319 ". please upgrade at https://www.virtualbox.org
The core error is:
The vboxdrv kernel module is not loaded.
Execute the command line:
Rcvboxdrv setup
Result:
Vboxdrv. sh: Stopping virtualbox services.
Vboxdrv. sh: Starting virtualbox services.
Vboxdrv. sh: Building virtualbox kernel modules.
This system is currently not set up to build kernel modules.
Please install the GCC make Perl packages from your distribution.
Please install the Linux kernel "Header" files matching the current Kernel
For adding new hardware support to the system.
The distribution packages containing the headers are probably:
Kernel-devel kernel-devel-3.10.0-862.11.6.el7.x86_64
Solution:
1. Follow the instructions in this article to install GCC make Perl package:
2. Install the kernel header file. Refer:
3. Execute the command line:
Rcvboxdrv setup
Make sure the message is displayed:
Vboxdrv. sh: Building virtualbox kernel modules.
The role of this vboxdrv is clearly written in the help documentation of virtualbox:
In order to run other operating systems in virtual machines alongside your main operating system, virtualbox needs to integrate very tightly into the system. to do this it installa "driver" module called vboxdrv which does a lot of that work into the system kernel, which is the part of the operating system which controls your processor and physical hardware. without this kernel module, you can still use the virtualbox manager to configure virtual machines, but they will not start.
A simple translation:
To run other types of Operating Systems in the host machine, virtualbox needs to interact with the kernel of the host machine's operating system. The Interaction module is called the vboxdrv driver, it is also part of the operating system and is responsible for controlling the CPU and other hardware resources of the operating system. Without the vboxdrv driver, although we can still use virtualbox manager to manage virtual machines, these virtual machines cannot be started on the host system.
Solve the problem after rcvboxdrv setup is executed.
For more original Jerry articles, follow the Public Account "Wang zixi ":
How to handle the virtualbox startup error message: the vboxdrv kernel module is not loaded