nVidia 驱动程序阻止 Virtualbox(/dev/vboxdrv 不存在)

nVidia 驱动程序阻止 Virtualbox(/dev/vboxdrv 不存在)

安装 nvidia-387 驱动程序后,我似乎无法再运行 virtualbox。

VBoxManage --version输出:

WARNING: The character device /dev/vboxdrv does not exist.
     Please install the virtualbox-dkms package and the appropriate
     headers, most likely linux-headers-generic.

You will not be able to start VMs until this problem is fixed.
5.1.30_Ubuntur118389

尝试安装 virtualbox-dkms:

virtualbox-dkms is already the newest version (5.1.30-dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Linux 标头:

linux-headers-generic is already the newest version (4.13.0.21.22).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

通过清除 nvidia 驱动程序,我可以毫无问题地运行 virtualbox,但明显的缺点是,这样我就无法享受显卡的福利。

您对此有什么巧妙的解决方案吗?我注意到有人提到禁用安全启动,但它已经被禁用了,而且我相信问题出在驱动程序上,因为当我卸载它们时,virtualbox 运行正常。

相关内容