Installing VirtualBox 4.2.4 on kernel 3.7.0-rc8

Discussions related to using VirtualBox on Linux hosts.

Installing VirtualBox 4.2.4 on kernel 3.7.0-rc8

Postby thilo.ginkel » 9. Dec 2012, 22:08

Hi there,

I was wondering whether anyone has an idea how to get vboxdrv for VirtualBox 4.2.4 compiled on kernel 3.7.0-rc8. So far, I am getting an error message when attempting to run `vboxdrv setup`:

Code: Select all   Expand viewCollapse view
 * Trying to register the VirtualBox kernel modules using DKMS
ERROR (dkms apport): kernel package linux-headers-3.7.0-rc8+ is not supported
Error! Bad return status for module build on kernel: 3.7.0-rc8+ (x86_64)
Consult /var/lib/dkms/vboxhost/4.2.4/build/make.log for more information.


Code: Select all   Expand viewCollapse view
DKMS make.log for vboxhost-4.2.4 for kernel 3.7.0-rc8+ (x86_64)
Sun Dec  9 20:48:53 CET 2012
make: Entering directory `/home/tg/src/linux-2.6'
  LD      /var/lib/dkms/vboxhost/4.2.4/build/built-in.o
  LD      /var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/built-in.o
  CC [M]  /var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/linux/SUPDrv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/SUPDrv.o
  CC [M]  /var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/SUPDrvSem.o
  CC [M]  /var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/SUPDrvTracer.o
  CC [M]  /var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/r0drv/alloc-r0drv.o
  CC [M]  /var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/r0drv/initterm-r0drv.o
  CC [M]  /var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/r0drv/memobj-r0drv.o
  CC [M]  /var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/r0drv/mpnotification-r0drv.o
  CC [M]  /var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/r0drv/powernotification-r0drv.o
  CC [M]  /var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/r0drv/linux/assert-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/r0drv/linux/initterm-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o
/var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjLinuxDoMmap’:
/var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:216:9: error: implicit declaration of function ‘do_mmap’ [-Werror=implicit-function-declaration]
/var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjNativeMapUser’:
/var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1465:38: error: ‘VM_RESERVED’ undeclared (first use in this function)
/var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1465:38: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
make[2]: *** [/var/lib/dkms/vboxhost/4.2.4/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o] Error 1
make[1]: *** [/var/lib/dkms/vboxhost/4.2.4/build/vboxdrv] Error 2
make: *** [_module_/var/lib/dkms/vboxhost/4.2.4/build] Error 2
make: Leaving directory `/home/tg/src/linux-2.6'


Any ideas?

Thanks,
Thilo
thilo.ginkel
 
Posts: 5
Joined: 9. Dec 2012, 22:02

Re: Installing VirtualBox 4.2.4 on kernel 3.7.0-rc8

Postby Perryg » 9. Dec 2012, 22:13

/home/tg/src/linux-2.6


What is the host, and why are the src file in home?
Perryg
Site Moderator
 
Posts: 33249
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Installing VirtualBox 4.2.4 on kernel 3.7.0-rc8

Postby thilo.ginkel » 9. Dec 2012, 22:52

That's a git clone of the Linux git repository (the address of which I am not permitted to post) checked out at v3.7.0-rc8 built using make-kpkg. I just checked the vboxdrv source and the error does not make must sense. I am currently performing a clean rebuild of the kernel to make sure that no stale version.h containing an incorrect kernel version was causing this...
thilo.ginkel
 
Posts: 5
Joined: 9. Dec 2012, 22:02


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 15 guests