To install vbox you need to install the following :
apt-get install linux-headers-amd64
apt-get install build-essential dkms && apt-get remove --purge virtualbox-dkms
->reboot
apt-get install virtualbox-dkms virtualbox-source virtualbox vde2
Dynamic Kernel Module Support (DKMS) is a
program/framework that enables generating Linux kernel modules whose
sources generally reside outside the kernel source tree. The concept is
to have DKMS modules automatically rebuilt when a new kernel is
installed.
An essential feature of DKMS is that it automatically
recompiles all DKMS modules if a new kernel version is installed. This
allows drivers and devices outside of the mainline kernel to continue
working after a Linux kernel upgrade.
Another benefit of DKMS is that
it allows the installation of a new driver on an existing system,
running an arbitrary kernel version, without any need for manual
compilation or precompiled packages provided by the vendor.
DKMS was
written by the Linux Engineering Team at Dell in 2003. It is included in
many distributions, such as Ubuntu, Debian, Fedora, and SuSE. DKMS is
free software released under the terms of the GNU General Public License
(GPL) v2 or later.
DKMS supports both the RPM and DEB package formats out-of-the-box.
Steps to do proper DKMS installation.
sudo apt-get install build-essential dkms sudo apt-get remove --purge virtualbox-dkms
*For
some crazy reason there is a bug report which says you need to reboot
the OS before installing again. so the reboot and issue the below
command.
sudo apt-get install virtualbox-dkms
The
other important thing is that Kali 2.0 does not ship with metasploit
pro. The latest version includes only the open-source based metasploit
framework. The pro version can be downloaded from the Rapid7 website.
The starting of metasploit service also got changed , please note it
below.
/etc/init.d/postgresql start msfdb init msfconsole