I get it that most people want to install Kali Linux as a virtual machine BUT.. i am trying to do the opposite entirely and "Retrofit" kali with security and repair tool's in this one instance rather that destructive ones but one thing stands in my way:
countless attempts to properly install Virtualbox into a USB install of Kali Linux has failed miserably.
It stands to reason if you can do it one way then in verbose should be a possibility as well. Yes, i have done countless hours research on this. Nothing. Why am i doing this? Because i made a Windows 7 Ultimate V.M. (legit) and installed some bare minimum things like Hard Drive Regenerator to it that W.I.N.E. or alike simply can not handle properly and as tested on other machines if the guest additions are there it works well.
Simply what i need to know to save my PC with this is as follows:
proper install of Virtualbox inside Kali Linux 1.1.0 and the guest additions also.
What i have tried and failed thus far from simple notes not intended to actually use here since it failed:
leafpad /etc/apt/sources.list
deb
http://http.kali.org/ /kali main contrib non-free
deb
http://http.kali.org/ /wheezy main contrib non-free
deb
http://http.kali.org/kali kali-dev main contrib non-free
deb
http://http.kali.org/kali kali-dev main/debian-installer
deb-src
http://http.kali.org/kali kali-dev main contrib non-free
deb
http://http.kali.org/kali kali main contrib non-free
deb
http://http.kali.org/kali kali main/debian-installer
deb-src
http://http.kali.org/kali kali main contrib non-free
deb
http://security.kali.org/kali-security kali/updates main contrib non-free
deb-src
http://security.kali.org/kali-security kali/updates main contrib non-free
deb
http://download.virtualbox.org/virtualbox/debian wheezy contrib
sudo wget -q
https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <Specified hexadecimal numbers here from error>
sudo apt-get update
sudo apt-get install linux-headers-$(uname -r)
sudo wget
download.virtualbox.org/virtualbox/4.2.14/virtualbox-4.2_4.2.14-86644~Debian~wheezy_i386.deb
<OR>
dpkg -i virtualbox-4.2_4.2.14-86644~Debian~wheezy_i386.deb
<OR>
sudo apt-get install virtualbox-4.3
sudo apt-get install dkms
launch virtualbox by just typing: "virtualbox" command on the terminal.
I thought this would solve the format issue at least:
Uninstall the current version completely, then install a version lower.
Version 4.1.18 is used on Windows and should work in Linux.
sudo apt-get install virtualbox-4.1
[FAIL] Failed, trying without DKMS ... failed!
[....] Recompiling VirtualBox kernel modules:
[FAIL] Look at /var/log/vbox-install.log to find out what went wrong ... failed!
THE LOG:
Makefile:172: *** Error: unable to find the sources of your current Linux kernel.
Specify KERN_DIR=<directory> and run Make again.
sudo apt-get install dkms don't work in ither terminal or package managment.
lsb_release -a
apt-get update && apt-get install -y linux-headers-$(uname -r)
yum info kernel-headers
sudo aptitude install linux-headers-3.0.0-1-686-pae
sudo /etc/init.d/vboxdrv setup
You can also start VirtualBox in Headless mode using VBoxHeadless like this:
$ VBoxHeadless -startvm "VMName"
To uninstall virtualbox with its configuration settings type:
sudo apt-get --purge remove virtualbox