Getting it to work on Debian

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Nivovar
Posts: 10
Joined: 25. Jan 2016, 20:00

Getting it to work on Debian

Post by Nivovar »

Hi,

I have a x86 netbook with a version of Debian as OS. I have followed all the directions for download and install of Oracle VirtualBox. The VirtualBox GUI opens. But before any VM can be created it complains that it is lacking. I do not understand what to do. I am trying to create a VM for Android_x86 which I know works pretty good on the netbook.

Help!

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

Re: Getting it to work on Debian

Post by Perryg »

Post the guests log file ( as an attachment ). Right click on the guest in the Main Manager then click show log. Save and post as an attachment. Compress if it is too large to post.
Nivovar
Posts: 10
Joined: 25. Jan 2016, 20:00

Re: Getting it to work on Debian

Post by Nivovar »

Sorry VirtualBox says there are no logs. Needless to say there are error messages and recommended fixes. I followed the recommendations but nothing worked. I'll copy the error messages later. At this point all I've done is to define an Android_x86 VM and create its vdi.

I will reply further tomorrow.

Thanks.
Nivovar
Posts: 10
Joined: 25. Jan 2016, 20:00

Re: Getting it to work on Debian

Post by Nivovar »

Now I can provide better information. When trying to start the Android_86 VM on Kali Linux I get the following errors from the VirtualBox GUI:

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 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.

where: suplibOsInit
what: 3
VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

///

So did as suggested and the result was an error message that directs me to read vbox-install.log

Makefile:181: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Makefile:181: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Makefile:181: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Makefile:181: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.

///

So I have not been able to install the DKMS package which makes the Make file work better with Linux kernel sources. I do not know what or where to download which Linux kernel sources.

I have Gnome version 3.4.2 Looking at an install DVD I have in my hands I may have installed Kali-Linux-1.1.0a but I cannot remember. I think version is not relevant because of upgrade.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Getting it to work on Debian

Post by Perryg »

Well versions are important. Try the following in a hosts terminal and see what happens.

Code: Select all

sudo apt-get install dkms build-essential linux-headers-$(uname -r)
Then install VirtualBox again.
Nivovar
Posts: 10
Joined: 25. Jan 2016, 20:00

Re: Getting it to work on Debian

Post by Nivovar »

Thanks. The result is:

root@kali:~# sudo apt-get install dkms build-essential linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package dkms is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'dkms' has no installation candidate
E: Unable to locate package linux-headers-3.18.0-kali3-686-pae
E: Couldn't find any package by regex 'linux-headers-3.18.0-kali3-686-pae'

///

Sadly there are no suggestions.
VirtualBox is Version 4.2.36 r104064

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

Re: Getting it to work on Debian

Post by Perryg »

E: Unable to locate package linux-headers-3.18.0-kali3-686-pae
E: Couldn't find any package by regex 'linux-headers-3.18.0-kali3-686-pae'
You have a host issue and need to approach the kali folks about the fix.
Post Reply