为什么我的计算机无法正确运行 VIrtualBox?

为什么我的计算机无法正确运行 VIrtualBox?

当我运行 VirtualBox 时,我得到以下输出:

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.

我尝试运行sudo apt-get install virtualbox-dkmssudo apt-get install linux-headers-generic。我甚至尝试删除并重新安装它们。我也尝试过sudo dpkg-reconfigure virtualbox-dkmssudo dpkg-reconfigure virtualbox。我还尝试过启动虚拟机:也许错误消息是错误的。出现的窗口显示以下内容:

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or 
there is a permission problem with /dev/vboxdrv. Please install 
virtualbox-dkms package and load the kernel module by executing

'modprobe vboxdrv'

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.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The 
support driver is not installed. On linux, open returned ENOENT. 

于是我运行了一下sudo modprobe vboxdrv,结果如下:

modprobe: ERROR: could not insert 'vboxdrv': Required key not available

但什么都没能解决我的问题。我仍然无法启动虚拟机。有什么我还没试过的吗?如何让我的设备运行虚拟机?

答案1

您很可能受到最近加强安全启动限制的影响。我不得不关闭安全启动才能运行 Virtualbox。

如果您正在运行 64 位 UEFI 系统,请关闭安全启动,然后您应该能够正确安装它。

相关内容