无法在 Ubuntu 主机上运行 Kali VM

无法在 Ubuntu 主机上运行 Kali VM

我尝试在 Ubuntu 上创建 Kali 虚拟机,但无法启动它。它没有执行预期的操作并启动,而是返回以下错误消息:

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. 

我该如何修复此问题并使我的虚拟机上线?

答案1

sudo apt-get install linux-headers-generic build-essential dkms
sudo apt-get autoremove --purge virtualbox-dkms
sudo reboot
sudo apt-get install virtualbox-dkms

感谢您的编辑,我是用手机输入的

相关内容