【发布时间】:2015-12-11 06:40:28
【问题描述】:
我已经安装了 virtualbox 4.3(也是 5.x 版)。安装没有问题。但是当我通过终端运行它时。它给出以下警告
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.10.0-229.11.1.el7.x86_64) or it failed to
load. Please recompile the kernel module and install it by
sudo /etc/init.d/vboxdrv setup
You will not be able to start VMs until this problem is fixed.
当虚拟机启动并且我选择一个虚拟机时,它给出了以下错误。
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
'/etc/init.d/vboxdrv setup'
as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
当我按照逗号运行时
sudo /etc/init.d/vboxdrv setup
出现这个错误
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modulesError! There are no instances of module: vboxhost
4.3.30 located in the DKMS tree.
Error! There are no instances of module: vboxhost
4.3.30 located in the DKMS tree.
Error! There are no instances of module: vboxhost
4.3.30 located in the DKMS tree.
Error! There are no instances of module: vboxhost
4.3.30 located in the DKMS tree.
[ OK ]
Trying to register the VirtualBox kernel modules using DKMS[ OK ]
Starting VirtualBox kernel modules [FAILED]
(modprobe vboxdrv failed. Please use 'dmesg' to find out why)
根据上述指南,我运行dmesg 命令,它在尾部显示以下结果。
[ 77.790816] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 77.826151] device virbr0-nic entered promiscuous mode
[ 77.916096] virbr0: port 1(virbr0-nic) entered listening state
[ 77.916105] virbr0: port 1(virbr0-nic) entered listening state
[ 77.916153] IPv6: ADDRCONF(NETDEV_UP): virbr0: link is not ready
[ 78.170824] virbr0: port 1(virbr0-nic) entered disabled state
[ 96.372599] fuse init (API version 7.22)
[ 116.798026] TCP: lp registered
[ 840.569814] warning: `VirtualBox' uses 32-bit capabilities (legacy support in use)
这是什么问题,我试图解决它大约两个月,但没有解决我的问题。 请指导和回答,因为我不是这方面的专家。
【问题讨论】:
-
我刚刚发布了解决方案without disabling Secure Boot here...
标签: virtual-machine virtualbox centos7