Author Topic: How to make VirtualBox work in BackBox linux 3.8.0-30-generic [SOLVED]  (Read 20068 times)

p1ngv1n15ed

  • Newbie
  • *
  • Posts: 8
    • View Profile
Hi guys and girls!

I have this big problem i am struggling to solve. Please, any ideas or solutions WELCOME!!!!!!!!

I have an old Dell Inspiron 1720 here i had installed BackBoxLinux   linux 3.8.0-30-generic.
It has 4Gb memory and DualCore, i wanted to use it for my pentest study.

I had installed VirtualBox version 4.1.12_Ubuntu r77245

I had installed virtual machine BackTrack5R3 no problem.

As soon as i try to run this virtual machine i have an error.

First window:
Failed to open a session for the virtual machine BackTrack5R3.
The virtual machine 'BackTrack5R3' has terminated unexpectedly during startup with exit code 1.

Second window:


The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

I tried to run sudo: /etc/init.d/vboxdrv: command not foundbut i get this.

Please if anybody can help me!?

Thaks a lot!!!!!!!!!!!

Pav

« Last Edit: November 24, 2014, 05:52:52 PM by raffaele »



p1ngv1n15ed

  • Newbie
  • *
  • Posts: 8
    • View Profile
Sorry

One more thing that i ant to add.
I tried Kali linux on this laptop and i had same problems, i struggled ith it for a while but than decided to move to BackBox as my first love is Ubuntu. If not for Ubuntu i would never find out about Linux.

Pav ??? ??? ??? 



p1ngv1n15ed

  • Newbie
  • *
  • Posts: 8
    • View Profile
I tried to install VMware and it is asks me for: kernel headers 3.8.0-30-generic. Before you can run run VMware , several modules must be compiled and loaded into running kernel.

         kernel headers 3.8.0-30-generic

Kernel headers for version 3.8.0-30-generic were not found if you installed them in non default path you can specify the path below. Other wise refer to your  distribution's documentation for installation instructions and click  Refresh to search again in default locations.

After that location box where i need to select the path.

Thanxs.

Pav



SaThaRiel

  • Guest
Nice talking to yourself? ;)

I wouldnt use VMWare anymore - its always ages behind newer kernel versions and you need a lot of tweaks to make it running on Linux.

Have you tried this:

https://www.virtualbox.org/wiki/Linux_Downloads#Debian-basedLinuxdistributions

4.3 is the actual virtualbox version. You should also check if your processor supports kvm_intel/amd-v, which may not be the case. Best is to look up your processor features on the manufacturers site.

Hope that helps.



p1ngv1n15ed

  • Newbie
  • *
  • Posts: 8
    • View Profile
Not really nice talk to myself, but thanx for your post.
i used VMware just as proof of concept that i t is does not matter it is VMbox or WMware my laptop does not accept it.
I tried your link,i have been there before, does not help me.

Thank you!
Any way, I really appreciate you post. Thanx




b4d_bl0ck

  • Sr. Member
  • ****
  • Posts: 285
    • View Profile
p1ngv1n15ed,
all you have to do is following the error messages. They are telling you what you miss on your system.
Please, it seems you didn't even searched for that on a search engine, otherwise i guess you'd have found lots of informations.
Hackers are not lazy minds. (well... not all day long)  ;)

Have a nice search!
Bye.

bool secure = check_paranoia() ? true : false;


weVeg

  • Hero Member
  • *****
  • Posts: 737
    • View Profile
Hackers are not lazy minds. (well... not all day long)  ;)
mmm, let's talking about that.....
sorry for OT, I could not resist =)

una voce libera è sempre liberatrice
under_r00t


p1ngv1n15ed

  • Newbie
  • *
  • Posts: 8
    • View Profile
For b4d_bl0ck

Thanks for your encouragement!

Trust me i have searched everything i could find about this problem.

And follow  the error messages give me:

Please reinstall the kernel module by executing

'/etc/init.d/vboxdrv setup'




Gives me:sudo: /etc/init.d/vboxdrv: command not found


sudo apt-get install DKMS
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package DKMS


I have installed VBox on different comps no problem but this laptop really gives me headache.

 i am not lazy i just hit the wall like circular thinking thing and if you can point me in the right direction i would really appreciate your input.

Thanks any way

Pav :)



p1ngv1n15ed

  • Newbie
  • *
  • Posts: 8
    • View Profile


Thank you very much everybody for your scarce input!

I HAVE SORTED THIS OUT ::)

Special thanks goes to b4d_bl0ck for winding me up, but you could be nicer and more helpful, but anyway thanks to you i have sorted this problem and i have been wrestle with it for 3-4 days and nights.

Special thanks to SaThaRiel for your answer THANKS A LOT!!!!!!!!!!!!!


If anybody have same problem, this my solution:

1) as i installed VBox from repositories i firstly uninstalled it.

2) i went to package manager and installed linux headers 3.8.0-30-generic

3) i downloaded VirtualBox-4.3.8-92456-Linux_x86.run from VBox website and changed permissions of this file to be executable.

4) tahan go to download directory and run in terminal 


    sudo ./VirtualBox-4.3.8-92456-Linux_x86.run
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation............
VirtualBox Version 4.3.8 r92456 (2014-02-25T18:06:15Z) installer
Installing VirtualBox to /opt/VirtualBox
Python found: python, installing bindings...
Building the VirtualBox kernel modules

VirtualBox has been installed successfully.

You will find useful information about using VirtualBox in the user manual
  /opt/VirtualBox/UserManual.pdf
and in the user FAQ
  http://www.virtualbox.org/wiki/User_FAQ

We hope that you enjoy using VirtualBox.




weVeg

  • Hero Member
  • *****
  • Posts: 737
    • View Profile
Hi,
if you try to use your "self control" instead waiting help by other user, you could notice that on your repository there is:
Code: [Select]
virtualbox-dkms and the error that virtualbox reported is a classic error due to missing package...
B4d_bl0ck told the true, and suggest you to be more smart, that's true again...

una voce libera è sempre liberatrice
under_r00t


p1ngv1n15ed

  • Newbie
  • *
  • Posts: 8
    • View Profile
Reply #10 on: March 24, 2014, 11:25:11 PM
I have the same problem in Kubuntu 13

It does not fix it virtualbox-dkms



fsoyer

  • Newbie
  • *
  • Posts: 5
    • View Profile
Reply #11 on: August 20, 2014, 10:29:43 AM
Hi all,
I have the same problem here. Backbox 3.13 x64

$ lsb_release -rd
Description:   Ubuntu 12.04.5 LTS
Release:   12.04

$ uname -r
3.13.0-34-generic

$ dpkg -l | grep linux-headers
ii  linux-headers-3.13.0-34                3.13.0-34.60~precise1                   Header files related to Linux kernel version 3.13.0
ii  linux-headers-3.13.0-34-generic        3.13.0-34.60~precise1                   Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
$ dpkg -l | grep dkms
ii  dkms                                   2.2.0.3-1ubuntu3.2                      Dynamic Kernel Module Support Framework

Installed Virtualbox from standard repository (v 4.1.12), from vbox website (v4.3 deb package), from vbox website (v4.3 .run file as p1ngv1n15ed explained above) : no way to compile it. The error is always :
...
Error! Bad return status for module build on kernel: 3.13.0-34-generic (x86_64)
...

and depending from the installation source, the logs show errors like
Code: [Select]
/tmp/vbox.0/include/iprt/stdarg.h:42:22: erreur fatale: stdarg.h : Aucun fichier ou dossier de ce typeor
Code: [Select]
/var/lib/dkms/virtualbox/4.3.14/build/include/iprt/types.h:99:22: fatal error: stddef.h: No such file or directory
 #  include <stddef.h>
                      ^
compilation terminated.

I never had problems with virtualbox on all distros I used before, specially on this PC with various Ubuntu versions.
So : I spent a lot of time and tried hundred things found on web and here... The st*.h errors seems to refer to a linux headers problem. Can it be a problem with 64 bit generic kernel ?

Welcome to all suggestions...



weVeg

  • Hero Member
  • *****
  • Posts: 737
    • View Profile
Reply #12 on: August 20, 2014, 03:13:36 PM
Hi fsoyer,
to compile you need build-essential, header and kernel... Are you sure that you download right vbox package? I can see that you have 64_x86, what kind of .deb have you downloaded? On Bbox repo we have virtualbox, what kind of error did you experienced?
cheers  

una voce libera è sempre liberatrice
under_r00t


fsoyer

  • Newbie
  • *
  • Posts: 5
    • View Profile
Reply #13 on: August 20, 2014, 04:56:58 PM
Hi weVeg,
as I said, I've tried versions from standard repositories, from virtualbox website in deb package and in executable form (yes : choosing AMD64), but it fails.
build-essential, headers and dev environment are OK.
The errors are those indicated above.

We have spent some time with b4d_bl0ck and ostendali onr IRC channel. I had a 3.13 kernel installed : uninstalled it, removed headers, and rebooted on 3.11 original kernel : always same errors.
If you want, I copied all on  http://pastebin.com/BDVMtaps, maybe you'll find something ?



ZEROF

  • Hero Member
  • *****
  • Posts: 1244
    • View Profile
    • Pen Tester
Reply #14 on: August 20, 2014, 05:14:14 PM
Hi,

That is what we call software bug, and if you are OK with vmware, install vmplayer for free and have fun. People reported this bug to VB developers and you can just hope that it will be fixed in the future. Spending your time on bug that can be resolved by developers (when they want) can be nightmare. That is how i see things.
« Last Edit: August 20, 2014, 05:16:02 PM by ZEROF »


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*