Virtualbox broken after switch to upgrade packs

Archived topics about LMDE 1
Forum rules
bpeary
Level 1
Level 1
Posts: 23
Joined: Tue Dec 28, 2010 7:11 am

Virtualbox broken after switch to upgrade packs

Postby bpeary » Mon Nov 14, 2011 5:51 am

I saw this issue with the first upgrade pack, so went back to the old mintupdate. Now I've tried again, installing pack 3. Again, virtualbox stops working. My suspicion is it's the switch to uuid and vbox can't find the saved machines. Trying the fixes in the vbox error messages failed.

Screenshot.png
Screenshot.png (171.37 KiB) Viewed 1221 times

aliander
Level 1
Level 1
Posts: 6
Joined: Mon Nov 14, 2011 6:37 am

Re: Virtualbox broken after switch to upgrade packs

Postby aliander » Mon Nov 14, 2011 7:01 am

Well, having Virtualbox running here for work every day.
But I must admit, I have to reregister the kernel modules after every reboot (couldn't solve that til now...).

How is a 'sudo /etc/init.d/vboxdrv setup' failing?
What does it say?

bpeary
Level 1
Level 1
Posts: 23
Joined: Tue Dec 28, 2010 7:11 am

Re: Virtualbox broken after switch to upgrade packs

Postby bpeary » Mon Nov 14, 2011 7:45 pm

Thanks. Here are the errors. I corrected one myself (no kernel headers), but no joy:

morpheus bp # /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module:done..
Recompiling VirtualBox kernel module:
Look at /var/log/vbox-install.log to find out what went wrong ... failed!
morpheus bp #


less /var/log/vbox-install.log:

Attempting to install using DKMS
removing old DKMS module vboxdrv version 3.2.8
------------------------------
Deleting module version: 3.2.8
completely from the DKMS tree.
------------------------------
Done.
Creating symlink /var/lib/dkms/vboxdrv/3.2.8/source ->
/usr/src/vboxdrv-3.2.8
DKMS: add Completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area....
make KERNELRELEASE=3.0.0-1-686-pae -C /lib/modules/3.0.0-1-686-pae/build M=/var/lib/dkms/vboxdrv/3.2.8/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.0.0-1-686-pae (i686)
Consult /var/lib/dkms/vboxdrv/3.2.8/build/make.log for more information.
Failed to install using DKMS, attempting to install without
Makefile:170: *** Error: /usr/src/linux (version 3.0.0) does not match the current kernel (version 3.0.0-1-686-pae). Stop
/var/log/vbox-install.log lines 1-23/23 (END)

less /var/lib/dkms/vboxdrv/3.2.8/build/make.log
DKMS make.log for vboxdrv-3.2.8 for kernel 3.0.0-1-686-pae (i686)
Mon Nov 14 18:32:51 EST 2011
make: Entering directory `/usr/src/linux-headers-3.0.0-1-686-pae'
LD /var/lib/dkms/vboxdrv/3.2.8/build/built-in.o
CC [M] /var/lib/dkms/vboxdrv/3.2.8/build/linux/SUPDrv-linux.o
In file included from /var/lib/dkms/vboxdrv/3.2.8/build/include/VBox/types.h:30:0,
from /var/lib/dkms/vboxdrv/3.2.8/build/linux/../SUPDrvInternal.h:35,
from /var/lib/dkms/vboxdrv/3.2.8/build/linux/SUPDrv-linux.c:33:
/var/lib/dkms/vboxdrv/3.2.8/build/include/iprt/types.h:97:31: fatal error: linux/autoconf.h: No such file or directory
compilation terminated.
make[3]: *** [/var/lib/dkms/vboxdrv/3.2.8/build/linux/SUPDrv-linux.o] Error 1
make[2]: *** [_module_/var/lib/dkms/vboxdrv/3.2.8/build] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
make: Leaving directory `/usr/src/linux-headers-3.0.0-1-686-pae'
/var/lib/dkms/vboxdrv/3.2.8/build/make.log lines 1-15/15 (END)

User avatar
Roken
Level 5
Level 5
Posts: 740
Joined: Fri Nov 19, 2010 4:55 pm
Location: Oldham, UK
Contact:

Re: Virtualbox broken after switch to upgrade packs

Postby Roken » Mon Nov 14, 2011 8:19 pm

For 3.1 kernels (certainly if you are building a kernel with 3.1 rc9 sources or later) a patch is required to virtualbox to fix the vboxdrv issue. I can't find the link to the patch now, but fortunately I have a copy and have attached.

I also can't quite remember where the patch is applied, but best guess is /usr/share/virtualbox/src/vboxhost/vboxdrv/

Once you are there, and assuming that you have extracted the patch to your desktop,:

Code: Select all

patch -Np1 -i ~/Desktop/virtualbox.patch


then re-do /etc/init.d/vboxdrv setup

NOTE. This patch tests against the version number of the kernel, which is likely to change to 3.2, and when it does it will break the patch, though it should be easy to amend and re-apply.

NOTE 2: This is only for vboxdrv failures, and only with 3.1 kernels.
Attachments
virtbox.patch.tar.gz
(679 Bytes) Downloaded 71 times
Kernel Linux Tex 3.2.2-1 (64 bit) xfce , burg
Arch
ATI Radeon HD 4670, 1GB
OSS4
AMD Phenom II X4 (965BE) @ 3.6 Ghz (Overclocked)
8Gb RAM
Image

bpeary
Level 1
Level 1
Posts: 23
Joined: Tue Dec 28, 2010 7:11 am

Re: Virtualbox broken after switch to upgrade packs

Postby bpeary » Tue Nov 15, 2011 9:29 pm

Still no go. The closest I could find to your suggested path was:
/usr/share/virtualbox/src/vboxdrv (only choices in src were vboxdrv vboxnetadp vboxnetflt

Applying the patch I get the following error:

can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- VBoxPci-linux.c.dist 2011-08-15 08:15:39.000000000 -0400
|+++ VBoxPci-linux.c 2011-10-12 19:56:27.095378933 -0400
--------------------------
File to patch:

I don't understand the terminology in line 3 (@@ -35,10 +35,15 @@) so I couldn't supply the filename

BTW: You say the patch only works with 3.1 kernels, but the kernel installed by UpdatePack 3 is:
morpheus vboxdrv # uname -r
3.0.0-1-686-pae

Thanks again for your time

aliander
Level 1
Level 1
Posts: 6
Joined: Mon Nov 14, 2011 6:37 am

Re: Virtualbox broken after switch to upgrade packs

Postby aliander » Wed Nov 16, 2011 6:36 am

You ran the script (vboxdrv setup) with root-rights, right?

Well, had some kind of the same problem with Bodhi Linux. After switching to LMDE it just ran fine...

Actually I had a nice session with the Virtualbox support, but no fruit... :(

User avatar
Roken
Level 5
Level 5
Posts: 740
Joined: Fri Nov 19, 2010 4:55 pm
Location: Oldham, UK
Contact:

Re: Virtualbox broken after switch to upgrade packs

Postby Roken » Thu Nov 17, 2011 7:43 am

bpeary wrote:BTW: You say the patch only works with 3.1 kernels, but the kernel installed by UpdatePack 3 is:
morpheus vboxdrv # uname -r
3.0.0-1-686-pae


You don't need the patch with V3.0 kernels.
Kernel Linux Tex 3.2.2-1 (64 bit) xfce , burg
Arch
ATI Radeon HD 4670, 1GB
OSS4
AMD Phenom II X4 (965BE) @ 3.6 Ghz (Overclocked)
8Gb RAM
Image


Return to “Archive”

Who is online

Users browsing this forum: No registered users and 1 guest