专栏首页Jerry的SAP技术分享如何处理VirtualBox启动错误消息:The vboxdrv kernel module is not loaded

如何处理VirtualBox启动错误消息:The vboxdrv kernel module is not loaded

我在启动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执行后问题解决。

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • 如何处理VirtualBox启动错误消息:The vboxdrv kernel module is not loaded

    Starting local Kubernetes v1.10.0 cluster...

    Jerry Wang
  • 一步步创建ABAP CDS view

    Once done, you can find your new project:

    Jerry Wang
  • Main idea of OPA design - 2446

    It helps us a lot to resolve OPA issue if we understand the lo...

    Jerry Wang
  • 如何处理VirtualBox启动错误消息:The vboxdrv kernel module is not loaded

    Starting local Kubernetes v1.10.0 cluster...

    Jerry Wang
  • 如果有人问你Java虚拟机执行线程同步及Synchronized实现原理,你就把这篇文章分享给他。

    在讲解Synchronized的实现原理之前,我们先了解一下Java虚拟机是如何执行线程同步的。

    格姗知识圈
  • 原创译文 | 新闻自由基金会现接受加密货币的捐赠方式

    新闻自由基金会现接受多种加密货币的捐赠,包括比特币、比特币现金、以太坊、莱特币以及zcash。

    灯塔大数据
  • HOJ 2148&POJ 2680(DP递推,加大数运算)

    Computer Transformation Time Limit: 1000MS Memory Limit: 65536K Total S...

    ShenduCC
  • CodeForces 156B Suspects(枚举)

    B. Suspects time limit per test 2 seconds memory limit per test 256 megaby...

    ShenduCC
  • 14 上线后不想让人看到源码怎么做?

    在安装了Vue Devtools之后,在chrome浏览器开发模式下,打开vue面板,选择组件,然后就可以直接查看和修改data数据:

    石桥码农
  • Codeforces 839C Journey【DFS】

    C. Journey time limit per test:2 seconds memory limit per test:256 megabytes inp...

    Angel_Kitty

扫码关注云+社区

领取腾讯云代金券

玩转腾讯云 有奖征文活动