Kali 上的 VirtualBox 问题

Kali 上的 VirtualBox 问题

我在 Kali 4.6.0-kali1-amd64 上安装了 VirtualBox。VB 启动了,但是当我启动 VM 时,它给出了以下错误:

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/sbin/vboxconfig'

as root.

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

我尝试通过多种方式修复此问题,但仍然无法运行。如何修复此错误以便运行我的虚拟机?

////////

删除了 VB。从 VB 网站下载了 deb。使用时apt-get install dkms build-essential linux-headers-$(uname -r)返回以下错误:

E: Unable to locate package linux-headers-4.6.0-kali1-amd64 E: Couldn't find any package by glob 'linux-headers-4.6.0-kali1-amd64' E: Couldn't find any package by regex 'linux-headers-4.6.0-kali1-amd64'

我怎样才能解决这个问题?

////////////////// 更新:

通过添加到我的源列表修复了标题问题deb http://mirror.nus.edu.sg/kali/kali kali-rolling main non-free contrib。重新安装了 VB。现在我得到:

RTR3InitEx failed with rc=-1912 (rc=-1912)

The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing

'/sbin/vboxconfig'

may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.

where: supR3HardenedMainInitRuntime what: 4 VERR_VM_DRIVER_VERSION_MISMATCH (-1912) - The installed support driver doesn't match the version of the user. 

答案1

Virtual Box 安装日志中似乎有错误。

  1. 删除 VirtualBox 并重新启动主机。
  2. 确保所有东西都是最新的。
  3. 安装以下软件包。(sudo apt-get install dkms build-essential linux-headers-$(uname -r))
  4. 从官方来源获取 Virtual Box .deb 或 wget。

希望这能帮助你解决问题:)

答案2

为了修复标头和内核问题,我将其添加deb http://mirror.nus.edu.sg/kali/kali kali-rolling main non-free contrib到源列表中。因为我正在安装 VB 的 deb 包,所以我得到了:

RTR3InitEx failed with rc=-1912 (rc=-1912)

The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing

'/sbin/vboxconfig'

may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.

where: supR3HardenedMainInitRuntime what: 4 VERR_VM_DRIVER_VERSION_MISMATCH (-1912) - The installed support driver doesn't match the version of the user.

我不确定是什么导致了这个问题,但我通过清除 deb 安装并使用 重新安装 VB 解决了这个问题apt-get install virtualbox

相关内容