kali 安装 virtualBox

[OS] kali

step_1:
go to https://www.virtualbox.org/wiki/Linux_Downloads
then download Debian 7.0 ("Wheezy")  i386 |  AMD64

step_2:
sudo dpkg -i virtualbox-4.3_4.3.16-95972~Debian~wheezy_i386.deb

step_3:
run virtualbox in bash

step_4:
when we run virtualbox in bash, warning showing as below:

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
        available for the current kernel (3.14-kali1-686-pae) or it failed to
        load. Please recompile the kernel module and install it by

          sudo /etc/init.d/vboxdrv setup

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

step_5:
sudo /etc/init.d/vboxdrv setup

error happened as below:

Stopping VirtualBox kernel modules ...done.
Recompiling VirtualBox kernel modules ...failed!
 (Look at /var/log/vbox-install.log to find out what went wrong)

step_6:
sudo apt-get install linux-headers-$(uname -r)

step_7:
sudo /etc/init.d/vboxdrv setup

then successful message showing as below:
Stopping VirtualBox kernel modules ...done.
Recompiling VirtualBox kernel modules ...done.
Starting VirtualBox kernel modules ...done.

原文地址:https://www.cnblogs.com/aqing1987/p/4187031.html