Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to handle error message Please install the Linux kernel header files

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Please install the Linux kernel "header" files matching the current kernel

I encountered the following error message when I started minilkube:

#

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 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:57:24.566250 9896 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

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

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

So the key to solving this mistake is:

Please install the Linux kernel "header" files matching the current kernel

Execute 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 0RU 3.10.0-862.14.4.el7 will be installed

-> Finished Dependency Resolution

Dependencies Resolved

=

Package Arch Version Repository Size

=

Installing:

Kernel-devel x8631 64 3.10.0-862.14.4.el7 rhel_7_server_rpms 16m

Transaction Summary

=

Install 1 Package

Total download size: 16 M

Installed size: 37 M

Is this ok [y/d/N]:

After selecting Y, the installation is successful.

Install 1 Package

Total download size: 16 M

Installed size: 37 M

Is this ok [y/d/N]: y

Downloading packages:

Delta RPMs disabled because / usr/bin/applydeltarpm not installed.

Kernel-devel-3.10.0-862.14.4.el7.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.el7.x86_64 1 Compact 1

Verifying: kernel-devel-3.10.0-862.14.4.el7.x86_64 1 Compact 1

Installed:

Kernel-devel.x86_64 0VOR 3.10.0-862.14.4.el7

Complete!

For more original Jerry articles, please follow the official account "Wang Zixi":

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report