We are going to install Kali Linux into VirtualBox. So first we need to install VirtualBox, and then Kali Linux
Add the following line to your /etc/apt/sources.list:
deb http://download.virtualbox.org/virtualbox/debian yakkety contribAccording to your distribution, replace 'yakkety' by 'xenial', 'vivid', 'utopic', 'trusty', 'raring', 'quantal', 'precise', 'lucid', 'jessie', 'wheezy', or 'squeeze'.
(Up to version 3.2 the packages were located in the non-free section. Starting with version 4.0 they are located in the contrib section.)
sudo apt-get updatesudo apt-get install virtualbox-5.1Note: Ubuntu/Debian users might want to install the dkms package to ensure that the VirtualBox host kernel modules (vboxdrv, vboxnetflt and vboxnetadp) are properly updated if the linux kernel version changes during the next apt-get upgrade.
sudo apt-get install dkmsThis instructions below are made for installing Kali Linux in VirtualBox under a Debian based distro. In this example, the Kali Linux image is named 'Kali Test'. Substitute Kali Test for the name you want.
Download Kali Linux from https://www.kali.org/downloads/
1. Launch VirtualBox
2. Click on 'New'
3. Name and Operating System:
4. Memory Size:
5. Hard Disk:
6. Hard disk file type:
7. Storage on physical hard disk:
8. File location and size:
1. Launch VirtualBox
2. Right click on 'Kali Test' and select 'Settings'
3. Select 'Storage'
4. In the 'Storage Tree', click on 'Empty' under 'Controller: IDE'
5. Click on the small DVD disc icon under 'Optical Drive'
6. Click on 'Choose Virtual Optical Disk File...'
7. Browse the file explorer and select the Kali Linux ISO image you want to install and click on 'Open' button
8. Click 'OK'
1. Launch VirtualBox
2. Double click on 'Kali Test' image
3. Select 'Install'
4. Select your Language: English
5. Select your Location: United Kingdom
6. Configure the keyboard: Spanish
7. Type Hostname: 'kali' and select 'Continue'
8. Domain name: left blank and select 'Continue'
9. Root password: type password and select 'Continue'
10. Re-enter password: type password again and select 'Continue'
11. Partitioning method: 'Guided - use entire disk'
12. Select disk to partition: select the only option that appears
13. Partition scheme: select the option you prefer
14. Partition disks: select 'Finish partitioning and write changes to disk'
After installing Kali, it is recommended to install VirtualBox Guest Additions.
VirtualBox Guest addition will improve the overall graphic performance, and it will allow us to maximize the screen and also will allow us to copy and paste between the host system and the guest virtual system. These are the steps:
apt dist-upgraderebootWait for Kali Linux to reboot. Then type:
apt-get updateapt-get install -y virtualbox-guest-x11rebootYou can now maximize the window
tar -jxvf compat-wireless-2010-06-26.tar.bz2cd compat-wireless-2010-06-26make unloadmake loadifconfig