Results 1 to 9 of 9

Thread: VirtualBox-DKMS problems

  1. #1
    Join Date
    2016-Jun
    Posts
    1

    Unhappy VirtualBox-DKMS problems

    Hi,
    I have some problems when I try to install virtualbox on kali.
    When i start the installation with apt.
    Code:
    apt-get install virtualbox
    an error appears:

    Code:
    Job for virtualbox.service failed because the control process exited with error code.
    See "systemctl status virtualbox.service" and "journalctl -xe" for details.
    Code:
    root@kali:~# systemctl status virtualbox.service
    ● virtualbox.service - LSB: VirtualBox Linux kernel module
       Loaded: loaded (/etc/init.d/virtualbox; generated; vendor preset: enabled)
       Active: failed (Result: exit-code) since Wed 2016-06-01 16:04:16 UTC; 2min 59s ago
         Docs: man:systemd-sysv-generator(8)
    
    Jun 01 16:04:16 kali systemd[1]: Starting LSB: VirtualBox Linux kernel module...
    Jun 01 16:04:16 kali virtualbox[6546]: Loading VirtualBox kernel modules...No suitable module for running kernel found ...
    Jun 01 16:04:16 kali virtualbox[6546]:  failed!
    Jun 01 16:04:16 kali systemd[1]: virtualbox.service: Control process exited, code=exited status=1
    Jun 01 16:04:16 kali systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
    Jun 01 16:04:16 kali systemd[1]: virtualbox.service: Unit entered failed state.
    Jun 01 16:04:16 kali systemd[1]: virtualbox.service: Failed with result 'exit-code'.
    Code:
    root@kali:~# journalctl -xe
    -- 
    -- Unit virtualbox.service has begun starting up.
    Jun 01 16:04:16 kali virtualbox[6546]: Loading VirtualBox kernel modules...No suitable module for running kernel found ... failed!
    Jun 01 16:04:16 kali virtualbox[6546]:  failed!
    Jun 01 16:04:16 kali systemd[1]: virtualbox.service: Control process exited, code=exited status=1
    Jun 01 16:04:16 kali systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
    -- Subject: Unit virtualbox.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- 
    -- Unit virtualbox.service has failed.
    -- 
    -- The result is failed.
    Jun 01 16:04:16 kali systemd[1]: virtualbox.service: Unit entered failed state.
    Jun 01 16:04:16 kali systemd[1]: virtualbox.service: Failed with result 'exit-code'.
    Jun 01 16:04:16 kali systemd[1]: Reloading.
    Jun 01 16:04:27 kali sudo[5937]: pam_unix(sudo:session): session closed for user root
    Jun 01 16:05:01 kali CRON[6620]: pam_unix(cron:session): session opened for user root by (uid=0)
    Jun 01 16:05:01 kali CRON[6621]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    Jun 01 16:05:01 kali CRON[6620]: pam_unix(cron:session): session closed for user root
    Jun 01 16:09:01 kali CRON[6635]: pam_unix(cron:session): session opened for user root by (uid=0)
    Jun 01 16:09:01 kali CRON[6636]: (root) CMD (  [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean)
    Jun 01 16:09:02 kali CRON[6635]: pam_unix(cron:session): session closed for user root
    When i try to start virtualbox anyway, the following error shows up:
    Code:
    root@kali:~# virtualbox
    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
    And when I try to start a VirtualMachine this one shows up:
    Code:
    Kernel driver not installed (rc=-1908)
    
    The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please install virtualbox-dkms package and load the kernel module by executing
    
    'modprobe vboxdrv'
    
    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.
    
    where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
    When i do "modprobe vboxdrv"
    Code:
    modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.3.0-kali1-amd64
    I've already tried to downloaded debian packages from the virtualbox HP, and include the sana sources to install missing packages for the "original" .deb from the homepage.
    Still dont work.

    Ive already tried "dpkg-reconfigure" with virtualbox-dkms and virtualbox and restart after every action but nothing changes.
    "apt-get install linux-headers-$(uname -r)" does not find a fitting package.

    Hope you can help me.

  2. #2
    Join Date
    2016-Jul
    Posts
    1
    Quote Originally Posted by Gico View Post
    Hi,
    I have some problems when I try to install virtualbox on kali.
    When i start the installation with apt.
    Code:
    apt-get install virtualbox
    an error appears:

    Code:
    Job for virtualbox.service failed because the control process exited with error code.
    See "systemctl status virtualbox.service" and "journalctl -xe" for details.
    Code:
    root@kali:~# systemctl status virtualbox.service
    ● virtualbox.service - LSB: VirtualBox Linux kernel module
       Loaded: loaded (/etc/init.d/virtualbox; generated; vendor preset: enabled)
       Active: failed (Result: exit-code) since Wed 2016-06-01 16:04:16 UTC; 2min 59s ago
         Docs: man:systemd-sysv-generator(8)
    
    Jun 01 16:04:16 kali systemd[1]: Starting LSB: VirtualBox Linux kernel module...
    Jun 01 16:04:16 kali virtualbox[6546]: Loading VirtualBox kernel modules...No suitable module for running kernel found ...
    Jun 01 16:04:16 kali virtualbox[6546]:  failed!
    Jun 01 16:04:16 kali systemd[1]: virtualbox.service: Control process exited, code=exited status=1
    Jun 01 16:04:16 kali systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
    Jun 01 16:04:16 kali systemd[1]: virtualbox.service: Unit entered failed state.
    Jun 01 16:04:16 kali systemd[1]: virtualbox.service: Failed with result 'exit-code'.
    Code:
    root@kali:~# journalctl -xe
    -- 
    -- Unit virtualbox.service has begun starting up.
    Jun 01 16:04:16 kali virtualbox[6546]: Loading VirtualBox kernel modules...No suitable module for running kernel found ... failed!
    Jun 01 16:04:16 kali virtualbox[6546]:  failed!
    Jun 01 16:04:16 kali systemd[1]: virtualbox.service: Control process exited, code=exited status=1
    Jun 01 16:04:16 kali systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
    -- Subject: Unit virtualbox.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- 
    -- Unit virtualbox.service has failed.
    -- 
    -- The result is failed.
    Jun 01 16:04:16 kali systemd[1]: virtualbox.service: Unit entered failed state.
    Jun 01 16:04:16 kali systemd[1]: virtualbox.service: Failed with result 'exit-code'.
    Jun 01 16:04:16 kali systemd[1]: Reloading.
    Jun 01 16:04:27 kali sudo[5937]: pam_unix(sudo:session): session closed for user root
    Jun 01 16:05:01 kali CRON[6620]: pam_unix(cron:session): session opened for user root by (uid=0)
    Jun 01 16:05:01 kali CRON[6621]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    Jun 01 16:05:01 kali CRON[6620]: pam_unix(cron:session): session closed for user root
    Jun 01 16:09:01 kali CRON[6635]: pam_unix(cron:session): session opened for user root by (uid=0)
    Jun 01 16:09:01 kali CRON[6636]: (root) CMD (  [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean)
    Jun 01 16:09:02 kali CRON[6635]: pam_unix(cron:session): session closed for user root
    When i try to start virtualbox anyway, the following error shows up:
    Code:
    root@kali:~# virtualbox
    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
    And when I try to start a VirtualMachine this one shows up:
    Code:
    Kernel driver not installed (rc=-1908)
    
    The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please install virtualbox-dkms package and load the kernel module by executing
    
    'modprobe vboxdrv'
    
    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.
    
    where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
    When i do "modprobe vboxdrv"
    Code:
    modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.3.0-kali1-amd64
    I've already tried to downloaded debian packages from the virtualbox HP, and include the sana sources to install missing packages for the "original" .deb from the homepage.
    Still dont work.

    Ive already tried "dpkg-reconfigure" with virtualbox-dkms and virtualbox and restart after every action but nothing changes.
    "apt-get install linux-headers-$(uname -r)" does not find a fitting package.

    Hope you can help me.
    Hi, did you find out how to do it?

  3. #3
    Join Date
    2016-Jul
    Posts
    1
    I am having the exact same problem and have been totally unable to find a solution. I have tried installing virtualbox through apt-get and by downloading it from the web page itself, both result in the same error. I have tried everything the original poster tried, and had the same negative result. Any help would be appreciated.

  4. #4
    Your answer is in your data."Please install the virtualbox-dkms package and the appropriate headers, most likely linux-headers-amd64."
    You probably updated the kernel and Virtualbox need to recompile modules

    apt-get install virtualbox-dkms
    reboot

  5. #5
    Join Date
    2016-Jul
    Posts
    1
    Hi there,

    I had the same problem. What worked for me:

    0. First of all I excluded folders and files in Bitdefender (Virtualbox folder, and Virtualbox exe files), maybe you need to do this with different antivirus softwares aswell?

    1. you go to My Computer/etc/apt/sources list and copy paste only this line, you don't need the kali sana sources: deb http://http.kali.org/kali kali-rolling main contrib non-free

    2. you open your terminal and command: apt-get update && apt-get dist-upgrade -y

    In my case it took a very long time and I think I don't have a bad computer and net speed so please be patient. Also when it seemed to be finished you got some 5% at the bottom of the terminal. You scroll down with the letter S and it starts another even longer update.

    After finished (by waiting for input) you type reboot

    3. You install your headers: apt-get install linux-headers-$(uname -r)

    4. apt-get install virtualbox-guest-x11

    5. reboot, and you should be fine.

  6. #6
    Join Date
    2015-Jun
    Posts
    9

    Re: VirtualBox-DKMS problems - Validated Solution

    Thank you for posting your solution. I only had "virtualbox - x86 virtualization solution - base binaries" installed, which were producing LSB Kernel Module errors at system boot, and I can happily say steps 1,2,5 resolved the troubles I was incurring. That said, it took ~90-120min on my i7 to update all binaries and packages, and did contain some interactive content along the way, so, I wasn't able to launch the update and just walk away.

    Cheers!

    Quote Originally Posted by Alamo View Post
    Hi there,

    I had the same problem. What worked for me:

    0. First of all I excluded folders and files in Bitdefender (Virtualbox folder, and Virtualbox exe files), maybe you need to do this with different antivirus softwares aswell?

    1. you go to My Computer/etc/apt/sources list and copy paste only this line, you don't need the kali sana sources: deb http://http.kali.org/kali kali-rolling main contrib non-free

    2. you open your terminal and command: apt-get update && apt-get dist-upgrade -y

    In my case it took a very long time and I think I don't have a bad computer and net speed so please be patient. Also when it seemed to be finished you got some 5% at the bottom of the terminal. You scroll down with the letter S and it starts another even longer update.

    After finished (by waiting for input) you type reboot

    5. reboot, and you should be fine.

  7. #7
    Join Date
    2016-Dec
    Posts
    1
    what line exactly do i copy and paste from step 2

  8. #8
    Posting this to help other people who have this problem. Remove the virtualbox and virtualbox-dkms packages and install Virtualbox from Virtualbox's site. Props to the people from #virtualbox.

  9. #9
    Join Date
    2017-Jun
    Posts
    1
    Thank you very much. I could fix the issue without the item 0, 3, 4.

Similar Threads

  1. Virtualbox and other software problems
    By macmoo in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2016-04-06, 10:54
  2. dkms module of virtualbox-guest-x11-4.3.18 can't be compiled?
    By easior in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2015-03-13, 12:59

Tags for this Thread

Posting Permissions

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