Results 1 to 4 of 4

Thread: VirtualBox kernel issues?

  1. #1
    Join Date
    2016-Oct
    Posts
    4

    VirtualBox kernel issues?

    Hello and thanks for the help!

    I have a fresh live kali light install, updated and all, no issues.

    Now I need virtualbox and it's giving me loads of headaches.

    I get the following message. After I try various solutions, it just changes slightly the requests but the first part is always the same.

    WARNING: The character device /dev/vboxdrv does not exist.
    Please install the virtualbox-dkms package and the appropriate
    headers, most likely linux-headers-amd64.

    You will not be able to start VMs until this problem is fixed.
    Qt WARNING: libpng warning: iCCP: known incorrect sRGB profile

    DKMS is installed.
    I've tried purging and reinstalling. I've installed it from kali sources, from virutalbox sources and from binary. The result is the same. I've also tried various online solutions to this seemingly commong problem but to no avail.

    I see something potentially weird though.

    dpkg -l | grep linux-headers produces the following:

    ii linux-headers-4.7.0-kali1-amd64 4.7.5-1kali3+b1 amd64 Header files for Linux 4.7.0-kali1-amd64
    ii linux-headers-4.7.0-kali1-common 4.7.5-1kali3+b1 amd64 Common header files for Linux 4.7.0-kali1
    ii linux-headers-amd64 4.7+75+kali1 amd64 Header files for Linux amd64 configuration (meta-package)

    uname -r does this:
    4.6.0-kali1-amd64

    When I try apt-get install linux-image-4.7.0-kali1-amd64 I get:

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    linux-image-4.7.0-kali1-amd64 is already the newest version (4.7.5-1kali3+b1).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


    I would aprreciate this very much

  2. #2
    Join Date
    2016-Oct
    Posts
    4
    Ok. I've started clean again and it seems my kernel is v. 4.6.0. However when dkms is installed it installs headers for 4.7.0, together with modules and all. And that seems to mess up the virtualbox. What can I do about this? I tried manually removing anything to do with 4.7.0 and manually installing headers for 4.6.0 but it just didn't work....

  3. #3
    Join Date
    2016-Oct
    Posts
    2
    same problem!

    EDIT: I relaunched Kali now from virtualbox to keep on work and find a solution and then... I tried to install the packages, same problem, so I launched a dist-upgrade and then an apt update and... MEH! IT WORKED! I hope you'll fix that problem by running a dist-upgrade too!

    EDIT2: The command i used is

    apt-get install dkms linux-header-$(uname -r)
    (after the dist-upgrade, the command "uname-r" returns 4.7.0-kali1-amd64 and that's why it worked)
    Last edited by Seigma; 2016-10-17 at 20:02.

  4. #4
    Join Date
    2016-Oct
    Posts
    1
    Solution:
    1. apt-get install dkms
    2. apt-get install virtualbox-dkms
    3. apt-get update
    4. apt-get upgrade
    5. apt-get dist-upgrade
    6. restart computer
    That worked for me but u can also use these commands:
    apt-get install dkms
    apt-get install linux-header-$(uname -r)
    dpkg-reconfigure virtualbox-dkms
    modprobe vboxdrv

Similar Threads

  1. Replies: 11
    Last Post: 2019-01-15, 14:47
  2. Changing MAC Address Issues With 4.14 Kernel (4.13 Kernel is fine)
    By schaeferhund1 in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2018-03-09, 23:03
  3. Replies: 12
    Last Post: 2017-03-05, 03:28
  4. Replies: 0
    Last Post: 2014-01-01, 17:35

Posting Permissions

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