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
[root@mageia5][/home/afk]# modprobe -a vboxdrv
sudo /sbin/rcvboxdrv setup
编译和安装该模块到新的内核上。据我所知,现在错误消息中提到的命令是这个,而不是sudo /sbin/vboxconfig
。 - Henning Kockerbeck我找到了以下与virtualbox dkms相关的软件包:
您安装了这些软件包吗?
vagrant up
来使其运行。 - Artur Barseghyanrcvboxdrv setup
编译该模块,并将其与当前运行的内核设置好。 - Henning Kockerbeck遇到了同样的问题。花了几天时间寻找解决方法。 最后发现是EFI阻止了一些功能。我的解决方法是:
希望这能帮助像我一样苦苦寻找答案的旅行者。