因为在学习 docker 至 swarms,需要安装 docker-machine,所以也就需要安装 virtualbox。但是一直安装不成功, 下面是错误信息
● vboxdrv.service - VirtualBox Linux kernel module
Loaded: loaded (/usr/lib/virtualbox/vboxdrv.sh; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2019-02-22 12:36:01 CST; 22min ago
Process: 2000 ExecStart=/usr/lib/virtualbox/vboxdrv.sh start (code=exited, status=1/FAILURE)
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
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-514.26.2.el7.x86_64
vboxdrv.service: control process exited, code=exited status=1
Failed to start VirtualBox Linux kernel module.
Unit vboxdrv.service entered failed state.
vboxdrv.service failed.
这是:kernel-devel
[root@VM_0_15_centos ~]# yum install kernel-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Package kernel-devel-3.10.0-957.5.1.el7.x86_64 already installed and latest version
Nothing to do
这是: kernel-headers
[root@VM_0_15_centos ~]# yum install kernel-headers
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Package kernel-headers-3.10.0-957.5.1.el7.x86_64 already installed and latest version
Nothing to do
1
d0m2o08 2019-02-22 13:16:44 +08:00
yum 装的 kernel-devel 和 kernel-headers 与你现在的内核版本不一致吧
uname -r 看看现在的内核版本 |
2
taolu 2019-02-22 13:17:33 +08:00 via Android
需要安装它要求的版本吧
|
3
kokutou 2019-02-22 13:19:39 +08:00
上面 kernel-devel-3.10.0-514.26.2.el7.x86_64
下面 kernel-devel-3.10.0-957.5.1.el7.x86_64 |
4
tomczhen 2019-02-22 13:23:02 +08:00 via Android
装个 PVE
|
5
defunct9 2019-02-22 13:30:08 +08:00
开 ssh,让我上去看看撒
|
8
JoyBanana 2019-02-22 14:08:53 +08:00
@defunct9 不是不是,是说我天天摸鱼。看到你就想着要抓紧学习运维知识。话说为啥感觉总是能在 V2 看见你 [狗头]
|
10
putaozhenhaochi 2019-02-22 14:30:00 +08:00 via Android
Linux 下为什么要装 docker-machine ?
|
11
samples OP @kokutou yum install kernel-devel-3.10.0-514.26.2.el7.x86_64 这个版本的 提示没有找到对应的包
|
12
samples OP @putaozhenhaochi 模拟集群吧。官网是这样写的:Get Docker Machine, which is pre-installed with Docker Desktop for Mac and Docker Desktop for Windows, but on Linux systems you need to install it directly。其实我也可以用自己的 windows + linux 去模拟。但是我的 windows 是家庭版,docker 不支持。
|
13
putaozhenhaochi 2019-02-22 14:47:53 +08:00 via Android
@samples 是给 Windows 和 Mac 用的。Linux 可以直接安装 dock er
|
15
Dictator 2019-02-22 14:52:56 +08:00
可能需要修改一些配置文件,我之前安装 minikube 的时候遇见过类似的信息
|
16
samples OP @putaozhenhaochi https://docs.docker.com/get-started/part4/ linux 可以直接安装 docker,我也安装了。只不过这一章是让不同机器中运行的实例加入集群中
|
17
Dictator 2019-02-22 14:54:23 +08:00
你需要看下当前的内核版本,是否升级了内核没有重启
|
19
pppr900d 2019-09-05 19:11:52 +08:00
请问你解决了吗,我也是遇到这问题
|