docker-machine create -d virtualbox test 报错

Running pre-create checks...
Error with pre-create check: "We support Virtualbox starting with version 5. Your VirtualBox install is \"WARNING: The vboxdrv kernel module is not loaded. Either there is no module\\n         available for the current kernel (3.10.0-693.21.1.el7.x86_64) or it failed to\\n         load. Please recompile the kernel module and install it by\\n\\n           sudo /sbin/vboxconfig\\n\\n         You will not be able to start VMs until this problem is fixed.\\n5.2.10r122088\". Please upgrade at https://www.virtualbox.org"

玩docker-machine用virtualbox驱动的时候启动报错。报错信息是说没有可用的kernel (3.10.0-693.21.1.el7.x86_64)。

但是我并没有搜索到这个kernel,只是搜到下面这个

[root@ecs-d900 ~]# yum search kernel-devel
已加载插件:fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
================================================================================== N/S matched: kernel-devel ==================================================================================
kernel-devel.x86_64 : Development package for building kernel modules to match the kernel

安装试试

yum install kernel-devel
Running transaction
  正在安装    : kernel-devel-3.10.0-693.21.1.el7.x86_64                                                                                                                                    1/1 
  验证中      : kernel-devel-3.10.0-693.21.1.el7.x86_64                                                                                                                                    1/1 

已安装:
  kernel-devel.x86_64 0:3.10.0-693.21.1.el7                                                                                                                                                    

完毕!

居然能对上,一毛一样。

然后重新设置virtualbox

/sbin/vboxconfig

搞定。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 摘要:概述 什么是docker-machine,简单来说就是给你快速创建一个docker容器环境的,怎么说呢,如果...
    暖夏未眠丶阅读 2,525评论 1 3
  • 背景: 阅读新闻 12C CDB模式下RMAN备份与恢复 [日期:2016-11-29] 来源:Linux社区 作...
    阳屯okyepd阅读 3,612评论 0 7
  • 对于我来说,电影里不仅有精心编排的音乐歌舞,还有美到不行的色彩搭配,以及那些充满怀旧感的电影镜头,重要的是它讲述了...
    catbaker阅读 571评论 0 1
  • 全局广播:在整个Android系统中应用不但可以接受自己的广播,也可以接受别的应用的广播,或则系统的广播(开机广播...
    沈凤德阅读 1,227评论 0 0
  • 成功交易的秘密就是找到一套适合你的交易系统。这个交易系统是非机械的,适合你自己个性的,有完善的交易思想、细致的市场...
    f4f769f861f0阅读 720评论 0 1