博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
如何处理错误消息Please install the Linux kernel header files
阅读量:2437 次
发布时间:2019-05-10

本文共 3613 字,大约阅读时间需要 12 分钟。

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

当我启动minilkube时遇到如下错误消息:

webp

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

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  .

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 

执行命令行:

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

所以解决这个错误的关键就是:

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

执行命令行: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/N]:

选择Y之后,成功安装。

webp

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/1

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

Installed:

kernel-devel.x86_64 0:3.10.0-862.14.4.el7

Complete!

webp

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

webp

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24475491/viewspace-2216988/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/24475491/viewspace-2216988/

你可能感兴趣的文章
不用重装 轻松解决Windows系统棘手问题(转)
查看>>
对移动通信网络优化工作的一些见解(转)
查看>>
正确网络配置建议 减少卡机死机的关键(转)
查看>>
智能手机Smartphone开发从零起步(五)(转)
查看>>
微软开始二代Windows Live 不见Cloud OS踪影
查看>>
创建ISAPI扩展(转)
查看>>
病毒及木马预警一周播报(06.04.17~04.23)(转)
查看>>
黑客口述:我的第一台3389肉鸡的经历(转)
查看>>
关于 cleanup stack 和 two phase consturction [1](转)
查看>>
来访者地址统计,很好的一个程序!(转)
查看>>
微软将在HEC上发布Windows 2003 64-bit(转)
查看>>
保护SQL Server数据库的十大绝招(转)
查看>>
百度搜索引擎使用指南(转)
查看>>
专家观点:安全成交换机的基本功能(转)
查看>>
树型结构在ASP中的简单解决(转)
查看>>
移动通信概要(转)
查看>>
CMD命令全集(转)
查看>>
深度探索C++对象模型 ( 第四部分 )(转)
查看>>
MySQL中的SQL特征(转)
查看>>
使用JBuilder和WTK2.2搭建MIDP1.0和MIDP2.0开发环境(转)
查看>>