Siduction Forum

Siduction Forum => Upgrade Warnings => Topic started by: Geier0815 on 2012/12/18, 08:47:56

Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: Geier0815 on 2012/12/18, 08:47:56
Hi all,

d-u this morning install kernel 3.7.1 witch is not able to build the virtualbox-module.
Quote from: "make.log"
DKMS make.log for virtualbox-4.1.18 for kernel 3.7-1.towo-siduction-amd64 (x86_64)
Di 18. Dez 08:31:35 CET 2012
make: Entering directory `/usr/src/linux-headers-3.7-1.towo-siduction-amd64'
  LD      /var/lib/dkms/virtualbox/4.1.18/build/built-in.o
  LD      /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/built-in.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/linux/SUPDrv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/SUPDrv.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/SUPDrvSem.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/alloc-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/initterm-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/memobj-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/mpnotification-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/powernotification-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/linux/assert-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/linux/initterm-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o
/var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjNativeMapUser’:
/var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1451:38: error: ‘VM_RESERVED’ undeclared (first use in this function)
/var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1451:38: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [/var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o] Fehler 1
make[1]: *** [/var/lib/dkms/virtualbox/4.1.18/build/vboxdrv] Fehler 2
make: *** [_module_/var/lib/dkms/virtualbox/4.1.18/build] Fehler 2
make: Leaving directory `/usr/src/linux-headers-3.7-1.towo-siduction-amd64'


Moin Moin,

d-u installiert den Kernel 3.7.1 welcher nicht in der Lage ist das Module für virtualbox zu bauen. Also Augen auf!
Title: Kernel 3.7.1 couldn
Post by: devil on 2012/12/18, 08:59:19
und mit Version 4.2?

greetz
devil
Title: RE: Kernel 3.7.1 couldn
Post by: jacmoe on 2012/12/18, 09:00:07
They are working on it:

http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1086030.html

If I knew how to use deb diffs..

But it looks like a fix will be available in days.
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: ayla on 2012/12/18, 09:08:40
Version 4.2.4 from Oracle was running fine with Kernel 3.7-0 and
is running fine too after dist-upgrade and Kernel 3.7-1 with no need to act on it.

greets ayla

Edit:

Short description how I installed it:

Code: [Select]
apt-get purge virtualbox
added:
Code: [Select]
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib to one of my sources.list in /etc/apt/sources.list.d/
Code: [Select]
apt-get update
apt-get install virtualbox-4.2 dkms

The new installation has found my old guest system. I hadn't done anything else, except adding my user to group vboxusers in /etc/group, just works.

ahm... If the extensionpack for 4.18 was installed, vbox will detect it and ask whether it should get updatet.
Good idea to say "yes". ;)
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: jacmoe on 2012/12/18, 10:30:41
It works - although I had to purge the vboxadditions iso too:

apt-get purge virtualbox-guest-additions-iso
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: spacepenguin on 2013/01/04, 00:58:46
Does it work with dkms?
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: ayla on 2013/01/04, 07:19:07
hmm, I guess so:

Quote
ls -l /var/lib/dkms/vboxhost/4.2.4/3.7-1.towo-siduction-amd64/x86_64/module/
insgesamt 2008
-rw-r--r-- 1 root root 1973560 Dez 18 09:03 vboxdrv.ko
-rw-r--r-- 1 root root   12296 Dez 18 09:03 vboxnetadp.ko
-rw-r--r-- 1 root root   30464 Dez 18 09:03 vboxnetflt.ko
-rw-r--r-- 1 root root   30640 Dez 18 09:03 vboxpci.ko
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: oduffo on 2013/01/05, 16:26:51
Hi,
similar problem here.

Vbox 4.2.4 was working fine with kernel 3.6-6 and dkms installed.

Did a d-u this morning pulling in kernel 3.7-1. Virtualbox complained about missing kernel modules.
Code: [Select]
/etc/init.d/vboxdrv setup didn't help.

I purged virtualbox and installed newest version 4.2.6. Same result
Code: [Select]
~$ virtualbox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (3.7-1.towo-siduction-amd64) or it failed to
         load. Please recompile the kernel module and install it by
           sudo /etc/init.d/vboxdrv setup
         You will not be able to start VMs until this problem is fixed.

Any help would be appreciated.

Gruß
oduffo
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: oduffo on 2013/01/05, 16:55:33
Problem solved due to some hints in the vbox-forums.

I reinstalled the linux-kernel-headers and did a reboot.
The latter I should have done in the first place.

Gruß
oduffo (who is happy again)
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: mylo on 2013/01/20, 14:38:03
What is the most secure strategy to solve the prob?

Code: [Select]
DKMS make.log for virtualbox-4.1.18 for kernel 3.7-3.towo-siduction-amd64 (x86_64)
So 20. Jan 13:51:59 CET 2013
make: Entering directory `/usr/src/linux-headers-3.7-3.towo-siduction-amd64'
  LD      /var/lib/dkms/virtualbox/4.1.18/build/built-in.o
  LD      /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/built-in.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/linux/SUPDrv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/SUPDrv.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/SUPDrvSem.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/alloc-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/initterm-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/memobj-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/mpnotification-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/powernotification-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/linux/assert-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/linux/initterm-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o
/var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjNativeMapUser’:
/var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1451:38: error: ‘VM_RESERVED’ undeclared (first use in this function)
/var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1451:38: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [/var/lib/dkms/virtualbox/4.1.18/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o] Fehler 1
make[1]: *** [/var/lib/dkms/virtualbox/4.1.18/build/vboxdrv] Fehler 2
make: *** [_module_/var/lib/dkms/virtualbox/4.1.18/build] Fehler 2
make: Leaving directory `/usr/src/linux-headers-3.7-3.towo-siduction-amd64'


Do I just apt-get purge linux-kernel-headers and install them again?
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: oduffo on 2013/01/21, 13:26:46
@mylo,

first of all I would install latest version of virtualbox 4.2.6 from Oracle.

Gruß
oduffo
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: sunrat on 2013/01/21, 14:49:59
I installed VBox 4.2.6 for kernel 3.7-1 but don't recall if it built module with dkms. Dist-upgrade today brought in kernel 3.7-3 but module did not build with dkms. It built OK manually.
 Should it build with dkms?
Headers are installed, virtualbox-dkms package is not available for VBox 4.2.6. I am in vboxusers group.

Code: [Select]
apt-cache policy virtualbox-dkms
virtualbox-dkms:
  Installed: (none)
  Candidate: 4.1.18-dfsg-2
  Version table:
     4.1.18-dfsg-2 0
        500 http://http.debian.net/debian/ unstable/main amd64 Packages
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: ayla on 2013/01/21, 15:01:25
Quote
Should it build with dkms?


It had build here (twice now, for 3.7-2 and 3.7-3).

Just
Code: [Select]
apt-get install dkms


virtualbox-dkms is not needed for the Oracle module.

Greets
ayla
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: sunrat on 2013/01/21, 15:08:44
Code: [Select]
apt-cache policy dkms
dkms:
  Installed: 2.2.0.3-1.2


Installed already. Oh well, only a small problem as it built manually.
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: orinoco on 2013/01/25, 13:43:02
Why aren't the matching headerfiles automatically installed if d-u brings a new kernal? Without this all dkms tasks are failling (virtualbox-oracle, fglrx, etc.) as long I install the propper header-files by hand. My fault?
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: ayla on 2013/01/25, 15:06:30
As long as the meta package "linux-headers-siduction-$arch" is installed -as is the default on siduction- the headers come in automatically on every kernel update.
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: orinoco on 2013/01/26, 18:03:38
I could have sworn that the package was installed once. It is now installed. Thanks for the hint.
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: ayla on 2013/01/26, 18:11:08
hm, I remember I've missed it too a few weeks ago.
But I've played around with my system that time a lot, so I couldn't tell why it was missing.

greets
ayla
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: hefee on 2013/01/30, 19:45:03
I could build the virtualbox driver again with virtualbox from experimental 4.1.18-dfsg-2.1
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: hinto on 2013/02/06, 17:10:40
I ran into this using Fuduntu and VMPlayer.
-Hinto
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: nox on 2013/03/01, 17:49:26
Hi,
could someone please explain the exact command sequence to fix this bug?
I'm still using kernel 3.6.x because of it :(.

Thank you!
Simon
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: ayla on 2013/03/01, 18:34:56
Hi nox,

what exactly is your problem?

Installing virtualbox from virtualbox side?

This is shown here: http://forum.siduction.org/index.php?msg=26439#26439

Or missing Kernel-headers?

Code: [Select]
apt-get install linux-headers-siduction-amd64or
Code: [Select]
apt-get install linux-headers-siduction-686depending on the arch of your system.

Something else? Then please show us the output of the command(s) you've tried.

greets
ayla
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: nox on 2013/03/01, 19:04:42
Hi ayla,

installing virtualbox or any other software from without the siduction/debian repos seems a little insecure to me and I'm afraid it could cause some system problems in future upgrades. I remember it not being a good practice...  But if I'm wrong please provide the exact link for my 686 system. I guess it's a dpgk -i install? Do I really have to remove my previous VB install? Dunno, maybe I should wait longer, seem a litle risky for a relative noob like me. Need some positive feedback before I move any further... a step by step guide would be awesome.:)

Cheers!
Simon
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: Smon on 2013/03/01, 19:24:28
I use virtualbox-dkms from experimental, works fine here with 3.8
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: ayla on 2013/03/01, 19:52:34
Hi,

Quote from: "smon"
I use virtualbox-dkms from experimental, works fine here with 3.8


This is AFAIK another way for a working vbox in between.
For this one you would have to do (in Runlevel 3):
Code: [Select]
apt-get update
apt-get dist-upgrade
touch /etc/apt/sources.list.d/debexp.list
echo >> /etc/apt/sources.list.d/debexp.list "deb http://ftp.de.debian.org/debian/ experimental main contrib non-free"
apt-get update
apt-get install -t experimental virtualbox virtualbox-dkms virtualbox-qt

You may remove the experimental repo after by editing /etc/apt/sources.list.d/debexp.list and set a # sign in front of the there existing line:
Quote
#deb http://ftp.de.debian.org/debian/ experimental main contrib non-free


But:
I've no problem here using vbox 4.2 from the virtualbox side.
Purging the old vbox did not remove my in vbox installed XP system. On the contrary I was surprised by installing vbox 4.2 I could use it again immediatly without any needed additional action -only had to add my user to the vboxuser line in /etc/group.
If you care of your systems stability you may remove the vbox repo from your sources-list again after installing vbox 4.2.

Sorry, I'm running out of time.

I will provide the commands for installing from virtualbox side in another post later.

greets
ayla
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: Smon on 2013/03/01, 20:12:37
Quote from: ayla
Sorry, I'm running out of time.

I will provide the commands for installing from virtualbox side in another post later.

Not necessary
You did it already here:
http://forum.siduction.org/index.php?topic=3097&postdays=0&postorder=asc#26439

To remove the vbox Repo only remove the added line
Quote
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: ayla on 2013/03/02, 07:28:15
Quote from: Smon
Not necessary
You did it already here:
http://forum.siduction.org/index.php?topic=3097&postdays=0&postorder=asc#26439

You're right, I edited this post lightly insteed, corrected a fault and added dkms to install.  Don't know what else to add.

greets
ayla
Title: Kernel 3.7.1 couldn't build module for virtualbox
Post by: Lanzi on 2013/03/02, 10:39:42
Seems to work fine her from experimental

Quote

root@Siduction:# apt-get install -t experimental  virtualbox  virtualbox-dkms

Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.      
Statusinformationen werden eingelesen.... Fertig

Die folgenden zusätzlichen Pakete werden installiert:
  virtualbox-qt
Vorgeschlagene Pakete:
  vde2
Die folgenden Pakete werden aktualisiert (Upgrade):
  virtualbox virtualbox-dkms virtualbox-qt
3 aktualisiert, 0 neu installiert, 0 zu entfernen und 416 nicht aktualisiert.

Es müssen 17,5 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 25,6 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren [J/n]? j

Holen: 1 http://ftp.de.debian.org/debian/ experimental/main virtualbox-qt amd64 4.1.18-dfsg-2.1 [4.217 kB]
Holen: 2 http://ftp.de.debian.org/debian/ experimental/main virtualbox amd64 4.1.18-dfsg-2.1 [12,8 MB]
Holen: 3 http://ftp.de.debian.org/debian/ experimental/main virtualbox-dkms all 4.1.18-dfsg-2.1 [496 kB]                                                    
Es wurden 17,5 MB in 21 s geholt (797 kB/s).                                                                                                                
Lese Changelogs... Fertig
(Lese Datenbank ... 192328 Dateien und Verzeichnisse sind derzeit installiert.)


Vorbereitung zum Ersetzen von virtualbox-qt 4.1.18-dfsg-2 (durch .../virtualbox-qt_4.1.18-dfsg-2.1_amd64.deb) ...
Ersatz für virtualbox-qt wird entpackt ...
Vorbereitung zum Ersetzen von virtualbox 4.1.18-dfsg-2 (durch .../virtualbox_4.1.18-dfsg-2.1_amd64.deb) ...
Ersatz für virtualbox wird entpackt ...
Vorbereitung zum Ersetzen von virtualbox-dkms 4.1.18-dfsg-2 (durch .../virtualbox-dkms_4.1.18-dfsg-2.1_all.deb) ...

------------------------------
Deleting module version: 4.1.18
completely from the DKMS tree.
------------------------------
Done.
Ersatz für virtualbox-dkms wird entpackt ...
Trigger für hicolor-icon-theme werden verarbeitet ...
Trigger für menu werden verarbeitet ...
Trigger für shared-mime-info werden verarbeitet ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Trigger für man-db werden verarbeitet ...
Trigger für desktop-file-utils werden verarbeitet ...
virtualbox (4.1.18-dfsg-2.1) wird eingerichtet ...
[ ok ] Stopping VirtualBox kernel modules.
[FAIL] Starting VirtualBox kernel modules[....] No suitable module for running kernel found ... failed!
 failed!
invoke-rc.d: initscript virtualbox, action "restart" failed.
virtualbox-qt (4.1.18-dfsg-2.1) wird eingerichtet ...
virtualbox-dkms (4.1.18-dfsg-2.1) wird eingerichtet ...
Loading new virtualbox-4.1.18 DKMS files...
Building only for 3.8-0.towo.1-siduction-amd64
Building initial module for 3.8-0.towo.1-siduction-amd64
Done.

vboxdrv:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.8-0.towo.1-siduction-amd64/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.8-0.towo.1-siduction-amd64/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.8-0.towo.1-siduction-amd64/updates/dkms/

vboxpci.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.8-0.towo.1-siduction-amd64/updates/dkms/

depmod....

DKMS: install completed.
[ ok ] Stopping VirtualBox kernel modules.
[ ok ] Starting VirtualBox kernel modules.
Trigger für menu werden verarbeitet ...