Virtual box problem

When I try to run a distro in virtualbox I get the following message.

"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

[color=#0000ff]’/etc/init.d/vboxdrv setup’[/color]

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

When i try to run the command in a terminal I get the following “[font=monospace][color=#000000]sudo: /etc/init.d/vboxdrv: command not found”[/color]

[/font]

Can anyone help me sort out this problem.

Can you try installing linux-headers-4.7.0-0.bpo.1-all and then execute the following
sudo apt-get install --reinstall virtualbox-dkms. After that restart virtualbox and it should work.

This is the result of doing as you suggest.

[font=monospace][color=#000000]bernard@bernard-pc:~$ sudo apt-get install --reinstall virtualbox-dkms [/color]
[sudo] password for bernard:
Reading package lists… Done
Building dependency tree
Reading state information… Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 587 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://httpredir.debian.org/debian/ jessie/contrib virtualbox-dkms all 4.3.36-dfsg-1+deb8u1 [587 kB]
Fetched 587 kB in 0s (615 kB/s)
(Reading database … 205320 files and directories currently installed.)
Preparing to unpack …/virtualbox-dkms_4.3.36-dfsg-1+deb8u1_all.deb …


Deleting module version: 4.3.36
completely from the DKMS tree.

Done.
Unpacking virtualbox-dkms (4.3.36-dfsg-1+deb8u1) over (4.3.36-dfsg-1+deb8u1) …
Setting up virtualbox-dkms (4.3.36-dfsg-1+deb8u1) …
Loading new virtualbox-4.3.36 DKMS files…
Building only for 4.7.0-0.bpo.1-amd64
Building initial module for 4.7.0-0.bpo.1-amd64
Error! Bad return status for module build on kernel: 4.7.0-0.bpo.1-amd64 (x86_64)
Consult /var/lib/dkms/virtualbox/4.3.36/build/make.log for more information.
Job for virtualbox.service failed. See ‘systemctl status virtualbox.service’ and ‘journalctl -xn’ for details.
invoke-rc.d: initscript virtualbox, action “restart” failed.[/font]

[font=monospace]Still get same message with VB

[/font]

Then please consult the mentioned
/var/lib/dkms/virtualbox/4.3.36/build/make.log

Also please use quote or code tags otherwise the antispam plugin in this forum will ban you.

Here is the log

"DKMS make.log for virtualbox-4.3.36 for kernel 4.7.0-0.bpo.1-amd64 (x86_64)

Wed 9 Nov 15:11:19 GMT 2016
make: Entering directory ‘/usr/src/linux-headers-4.7.0-0.bpo.1-amd64’
LD /var/lib/dkms/virtualbox/4.3.36/build/built-in.o
LD /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/built-in.o
CC [M] /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/linux/SUPDrv-linux.o
CC [M] /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/SUPDrv.o
CC [M] /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/SUPDrvSem.o
CC [M] /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/SUPDrvTracer.o
CC [M] /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/alloc-r0drv.o
CC [M] /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/initterm-r0drv.o
CC [M] /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/memobj-r0drv.o
CC [M] /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/mpnotification-r0drv.o
CC [M] /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/powernotification-r0drv.o
CC [M] /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/assert-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/initterm-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o
/var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjNativeFree’:
/var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:581:21: error: implicit declaration of function ‘page_cache_release’ [-Werror=implicit-function-declaration]
page_cache_release(pMemLnx->apPages[iPage]);
^
/var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjNativeLockUser’:
/var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1032:29: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast
rc = get_user_pages(pTask, /* Task for fault accounting. */
^
In file included from /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/the-linux-kernel.h:88:0,
from /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
/usr/src/linux-headers-4.7.0-0.bpo.1-common/include/linux/mm.h:1276:6: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1033:29: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast
pTask->mm, /
Whose pages. */
^
In file included from /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/the-linux-kernel.h:88:0,
from /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
/usr/src/linux-headers-4.7.0-0.bpo.1-common/include/linux/mm.h:1276:6: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1036:29: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast
fWrite, /
Write to memory. */
^
In file included from /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/the-linux-kernel.h:88:0,
from /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
/usr/src/linux-headers-4.7.0-0.bpo.1-common/include/linux/mm.h:1276:6: note: expected ‘struct page *’ but argument is of type ‘int’
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1037:29: warning: passing argument 6 of ‘get_user_pages’ makes pointer from integer without a cast
fWrite, /
force write access. */
^
In file included from /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/the-linux-kernel.h:88:0,
from /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
/usr/src/linux-headers-4.7.0-0.bpo.1-common/include/linux/mm.h:1276:6: note: expected ‘struct vm_area_struct *’ but argument is of type ‘int’
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1032:14: error: too many arguments to function ‘get_user_pages’
rc = get_user_pages(pTask, /
Task for fault accounting. */
^
In file included from /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/the-linux-kernel.h:88:0,
from /var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
/usr/src/linux-headers-4.7.0-0.bpo.1-common/include/linux/mm.h:1276:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.7.0-0.bpo.1-common/scripts/Makefile.build:294: recipe for target ‘/var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o’ failed
make[4]: *** [/var/lib/dkms/virtualbox/4.3.36/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o] Error 1
/usr/src/linux-headers-4.7.0-0.bpo.1-common/scripts/Makefile.build:445: recipe for target ‘/var/lib/dkms/virtualbox/4.3.36/build/vboxdrv’ failed
make[3]: *** [/var/lib/dkms/virtualbox/4.3.36/build/vboxdrv] Error 2
/usr/src/linux-headers-4.7.0-0.bpo.1-common/Makefile:1475: recipe for target ‘module/var/lib/dkms/virtualbox/4.3.36/build’ failed
make[2]: *** [module/var/lib/dkms/virtualbox/4.3.36/build] Error 2
Makefile:150: recipe for target ‘sub-make’ failed
make[1]: *** [sub-make] Error 2
Makefile:8: recipe for target ‘all’ failed
make: *** [all] Error 2
make: Leaving directory ‘/usr/src/linux-headers-4.7.0-0.bpo.1-amd64’ "

Do you think re-installing VB might work.

Why aren’t you following my advise to use code or quote tags ?
This helps not only us reading those logs but also prevents a ban in our forums. SO PLEASE USE QUOTE OR CODE TAGS IN THE FUTURE

As for Virtualbox the version you have installed is incompatible with the kernel. So you need to install explictely the version from backports.

sudo apt-get install -t jessie-backports virtualbox virtualbox-dkms should get you going.

I thought that I had used quotes.
The version was the one that came with the installation, but I will try as you suggest.

Yeah that seems to be a bug then(on the ISO). The kernel 4.7 is not compatible with that old virtualbox version.

Seems to work OK now. Thanks.