Virtualbox on kernel 4.9 problem

Kernels & Hardware, configuring network, installing services

Virtualbox on kernel 4.9 problem

Postby kschut » 2017-06-27 09:18

Hi all,
I run backport kernel 4.9.0.0-0.bpo.3-amd64 x86_64
I use this kernel because this gets my dual-screen setup working properly.
Long story short: I used to have a working Virtualbox/dual-screen/Debian system, however, got driver issues after upgrades due to having an old Nvidia-6200 VGA. So I got a more modern GT710 and then I found I could no longer get the dual-screen+Virtualbx to work.

I got to that point by installing Debian 8.8 with kernel 3.0.16 (or thereabout)
(this did not allow dual-screen)

add to sources.list:
# jessie-backports
deb http://httpredir.debian.org/debian jessie-backports main contrib non-free

apt-get install -t jessie-backports linux-image-4.9.0-0.bpo.3-amd64
reboot
apt-get update
apt-get -t jessie-backports install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')
(Now dual-screen is perfect)

next I try to install Virtualbox 5.1.8 through backport as well and run into a problem getting it to work due to:

apt-get -t jessie-backports install virtualbox

......
Error! Bad return status for module build on kernel: 4.9.0-0.bpo.3-amd64 (x86_64)

I have tried several installs and versions and I seem to have a problem with combining the dual-screen setup with running Virtualbox: info I find on Google seems to lead to some conflict in kernel?

Advise would be greatly appreciated.

the log file for above scenario is printed here:
root@tbone:~# cat /var/lib/dkms/virtualbox/5.1.8/build/make.log
DKMS make.log for virtualbox-5.1.8 for kernel 4.9.0-0.bpo.3-amd64 (x86_64)
Tue Jun 27 10:47:30 CEST 2017
make: Entering directory '/usr/src/linux-headers-4.9.0-0.bpo.3-amd64'
LD /var/lib/dkms/virtualbox/5.1.8/build/built-in.o
LD /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/built-in.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/linux/SUPDrv-linux.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/SUPDrv.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/SUPDrvGip.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/SUPDrvSem.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/SUPDrvTracer.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/SUPLibAll.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/alloc-r0drv.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/initterm-r0drv.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/memobj-r0drv.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/mpnotification-r0drv.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/powernotification-r0drv.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/assert-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/initterm-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/mp-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/mpnotification-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/process-r0drv-linux.o
/var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjNativeLockUser’:
/var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1053:33: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast
fWrite, /* force write access. */
^
In file included from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
/usr/src/linux-headers-4.9.0-0.bpo.3-common/include/linux/mm.h:1302: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/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1054:33: warning: passing argument 5 of ‘get_user_pages’ from incompatible pointer type
&pMemLnx->apPages[0], /* Page array. */
^
In file included from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
/usr/src/linux-headers-4.9.0-0.bpo.3-common/include/linux/mm.h:1302:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘struct page **’
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1050:18: error: too many arguments to function ‘get_user_pages’
rc = get_user_pages(R3Ptr, /* Where from. */
^
In file included from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
/usr/src/linux-headers-4.9.0-0.bpo.3-common/include/linux/mm.h:1302:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1067:33: warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast
fWrite, /* force write access. */
^
In file included from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
/usr/src/linux-headers-4.9.0-0.bpo.3-common/include/linux/mm.h:1298:6: note: expected ‘struct page **’ but argument is of type ‘int’
long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,
^
/var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1068:33: warning: passing argument 7 of ‘get_user_pages_remote’ from incompatible pointer type
&pMemLnx->apPages[0], /* Page array. */
^
In file included from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
/usr/src/linux-headers-4.9.0-0.bpo.3-common/include/linux/mm.h:1298:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘struct page **’
long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,
^
/var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1061:18: error: too many arguments to function ‘get_user_pages_remote’
rc = get_user_pages_remote(
^
In file included from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
/usr/src/linux-headers-4.9.0-0.bpo.3-common/include/linux/mm.h:1298:6: note: declared here
long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,
^
/usr/src/linux-headers-4.9.0-0.bpo.3-common/scripts/Makefile.build:298: recipe for target '/var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o' failed
make[4]: *** [/var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o] Error 1
make[4]: *** Waiting for unfinished jobs....
/usr/src/linux-headers-4.9.0-0.bpo.3-common/scripts/Makefile.build:549: recipe for target '/var/lib/dkms/virtualbox/5.1.8/build/vboxdrv' failed
make[3]: *** [/var/lib/dkms/virtualbox/5.1.8/build/vboxdrv] Error 2
/usr/src/linux-headers-4.9.0-0.bpo.3-common/Makefile:1507: recipe for target '_module_/var/lib/dkms/virtualbox/5.1.8/build' failed
make[2]: *** [_module_/var/lib/dkms/virtualbox/5.1.8/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.9.0-0.bpo.3-amd64'
kschut
 
Posts: 2
Joined: 2017-06-27 08:57

Re: Virtualbox on kernel 4.9 problem

Postby pylkko » 2017-06-27 19:38

how bout you don't use oldstable with backports and just install Debian stable 9.0 and try to work from there up?
User avatar
pylkko
 
Posts: 1325
Joined: 2014-11-06 19:02

Re: Virtualbox on kernel 4.9 problem

Postby eor2004 » 2017-06-27 22:12

Hi Guys, just to let you know that at least here on my Debian 9 system VirtualBox from "Oracle" works fine! If you're on Debian 8, you might consider installing the VirtualBox from Oracle, the one from Debian repo gave me a lot of problems when trying to run it, hope this helps!
OS: Debian Stretch 64-bit, DE: Plasma 5.8, Kernel: Linux 4.9.0-7-amd64, CPU: AMD Phenom II X3 720, Mobo: Gigabyte GA-MA78GPM-DS2H, Graphics: AMD/ATI RS780 Radeon HD 3200, HDD: Hitachi 2TB SATA 3.5 7200RPM HUA723020ALA641
User avatar
eor2004
 
Posts: 162
Joined: 2013-10-01 22:49
Location: Puerto Rico

Re: Virtualbox on kernel 4.9 problem

Postby kschut » 2017-06-28 11:52

Followed advise:
upgrade to Stretch as described in
https://linuxconfig.org/how-to-upgrade- ... -9-stretch
then installed Virtualbox as described in
https://www.linuxbabe.com/debian/instal ... -9-stretch
and that all works for me.
kschut
 
Posts: 2
Joined: 2017-06-27 08:57

Re: Virtualbox on kernel 4.9 problem

Postby Francewhoa » 2017-12-11 14:03

Another option is to install the latest Virtualbox 5.2 from Oracle's repository

Steps
1. Using Debian 8 Jesie, uninstall any Virtualbox packages already install

2. Optionally, install the package
Code: Select all
dkms

  • Note: dkmsensure that the VirtualBox host kernel modules (vboxdrv, vboxnetflt and vboxnetadp) are properly updated if the linux kernel version changes during the next apt-get upgrade


3. Go to https://www.virtualbox.org/wiki/Linux_Downloads
Under "Debian-based Linux distributions" section, following the instructions to install Virtualbox 5.2 for Debian Jessie 8

  • Note: 5.2 includes the guest additions. So you do not need to download and install other packages.


4. Done. If you use GNOME. Simply search for Virtualbox and open it. If you already had virtual machines it will remember them.
- - -
How to contribute to Debian at http://www.debian.org/intro/help
User avatar
Francewhoa
 
Posts: 21
Joined: 2013-04-12 17:59
Location: Powell River, British Columbia, Canada


Return to System configuration

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable
cron