答案1
我也遇到了同样的问题,如果你不使用 vagrant,就中止它。
我运行时的输出vagrant up
:
The provider 'virtualbox' that was requested to back the machine
'default' is reporting that it isn't usable on this system. The
reason is shown below:
VirtualBox is complaining that the kernel module is not loaded. Please
run `VBoxManage --version` or open the VirtualBox GUI to see the error
message which should contain instructions on how to fix this error.
输出VBoxManage --version
:
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.19.0-47-generic) or it failed to
load. Please recompile the kernel module and install it by
sudo /sbin/rcvboxdrv setup
You will not be able to start VMs until this problem is fixed.
5.0.14r105127
输出sudo /sbin/rcvboxdrv setup
:
Bad argument setup
运行此命令后我的问题解决了sudo /usr/lib/virtualbox/vboxdrv.sh setup
$ sudo /usr/lib/virtualbox/vboxdrv.sh setup
Stopping VirtualBox kernel modules ...done.
Recompiling VirtualBox kernel modules ...done.
Starting VirtualBox kernel modules ...done.
$ VBoxManage --version
5.0.14r105127
答案2
您可以随时使用修改探针添加内核模块。我通过以下方式解决了服务器上的相同问题:
[root@mageia5][/home/afk]# modprobe -a vboxdrv
答案3
我找到了以下与 virtualbox dkms 相关的软件包:
- virtualbox-dkms
- virtualbox-guest-dkms
您安装了这些软件包吗?
答案4
警告:vboxdrv 内核模块未加载。当前内核(4.7.1-1-ARCH)没有可用模块,或者加载失败。请重新编译内核模块并通过 sudo 安装
/sbin/vboxconfig
在解决此问题之前,您将无法启动虚拟机。
对我来说,解决这个问题的方法是安装 linux-headers 包