How to deal with error message please install the Linux kernel header files

Please install the linux kernel “Header” Files Matching The Current Kernel

When I started minilkube, I encountered the following error message:

######################################################################### #####################################################

Minikube Setup with Driver VirtualBox

######################################################################### #####################################################

Starting Local Kubernetes v1.10.0 Cluster …

Starting VM …

E1010 03: 57: 24.565157 9896 Start.go: 174] Error Starting 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: 57: 24.566250 9896 Start.go: 180] Error Starting 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

Execute the command line:

RCVBOXDRV SETUP

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 Linux kernel “Header” Files Matching The Current Kernel Admin 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

So the key to solving this mistake is:

Please install the linux kernel “Header” Files Matching The Current Kernel

Execute the command line: Yum Install Kernel-Devel

Loaded Plugins: Product-ID, Search-Disabled-Repos, Subscription-Manager

This System is not registered with an entitlement server. You can use subscription-manager to register.

Resolving dependencies

-> Running Transaction CHECK

—> package kernel-devel.x86_64 0: 3.10.0-862.14.4.el7 Will be installed

-> Finished Dependency Resolution

Dependencies resolved

================================================================================================================================================================================================ ================================================================================================================================================================================================ ====

Package Arch Version Repository Size

================================================================================================================================================================================================ ================================================================================================================================================================================================ ====

Installing:

KERNEL-DEVEL X86_64 3.10.0-862.14.4.EL7 RHEL_7_SERVER_RPMS 16 m

Transaction Summary

================================================================================================================================================================================================ ================================================================================================================================================================================================ ====

Install 1 Package

Total Download Size: 16 M

Installed Size: 37 m

IS this OK [Y / D]:

After select Y, it is successfully installed.

Install 1 Package

Total Download Size: 16 M

Installed Size: 37 m

IS this OK [Y / D]: Y

Downloading Packages:

Delta RPMS Disabled Because / USR / BIN / ApplyDeltarpm Not Installed.

KERNEL-Devel-3.10.0-862.14.4.l7.x86_64.rpm | 16 MB 00:00:18

Running Transaction CHECK

Running Transaction Test

Transaction test succeeded

Running Transaction

Installing: kernel-devel-3.10.0-862.14.4.l7.x86_64 1/1

Verifying: kernel-devel-3.10.0-862.14.4.el7.x86_64 1 / 1INSTALLED:

KERNEL-DEVEL.X86_64 0: 3.10.0-862.14.4.El7

Complete!

To get more Jerry’s original articles, please pay attention to the public account “Wang Zi Xi”:

Related Posts