Can't install on Kali 2.0

Discussions related to using VirtualBox on Linux hosts.
Post Reply
CoutoReis
Posts: 5
Joined: 30. Jun 2016, 21:41

Can't install on Kali 2.0

Post by CoutoReis »

Dear folks, it's been 3 days since I started installing VirtualBox in Kali Linux 2.0, without success until now.

Briefing:
  • Purged virtualbox, virtualbox-dkms and linux-headers*
    Installed linux-headers-* and virtualbox via apt-get
When I run virtualbox:

Code: Select all

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.
and when I try to open a VM:

Code: Select all

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. 
So, that's it. I'm a little tired, trying to breathe new air after so much failure :(

Anyone?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Can't install on Kali 2.0

Post by Perryg »

You need to post the /var/log/vbox-install.log ( as an attachment )

Note: we only support the official version of VirtualBox from virtualbox.org, so if you have installed the repo version you need to ask them for help.
CoutoReis
Posts: 5
Joined: 30. Jun 2016, 21:41

Re: Can't install on Kali 2.0

Post by CoutoReis »

There is no /var/log/vbox-install.log.
CoutoReis
Posts: 5
Joined: 30. Jun 2016, 21:41

Re: Can't install on Kali 2.0

Post by CoutoReis »

Oh, OK. I'll purge and install from virtualbox dot org.
CoutoReis
Posts: 5
Joined: 30. Jun 2016, 21:41

Re: Can't install on Kali 2.0

Post by CoutoReis »

So, there it is the attachment.

EDIT: as I run virtualbox it suggests me to execute /ssbin/rcvboxdrv. This is the result:

Code: Select all

/sbin/rcvboxdrv setup
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 4.3.0-kali1-amd64 cannot be found at
/lib/modules/4.3.0-kali1-amd64/build or /lib/modules/4.3.0-kali1-amd64/source.
 ...failed!
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
  (Look at /var/log/vbox-install.log to find out what went wrong)
Attachments
vbox-install.log
(463 Bytes) Downloaded 64 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Can't install on Kali 2.0

Post by Perryg »

It tells you right there what you are doing worng and in the install log as well
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Pare.

You need to install the matching headers and any other packages that are needed to build external kernel modules.

Why are you using kali?
CoutoReis
Posts: 5
Joined: 30. Jun 2016, 21:41

Re: Can't install on Kali 2.0

Post by CoutoReis »

I was using Kubuntu 16.04 till last week, but I'm trying to learn Kali from basics. I was afraid to find any issue running Kali via VirtualBox at Kubuntu. I'm using Kali tools to audit my network.

As I said, I installed all available headers... I don't know if I did right. I'm not a Linux advanced user.
Post Reply