启动minikube时,遇到如下错误消息:
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
出现如下错误:
按照报错提示,安装kernel-devel kernel-devel
yum install -y kernel-devel (安装内核文件)
另外需要额外安装基础环境: gcc make perl
yum install -y gcc make perl
安装完毕后开启vitrualbox:
rcvboxdrv setup 开启正常后开启minikube
minikube start 正常