我遇到无法启动虚拟机的问题。
未安装众所周知的内核驱动程序(rc=-1908)
我努力了
apt-get install linux-headers-4.9.0-kali4-amd64
linux-headers-4.9.0-kali4-amd64 is already the newest version (4.9.25-1kali1)
在 vbox 安装过程中,我读到以下错误消息:
Building for 4.9.0-kali3-amd64 4.9.0-kali4-amd64 Module build for kernel 4.9.0-kali3-amd64 was skipped since the kernel headers for this kernel does not seem to be installed.
virtualbox.service - LSB: VirtualBox Linux kernel module Loaded: loaded (/etc/init.d/virtualbox; generated; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2017-06-01 00:04:55 UTC; 4ms ago Docs: man:systemd-sysv-generator(8) Process: 5650 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)
Jun 01 00:04:55 kali systemd[1]: Starting LSB: VirtualBox Linux kernel module...
Jun 01 00:04:55 kali virtualbox[5650]: Loading VirtualBox kernel modules...…led!
Jun 01 00:04:55 kali virtualbox[5650]: failed! Jun 01 00:04:55 kali systemd[1]: virtualbox.service: Control process exited…us=1
Jun 01 00:04:55 kali systemd[1]: Failed to start LSB: VirtualBox Linux kern…ule.
Jun 01 00:04:55 kali systemd[1]: virtualbox.service: Unit entered failed state.
Jun 01 00:04:55 kali systemd[1]: virtualbox.service: Failed with result 'ex…de'.
根据输出我认为应该安装较旧的标题?
答案1
该错误是由于缺少 Virtual Box 内核模块(驱动程序)造成的。尝试这个:
apt-get install virtualbox-dkms
dkms add -m virtualbox -v 4.3.36 # or whatever the version of virtualbox-dkms you install.
这应该安装 Virtual Box 内核模块源代码,然后使用 Debian 的 DKMS 使用当前内核编译模块。
当然,考虑到您会弄乱内核(这是操作系统的关键点),您可能需要读首先使用 DKMS。