我在启动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的原创文章,请关注公众号"汪子熙":
相关推荐
主要介绍了VirtualBox 错误:This kernel requires the following features not present on the CPU的相关资料,希望通过本文能帮助到大家,解决这样的问题,需要的朋友可以参考下
解决VirtualBox启动Unable to load R3 module问题,解决无法启动Android模拟器。
在64位win7下运行Virtualbox去安装系统时出错:Failed to open a session for the virtual machine,Unable to load R3 module xxxx/VBoxDD.DLL(VBoxDD),GetLastError=126,(VERR_MODULE_NOT_FOUND),打包了...
virtualbox的开机启动BAT文件,用计划任务设置开机启动,
使用 VirtualBox 进行 PXE 启动安装 Linux 操作系统
如何使用virtualbox启动ubuntu,并实现桥接方式连外网、网络邻居访问、ftp访问。 1. 环境说明 Win10 64bit Virtual 64bitv5.2.0 Ubuntu 16.04 arm64 2. 网络环境 采用联网主机上的360wifi做为对外网络...
Oracle VM VirtualBox 后台启动批处理 里面win7名称修改为自己虚拟机的名称即可启动
Ubuntu图像安装virtualbox总结
Oracle VM VirtualBox usb启动安装gho系统
这是一个简单的工具,可帮助以合理的默认值配置基本的VirtualBox虚拟机。 安装及使用 要求节点> = 8.X npm install node-virtualbox [--save] [-g] 示例运行: node bin.js --provision --vmname " hello " --ip ...
VirtualBox启动不弹出错误提示,适用win7, VirtualBox启动不弹出错误提示,适用win7
vagrant 2.2.19+virtualbox7.0 启动报错处理
virtualBox开机自动启动.pdf
在安装VirtualBox时候的VirtualBox Extension Pack文件: Oracle_VM_VirtualBox_Extension_Pack-6.1.4.vbox-extpack
VirtualBox-5.2.40软件下载,VBoxManage:guestcontrol命令的多个修复 USB:多项增强功能,可提高性能和稳定性 图形:2D和3D加速和渲染方面的增强 API:修复Python绑定中的异常处理错误 Linux:支持Linux内核5.6...
【虚拟机】VirtualBox简体中文版下载安装使用图解教程 此教程用的是VirtualBox 4.1.2.74291版本。 运行环境:WinXP, Win7, Win8, WinVista, Win2003, Win2000 绿色认证:无插件 放心使用 VirtualBox官网下载:...
启动虚拟机时报错(让执行:/etc/init.d/vboxdrv setup),解决方法: 1、需要安装一个linux-headers-XXX-generic 的包,命令:sudo apt-get install linux-headers-`uname -r` 2、sudo /etc/init.d/virtualbox start
CentOS7.6 Kernel rpms for VirtualBox, when install virtual box, need these files: -rw-r--r-- 1 50609176 Dec 28 07:14 kernel-3.10.0-957.27.2.el7.x86_64.rpm -rw-r--r-- 1 17602244 Dec 28 07:13 kernel-...
原本官方网站就是免费的virtualbox,来自https://www.virtualbox.org/ ,用于虚拟机,可以适用于各个操作系统