[SOLVED] Virtualbox problem with backbox 4.4

Started by D@emon, October 27, 2015, 06:53:55 PM

Previous topic - Next topic

D@emon

Hey guys,  as the question says virtualbox is not running inside backbox, i tried every possible way dkms, virtualbox-dkms and every other stuff.
but its still giving the error:
:~# virtualbox
WARNING: The character device /dev/vboxdrv does not exist.
    Please install the virtualbox-dkms package and the appropriate
    headers, most likely linux-headers-generic.

    You will not be able to start VMs until this problem is fixed.

and don't run virtual machine and give error:

Kernel driver not installed (rc=-1908)

i installed kernel-headers as apt-get install linux-headers-`uname -r` then compile it mannualy as dpkg-reconfigure virtualbox-dkms`  but at the end again said failed restarting and so is still not running virtualbox correctly.

any remedies?....please :(

lastwish

Installation:

ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-dkms.0.crash'
Error! Bad return status for module build on kernel: 3.19.0-31-generic (x86_64)
Consult /var/lib/dkms/virtualbox/4.3.10/build/make.log for more information.

* Stopping VirtualBox kernel modules                                    [ OK ]
* Starting VirtualBox kernel modules                                            * No suitable module for running kernel found
                                                                         [fail]

Log:

DKMS make.log for virtualbox-4.3.10 for kernel 3.19.0-31-generic (x86_64)
fre 30 okt 2015 12:53:17 CET
make: Går till katalogen "/usr/src/linux-headers-3.19.0-31-generic"
  LD      /var/lib/dkms/virtualbox/4.3.10/build/built-in.o
  LD      /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/built-in.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/linux/SUPDrv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/SUPDrv.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/SUPDrvSem.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/SUPDrvTracer.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/alloc-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/initterm-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/memobj-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/mpnotification-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/powernotification-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/assert-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o
/var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.c: In function 'rtR0MemAllocExecVmArea':
/var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.c:194:9: warning: passing argument 3 of 'map_vm_area' from incompatible pointer type [enabled by default]
         if (!map_vm_area(pVmArea, PAGE_KERNEL_EXEC, &papPagesIterator))
         ^
In file included from ./arch/x86/include/asm/io.h:200:0,
                 from ./arch/x86/include/asm/realmode.h:5,
                 from ./arch/x86/include/asm/acpi.h:33,
                 from ./arch/x86/include/asm/fixmap.h:19,
                 from ./arch/x86/include/asm/apic.h:12,
                 from ./arch/x86/include/asm/smp.h:12,
                 from ./arch/x86/include/asm/mmzone_64.h:10,
                 from ./arch/x86/include/asm/mmzone.h:4,
                 from include/linux/mmzone.h:912,
                 from include/linux/gfp.h:5,
                 from include/linux/slab.h:14,
                 from /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/the-linux-kernel.h:72,
                 from /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.c:31:
include/linux/vmalloc.h:115:12: note: expected 'struct page **' but argument is of type 'struct page ***'
extern int map_vm_area(struct vm_struct *area, pgprot_t prot,
            ^
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/initterm-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/mp-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/mpnotification-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/process-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/semevent-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/semeventmulti-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/semfastmutex-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/semmutex-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/spinlock-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/thread-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/thread2-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/threadctxhooks-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/time-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/timer-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/generic/semspinmutex-r0drv-generic.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/alloc/alloc.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/checksum/crc32.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/checksum/ipv4.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/checksum/ipv6.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/err/RTErrConvertFromErrno.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/err/RTErrConvertToErrno.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/log/log.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/log/logellipsis.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/log/logrel.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/log/logrelellipsis.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/log/logcom.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/log/logformat.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/RTAssertMsg1Weak.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/RTAssertMsg2.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/RTAssertMsg2Add.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/RTAssertMsg2AddWeak.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/RTAssertMsg2AddWeakV.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/RTAssertMsg2Weak.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/RTAssertMsg2WeakV.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/assert.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/handletable.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/handletablectx.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/thread.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/RTStrCopy.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/RTStrCopyEx.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/RTStrCopyP.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/RTStrNCmp.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/RTStrNLen.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/stringalloc.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/strformat.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/strformatrt.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/strformattype.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/strprintf.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/strtonum.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/table/avlpv.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/time/time.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/RTLogWriteDebugger-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTAssertShouldPanic-generic.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTLogWriteStdErr-stub-generic.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTLogWriteStdOut-stub-generic.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTLogWriteUser-generic.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTMpGetArraySize-generic.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTMpGetCoreCount-generic.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTSemEventWait-2-ex-generic.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTSemEventWaitNoResume-2-ex-generic.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTSemEventMultiWait-2-ex-generic.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTSemEventMultiWaitNoResume-2-ex-generic.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTTimerCreate-generic.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/errvars-generic.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/mppresent-generic.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/uuid-generic.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/VBox/log-vbox.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/alloc/heapsimple.o
  LD [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/vboxdrv.o
  LD      /var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/built-in.o
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.o
/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c: In function 'vboxNetAdpOsCreate':
/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c:186:48: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
                            vboxNetAdpNetDevInit);
                                                ^
/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c:184:15: error: 'alloc_netdev' undeclared (first use in this function)
     pNetDev = alloc_netdev(sizeof(VBOXNETADPPRIV),
               ^
/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c:184:15: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c: At top level:
/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c:159:13: warning: 'vboxNetAdpNetDevInit' defined but not used [-Wunused-function]
static void vboxNetAdpNetDevInit(struct net_device *pNetDev)
             ^
make[2]: *** [/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.o] Fel 1
make[1]: *** [/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp] Fel 2
make: *** [_module_/var/lib/dkms/virtualbox/4.3.10/build] Fel 2
make: Lämnar katalogen "/usr/src/linux-headers-3.19.0-31-generic"






ZEROF

#2
Hi,

This is on your own risk. I didn't try this solution because i don't use VB i use VMPlayer, but this comes from Ubuntu docks. Copy this to terminal and try to install:

Quotesudo sh -c "echo 'deb http://download.virtualbox.org/virtualbox/debian '$(lsb_release -cs)' contrib non-free' > /etc/apt/sources.list.d/virtualbox.list" && wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - && sudo apt-get update && sudo apt-get install virtualbox-5.0

If you want older version replace virtualbox-5.0 by:

virtualbox-4.3
virtualbox-4.2

Then:

Quotesudo apt-get install dkms

Good luck.

Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*

lastwish

Thanks for this fix and for the quick answer.

Backbox is great been using it for some years now, keep up the good work!

bokim