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

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

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

当我启动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 .

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

: Stopping VirtualBox services.

: Starting VirtualBox services.

: 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之后,成功安装。

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!

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

转载地址:http://jrefa.baihongyu.com/

你可能感兴趣的文章
Win7+Ubuntu11
查看>>
请问华为三层交换机里面的那个从IP是个什么意思? -
查看>>
kFeedback开源啦
查看>>
大数据传输,文件传输的专业解决方案!
查看>>
阿里云专家穆轩的《杭州九年程序员之“修炼”手册》
查看>>
JQuery:deferred对象的方法
查看>>
eyoucms问答 百度权重是什么
查看>>
win10中遇到qq视频时摄像头打不开没反应的解决方法
查看>>
介绍自己的一个Android插桩热修复框架项目QuickPatch
查看>>
关于textarea的ie9的maxlength不起作用的问题,请参考如下URL解决。
查看>>
Solr Facet 查询
查看>>
C++类的继承一
查看>>
数据库分库分表(sharding)系列(五) 一种支持自由规划无须数据迁移和修改路由代码的Sharding扩容方案...
查看>>
巧用VMware Workstation的clone来制作虚拟机模板
查看>>
Spring-Mybatis MapperScannerConfigurer 取不到PropertyPlaceholderConfigurer里的值
查看>>
HP DL380G4服务器前面板指示灯的含义
查看>>
数据结构_树结构
查看>>
常用URL地址
查看>>
每天一个linux命令(19):find 命令概览
查看>>
MySQL kill操作
查看>>