我在启动minikube时,遇到如下错误消息:

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 vboxdrv kernel module is not loaded.

执行命令行:

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

解决方案:

1. 按照这篇文章的介绍安装gcc make perl package:

2. 安装kernel header文件。参考:

3. 执行命令行:

rcvboxdrv setup

确保看到消息:

vboxdrv.sh: Building VirtualBox kernel modules.

这个vboxdrv的作用,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 installs a "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.

我简单翻译一下:

为了在宿主机里以虚拟机的方式运行其他类型的操作系统,VirtualBox需要和宿主机操作系统的Kernel交互,进行交互的模块就称为vboxdrv驱动,它本身也是操作系统的一部分,负责控制操作系统的CPU和其他硬件资源。如果没有vboxdrv驱动,我们虽然仍旧可以使用VirtualBox manager来管理虚拟机,但无法在宿主系统上启动这些虚拟机。

rcvboxdrv setup执行后问题解决。

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

最新文章

  1. xshell连接本地Linux虚拟机!
  2. Node.js异步处理CPU密集型任务
  3. [笔记]dynamic gamma correction
  4. [算法]分治算法(Divide and Conquer)
  5. 分布式事务实现-Spanner
  6. Single linked list by cursor
  7. Linux学习之CentOS(十一)-----Linux 账号管理(转)
  8. hive升级遇到的几个小问题
  9. 封装jdbc、DBUtil
  10. 【Alpha】Scrum Meeting 2
  11. 逐步构建循环神经网络 RNN
  12. hadoop分布式集群完全安装(非HA)
  13. window.open()居中显示
  14. 2019.02.09 bzoj4710: [Jsoi2011]分特产(容斥原理)
  15. 洛谷.4721.[模板]分治FFT(NTT)
  16. 用shell查找某目录下的最大文件
  17. Requirejs快速使用
  18. java Web jsp和servlet的关系
  19. 【bzoj3262】陌上花开 CDQ分治+树状数组
  20. print函数end参数的作用

热门文章

  1. xgene:之ROC曲线、ctDNA、small-RNA seq、甲基化seq、单细胞DNA, mRNA
  2. 记微软OpenHack机器学习挑战赛
  3. SCUT - 336 - 酋雷姆 - 最小生成树
  4. header元素 footer元素 hgroup元素
  5. 安装 Twisted 解决ImportError: No module named zope.interface错误
  6. 加权并查集(银河英雄传说,Cube Stacking)
  7. Ajax遇到的那些坑
  8. NetCore + Mysql + EF:No coercion operator is defined between types 'System.Int16' and 'System.Boolean',
  9. oracle merge 目标表以及源表存在重复列的问题(转)
  10. jsp页面包含的几中方式