LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-25-2015, 02:18 PM   #1
sulobaidsuevin
Member
 
Registered: Jan 2014
Distribution: Debian Kali Linux 1.0 -Custom Brew ;)
Posts: 35

Rep: Reputation: Disabled
How to install Virtualbox in Kali Linux 1.1.0


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
 
Old 05-25-2015, 03:23 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Is this the correct kernel?
3.0.0-1-686-pae
 
Old 05-25-2015, 09:40 PM   #3
sulobaidsuevin
Member
 
Registered: Jan 2014
Distribution: Debian Kali Linux 1.0 -Custom Brew ;)
Posts: 35

Original Poster
Rep: Reputation: Disabled
I entered into the root terminal the following:
uname -r
Which result's in the following output:
3.18.0-kali3-686-pae

Of Note:
I noticed:
"Acer Aspire 3620 Laptop"
In your footer and thought it worth noting i am using an old revived junk PC that is a Acer Aspire net book for this because Kali is all that will boot on it in order to let it make partition repairs uninterrupted some ware to the side here since it takes many days and nights non-stop often, but i am not using that to build it on. I am using a Dell to build it. I am not really planning much Kali use there so maybe another Distro to try would also result in the same goal if it works on that make/model for sure. Some say they do and do not.

Also the previously mentioned "yum" commands were replaced with "sudo ap-get" instead. Obviously "yum" will not work. Just thought it was worth a try since some of the commands are helpful and rather universal sometimes. I understand that looked a bit off and wanted to clarify/avoid some confusion. Again, it was just the notes i took as i did this so far and are imperfect.

Thanks.
 
Old 05-25-2015, 11:42 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I was looking at this
Quote:
yum info kernel-headers
sudo aptitude install linux-headers-3.0.0-1-686-pae
sudo /etc/init.d/vboxdrv setup
 
Old 05-26-2015, 12:19 AM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Did you insall Qt, SDL, GCC, DKMS and kernel-devel?

What did the /var/log/vbox-install.log say went wrong?
 
Old 05-26-2015, 12:21 AM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Quote:
Originally Posted by EDDY1 View Post
I was looking at this
Last I checked Kali Linux is a Debian based distribution thus using su.

I use yum when I install software on my RH or Centos box.
 
Old 05-26-2015, 12:47 AM   #7
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Originally Posted by Ztcoracat View Post
Last I checked Kali Linux is a Debian based distribution thus using su.

I use yum when I install software on my RH or Centos box.
Yes the yum command was what I was referring to.
 
Old 05-26-2015, 12:48 AM   #8
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
@OP can you post your /etc/apt/sources.list?
 
Old 05-26-2015, 12:49 AM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706
Hi,
Quote:
Originally Posted by sulobaidsuevin View Post
apt-get update && apt-get install -y linux-headers-$(uname -r)
Did you actually do this? If so what happened? If not, please do so, and then try to install virtualbox again.

Evo2.
 
Old 05-26-2015, 01:36 AM   #10
sulobaidsuevin
Member
 
Registered: Jan 2014
Distribution: Debian Kali Linux 1.0 -Custom Brew ;)
Posts: 35

Original Poster
Rep: Reputation: Disabled
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)

The above failed. I completely removed Virtuualbox from the USB device currently. Maybe someone has done this? Ready for a fresh try currently. Thanks.

Last edited by sulobaidsuevin; 05-26-2015 at 01:38 AM.
 
Old 05-26-2015, 02:09 AM   #11
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706
Hi,
Quote:
Originally Posted by sulobaidsuevin View Post
apt-get update && apt-get install -y linux-headers-$(uname -r)

The above failed.
What do you mean by "failed"? Exactly what was reported when you ran the above commands?

Evo2.
 
Old 05-26-2015, 02:16 AM   #12
sulobaidsuevin
Member
 
Registered: Jan 2014
Distribution: Debian Kali Linux 1.0 -Custom Brew ;)
Posts: 35

Original Poster
Rep: Reputation: Disabled
Qt, SDL & GCC installed. DKMS and kernel-devel won't even if i try to force it to with the -f command. Bear in mind this is the 3rd re-install, the disk is fine and i have completely removed it now 3 times and re-downloaded it 3 times also. No joy.

Again, the log is as follows with this as the only error it shows:
[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.

So what i am currently hoping for since we went over what did not work, is a fresh method based on the provided info in basic steps unmistakably clear. I can then report back here with the results. Any other info needed? I dunno what else there could be honestly.
 
Old 05-26-2015, 02:26 AM   #13
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706
Hi,
Quote:
Originally Posted by sulobaidsuevin View Post
Any other info needed?
Just the information I requested in my previous two posts.

Evo2.
 
Old 05-26-2015, 02:30 AM   #14
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Quote:
sudo apt-get install dkms don't work in ither terminal or package managment.
Without dkms installed the VBox host kernel modules won't get updated if the kernel changes.

-:-Please post for Mr. evo what the terminal returned when you ran
apt-get update && apt-get install -y linux-headers-$(uname -r)-:-

Quote:
Error: unable to find the sources of your current Linux kernel.
That's the exact same error I was getting and until I installed dkms and kernel-devel first I couldn't for whatever the reason install VBox.

You will also need to install build essentials if you haven't already.
https://forums.virtualbox.org/viewtopic.php?f=7&t=52458

Last edited by Ztcoracat; 05-26-2015 at 02:43 AM.
 
Old 05-26-2015, 02:46 AM   #15
sulobaidsuevin
Member
 
Registered: Jan 2014
Distribution: Debian Kali Linux 1.0 -Custom Brew ;)
Posts: 35

Original Poster
Rep: Reputation: Disabled
Ztcoracat:

So just to be clear, i should do as i was *except* ... before installing v.b. in Kali i should attempt to install the dkms and kernel-devel first? Are we all just assuming Debian Wheezy base and not using Kali or are we using Kali as the experience base for this because yum failed and sudo apt-get worked. I can't see why yum wouldn't work if the languages were there but i don't think they are and this is a basic setup. Its sole purpose is to run that v.m.. So some kind of step by step install guide to get us all on the same page would be a good idea, if i don't hear one by this time tomorrow what i will do is note everything as it is done and report that back here with errors and logs and commands used and alike output.

Important note:
I installed BleachBit and ran it fully after the removal of Virtualbox on Kali.
I seriously doubt there are log's left at the moment, that done a few hours before this post hence the copied notes. However the error's give was all i got. There were no others except a few duplicate entry's on the sources list which were long removed. I did an offline USB to USB install of Kali and no mirrors were chosen so i manually added the source list entry's for it, am i missing some thing with that by chance?

Edit:
I just noticed your recommendation to install build essentials, that was one i overlooked.

Last edited by sulobaidsuevin; 05-26-2015 at 02:48 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kali Linux in Virtualbox Visal Linux - Newbie 2 12-02-2014 09:17 PM
VirtualBox on Kali Linux Host memanemanoj Linux - Software 1 10-02-2013 08:18 AM
Error came on 1st boot of Kali Linux on VirtualBox. salman.ali.geek Linux - Virtualization and Cloud 1 07-02-2013 05:27 PM
Kali Linux in VirtualBox starcityque Linux - Newbie 3 04-19-2013 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration