Answers:
同样的问题,如果您不使用流浪汉,则将其中止。
我运行时的输出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
我找到了以下与virtualbox dkms相关的软件包:
您安装了这些软件包吗?
vagrant up
了它的运行。
您始终可以使用modprobe添加内核模块。我通过执行以下操作解决了服务器上的相同问题:
[root@mageia5][/home/afk]# modprobe -a vboxdrv
sudo /sbin/rcvboxdrv setup
。如今,AFAIR在错误消息中提到了此命令,而不是sudo /sbin/vboxconfig
。
rcvboxdrv setup
编译模块并使用当前运行的内核进行设置。