Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: VirtualBox Broken on R2

Hybrid View

  1. #1
    Just burned his ISO
    Join Date
    Jul 2008
    Location
    415
    Posts
    19

    Question VirtualBox Broken on R2

    Ive seen this problem on older posts for other version of ubuntu, i think its because the kernel isnt compatible with Vbox yet.
    my pc is totally broken(besides LINUX! which ubuntu ran for 3 days perfectly fine, windows CANT) , im tired of windows, im trying to just run my windows 7 in a virtualmachine inside BT, because it constantly bluescreens when normally installed...

    Linux bt 3.2.6 #1 SMP Fri Feb 17 10:34:20 EST 2012 x86_64 GNU/Linux

    Code:
    root@bt:~# virtualbox
    WARNING: The vboxdrv kernel module is not loaded. Either there is no module
             available for the current kernel (3.2.6) or it failed to
             load. Please recompile the kernel module and install it by
    
               sudo /etc/init.d/vboxdrv setup
    
             You will not be able to start VMs until this problem is fixed.
    okay, sure lets try that

    Code:
    root@bt:/pentest/exploits/fasttrack# sudo /etc/init.d/vboxdrv setup
     * Stopping VirtualBox kernel modules                                                       [ OK ] 
     * Uninstalling old VirtualBox DKMS kernel modules                                          [ OK ] 
     * Removing old VirtualBox pci kernel module                                                [ OK ] 
     * Removing old VirtualBox netadp kernel module                                             [ OK ] 
     * Removing old VirtualBox netflt kernel module                                             [ OK ] 
     * Removing old VirtualBox kernel module                                                    [ OK ] 
     * Trying to register the VirtualBox kernel modules using DKMS                                     
    Error! Your kernel headers for kernel 3.2.6 cannot be found at
    /lib/modules/3.2.6/build or /lib/modules/3.2.6/source.
    
     * Failed, trying without DKMS
     * Recompiling VirtualBox kernel modules                                                    [ OK ] 
     * Starting VirtualBox kernel modules                                                              
     * modprobe vboxdrv failed. Please use 'dmesg' to find out why

    dmesg output is here, its too big to host on this site so i just made a quick link

    And
    Code:
    [  660.049471] vboxdrv: version magic '2.6.39.4 SMP mod_unload ' should be '3.2.6 SMP mod_unload '
    [  772.084842] vboxdrv: version magic '2.6.39.4 SMP mod_unload ' should be '3.2.6 SMP mod_unload '
    is what i see from dmesg


    im not sure what to do , i installed the DKMS and the KVM (because several people said it fixed their problem, did nothing here)

    any fix would be appreciated

    edit: i was previously using a bt5 R1 upgraded to R2, i just burned the dvd for R2 and tried to install vbox from there:

    Code:
    root@bt:~# apt-get install virtualbox-ose-qt
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following extra packages will be installed:
      dkms libqt4-opengl linux-headers linux-headers-3.2.6 virtualbox-ose
      virtualbox-ose-dkms
    Suggested packages:
      virtualbox-guest-additions
    The following NEW packages will be installed:
      dkms libqt4-opengl linux-headers linux-headers-3.2.6 virtualbox-ose
      virtualbox-ose-dkms virtualbox-ose-qt
    0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
    Need to get 21.2MB of archives.
    After this operation, 107MB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Get:1 http://updates.repository.backtrack-linux.org/ revolution/main dkms 2.1.1.2-2ubuntu1 [70.8kB]
    Get:2 http://64.repository.backtrack-linux.org/ revolution/main libqt4-opengl 4:4.7.0-0ubuntu2~lucid1~ppa2 [308kB]
    Get:3 http://all.repository.backtrack-linux.org/ revolution/main virtualbox-ose-dkms 3.1.6-dfsg-2ubuntu2 [501kB]
    Get:4 http://64.repository.backtrack-linux.org/ revolution/testing linux-headers-3.2.6 3.2.6-10.00.Custom [7,372kB]
    Get:5 http://64.repository.backtrack-linux.org/ revolution/main virtualbox-ose 3.1.6-dfsg-2ubuntu2 [8,237kB]
    Get:6 http://64.repository.backtrack-linux.org/ revolution/main virtualbox-ose-qt 3.1.6-dfsg-2ubuntu2 [4,759kB]
    Get:7 http://all.repository.backtrack-linux.org/ revolution/testing linux-headers 2.0-bt1 [992B]
    Fetched 21.2MB in 16s (1,291kB/s)                                              
    Selecting previously deselected package dkms.
    (Reading database ... 236286 files and directories currently installed.)
    Unpacking dkms (from .../dkms_2.1.1.2-2ubuntu1_all.deb) ...
    Selecting previously deselected package libqt4-opengl.
    Unpacking libqt4-opengl (from .../libqt4-opengl_4%3a4.7.0-0ubuntu2~lucid1~ppa2_amd64.deb) ...
    Selecting previously deselected package linux-headers-3.2.6.
    Unpacking linux-headers-3.2.6 (from .../linux-headers-3.2.6_3.2.6-10.00.Custom_amd64.deb) ...
    Selecting previously deselected package virtualbox-ose.
    Unpacking virtualbox-ose (from .../virtualbox-ose_3.1.6-dfsg-2ubuntu2_amd64.deb) ...
    Selecting previously deselected package virtualbox-ose-dkms.
    Unpacking virtualbox-ose-dkms (from .../virtualbox-ose-dkms_3.1.6-dfsg-2ubuntu2_all.deb) ...
    Selecting previously deselected package virtualbox-ose-qt.
    Unpacking virtualbox-ose-qt (from .../virtualbox-ose-qt_3.1.6-dfsg-2ubuntu2_amd64.deb) ...
    Selecting previously deselected package linux-headers.
    Unpacking linux-headers (from .../linux-headers_2.0-bt1_all.deb) ...
    Processing triggers for man-db ...
    Processing triggers for ureadahead ...
    Processing triggers for menu ...
    Processing triggers for desktop-file-utils ...
    Processing triggers for python-gmenu ...
    Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
    Processing triggers for python-support ...
    Setting up dkms (2.1.1.2-2ubuntu1) ...
    
    Setting up libqt4-opengl (4:4.7.0-0ubuntu2~lucid1~ppa2) ...
    
    Setting up linux-headers-3.2.6 (3.2.6-10.00.Custom) ...
    Examining /etc/kernel/header_postinst.d.
    run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.6 /boot/vmlinuz-3.2.6
    
    Setting up virtualbox-ose (3.1.6-dfsg-2ubuntu2) ...
     * Stopping VirtualBox kernel modules                                    [ OK ] 
     * Starting VirtualBox kernel modules                                            * No suitable module for running kernel found
                                                                             [fail]
    invoke-rc.d: initscript virtualbox-ose, action "restart" failed.
    
    Setting up virtualbox-ose-dkms (3.1.6-dfsg-2ubuntu2) ...
    Loading new virtualbox-ose-3.1.6 DKMS files...
    First Installation: checking all kernels...
    Building only for 3.2.6
    Building for architecture x86_64
    Building initial module for 3.2.6
    
    Error! Bad return status for module build on kernel: 3.2.6 (x86_64)
    Consult the make.log in the build directory
    /var/lib/dkms/virtualbox-ose/3.1.6/build/ for more information.
    dpkg: error processing virtualbox-ose-dkms (--configure):
     subprocess installed post-installation script returned error exit status 10
    Setting up linux-headers (2.0-bt1) ...
    Processing triggers for python-central ...
    Setting up virtualbox-ose-qt (3.1.6-dfsg-2ubuntu2) ...
    
    Processing triggers for libc-bin ...
    ldconfig deferred processing now taking place
    Processing triggers for menu ...
    Errors were encountered while processing:
     virtualbox-ose-dkms
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    still broken
    Last edited by Cr0wZz; 03-01-2012 at 07:12 PM.

  2. #2
    Senior Member
    Join Date
    Jul 2011
    Posts
    236

    Default Re: VirtualBox Broken on R2

    Here is the solution =)
    Code:
    apt-get --no-install-recommends install libqt4-opengl libqt4-opengl-dev dkms
    prepare-kernel-sources
    cd /usr/src/linux
    cp -rf include/generated/* include/linux/
    wget http://download.virtualbox.org/virtualbox/4.1.8/virtualbox-4.1_4.1.8-75467~Ubuntu~lucid_amd64.deb
    dpkg -i virtualbox-4.1_4.1.8-75467~Ubuntu~lucid_amd64.deb
    rm virtualbox-4.1_4.1.8-75467~Ubuntu~lucid_amd64.deb
    Cheers!
    V/r,
    Snafu
    Pffbt..[quote]I made a discovery today. I found a computer. Wait a second, this is cool. It does what I want it to. If it makes a mistake, it's because I screwed it up. Not because it doesn't like me... Or feels threatened by me.. Or thinks I'm a smart ass.. [/quote]

  3. #3
    Just burned his ISO
    Join Date
    Mar 2012
    Posts
    1

    Default Re: VirtualBox Broken on R2

    It's not so much that the kernel isn't compatible, but there's a broken link in the headers that the guest additions need to compile. I tracked this one down earlier tonight after upgrading to the 3.2.6 kernel broke the additions.

    The compiling error alluded to includes / asm (from the makefile error log after trying to create the guest additions kernel modules).

    I checked the headers and found a broken symlink for asm in usr/src/linux-headers-3.2.6/include . I created a symlink with "ln -s asm-generic asm" but that didn't work, as the next error demanded an architecture-specific header. So I just kludged an ugly symlink instead with
    Code:
    cd /usr/src/linux-headers-3.2.6/include
    rm asm
    ln -s /usr/src/linux-source-3.2.6/arch/x86/include/asm asm
    which allowed the modules to compile. This will probably break for the next kernel upgrade if the link isn't fixed for that one. Also make sure you set the architecture directory for your system (mips, amd64, ppc, etc.)

    Anyway, it's nice to have full control over the BT5 VM again, clipboard, and shared folders.

    hth

  4. #4
    Junior Member furt1maggr3d10r's Avatar
    Join Date
    Nov 2010
    Posts
    39

    Default Re: VirtualBox Broken on R2

    I am running 4.1.8 pre R2 upgrade and did not have any issues. Gnome 64 bit version, I suspect snafu is correct and the upgrade to a newer version should help you out.

    \Cheers

  5. #5
    Just burned his ISO
    Join Date
    Mar 2012
    Posts
    1

    Default Re: VirtualBox Broken on R2

    Quote Originally Posted by furt1maggr3d10r View Post
    I am running 4.1.8 pre R2 upgrade and did not have any issues. Gnome 64 bit version, I suspect snafu is correct and the upgrade to a newer version should help you out.

    \Cheers


    I still have this problem, didnt worked the solution. any idea?


    Setting up virtualbox-ose-dkms (3.1.6-dfsg-2ubuntu2) ...
    Removing old virtualbox-ose-3.1.6 DKMS files...

    ------------------------------
    Deleting module version: 3.1.6
    completely from the DKMS tree.
    ------------------------------
    Done.
    Loading new virtualbox-ose-3.1.6 DKMS files...
    First Installation: checking all kernels...
    Building only for 3.2.6
    Building for architecture x86_64
    Building initial module for 3.2.6

    Error! Bad return status for module build on kernel: 3.2.6 (x86_64)
    Consult the make.log in the build directory
    /var/lib/dkms/virtualbox-ose/3.1.6/build/ for more information.
    dpkg: error processing virtualbox-ose-dkms (--configure):
    subprocess installed post-installation script returned error exit status 10
    Errors were encountered while processing:
    virtualbox-ose-dkms
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  6. #6
    Just burned his ISO
    Join Date
    Jul 2008
    Location
    415
    Posts
    19

    Default Re: VirtualBox Broken on R2

    thank you so much! after everything i did wasnt working i was about to post but i ran

    Code:
    sudo dpkg --configure -a
    and it works now! only problem is win7 doesnt like BT5 hardware

    "not certified usable mircosoft compatible hardware" or something

    XP it is!

    but thank you thank you thank you

  7. #7
    Just burned his ISO
    Join Date
    Mar 2012
    Posts
    1

    Default Re: VirtualBox Broken on R2

    I follow all instructions, but i receive the same error every time

    ------------------------------
    Deleting module version: 3.1.6
    completely from the DKMS tree.
    ------------------------------
    Done.
    Loading new virtualbox-ose-3.1.6 DKMS files...
    First Installation: checking all kernels...
    Building only for 3.2.6
    Building for architecture i686
    Building initial module for 3.2.6

    Error! Bad return status for module build on kernel: 3.2.6 (i686)
    Consult the make.log in the build directory
    /var/lib/dkms/virtualbox-ose/3.1.6/build/ for more information.
    dpkg: error processing virtualbox-ose-dkms (--configure):
    subprocess installed post-installation script returned error exit status 10
    Errors were encountered while processing:
    virtualbox-ose-dkms



    Any Ideas??

  8. #8
    Just burned their ISO
    Join Date
    Dec 2012
    Location
    where I'm needed
    Posts
    20

    Default Re: VirtualBox Broken on R2

    Quote Originally Posted by snafu777 View Post
    Here is the solution =)
    Code:
    apt-get --no-install-recommends install libqt4-opengl libqt4-opengl-dev dkms
    prepare-kernel-sources
    cd /usr/src/linux
    cp -rf include/generated/* include/linux/
    wget http://download.virtualbox.org/virtualbox/4.1.8/virtualbox-4.1_4.1.8-75467~Ubuntu~lucid_amd64.deb
    dpkg -i virtualbox-4.1_4.1.8-75467~Ubuntu~lucid_amd64.deb
    rm virtualbox-4.1_4.1.8-75467~Ubuntu~lucid_amd64.deb
    Cheers!
    Hi,
    Thanks Snafu, your solution works like a charm on bt5r3 kde 64bit

  9. #9
    Just burned his ISO
    Join Date
    May 2009
    Posts
    7

    Default Re: VirtualBox Broken on R2

    Quote Originally Posted by snafu777 View Post
    Here is the solution =)
    Code:
    apt-get --no-install-recommends install libqt4-opengl libqt4-opengl-dev dkms
    prepare-kernel-sources
    cd /usr/src/linux
    cp -rf include/generated/* include/linux/
    wget http://download.virtualbox.org/virtualbox/4.1.8/virtualbox-4.1_4.1.8-75467~Ubuntu~lucid_amd64.deb
    dpkg -i virtualbox-4.1_4.1.8-75467~Ubuntu~lucid_amd64.deb
    rm virtualbox-4.1_4.1.8-75467~Ubuntu~lucid_amd64.deb
    Cheers!
    I followed your instructions, but when I tried to add a existing virtual machine this error apears:

    Code:
    kdeinit4: Communication error with launcher. Exiting!
    klauncher(7709) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
    Thanks!

  10. #10
    Just burned his ISO
    Join Date
    Sep 2010
    Posts
    3

    Question Re: VirtualBox Broken on R2

    still not able to compile DKMS modules using all the above suggestions.

    is there a guide to compiling DKMS modules or the kernel for that matter for Backtrack 5R2?

Page 1 of 2 12 LastLast

Similar Threads

  1. Installing vlc is broken?
    By Icht00r in forum Beginners Forum
    Replies: 3
    Last Post: 06-04-2010, 02:46 AM
  2. my apt-get is broken
    By bofh28 in forum Beginners Forum
    Replies: 3
    Last Post: 02-05-2010, 05:25 PM
  3. Is WPA2 broken?
    By vityav in forum OLD Newbie Area
    Replies: 6
    Last Post: 12-10-2009, 04:50 PM
  4. googlesearch in BT3 broken?
    By floyd in forum OLD Newbie Area
    Replies: 3
    Last Post: 03-13-2009, 12:59 PM
  5. Broken ethernet after using BT
    By epborden in forum OLD Newbie Area
    Replies: 2
    Last Post: 01-31-2009, 06:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •