Virtualbox broken after switch to upgrade packs

Archived topics about LMDE 1 and LMDE 2
Locked
bpeary
Level 2
Level 2
Posts: 75
Joined: Tue Dec 28, 2010 7:11 am

Virtualbox broken after switch to upgrade packs

Post by bpeary »

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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
aliander

Re: Virtualbox broken after switch to upgrade packs

Post by aliander »

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 2
Level 2
Posts: 75
Joined: Tue Dec 28, 2010 7:11 am

Re: Virtualbox broken after switch to upgrade packs

Post by bpeary »

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: 737
Joined: Fri Nov 19, 2010 4:55 pm
Location: Newport, S Wales

Re: Virtualbox broken after switch to upgrade packs

Post by Roken »

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.
Kernel Linux Tex 5.12.14-zen1-1-zen, XFCE
Arch
Dual GTX1070 8Gb
AMD Ryzen 1800X
32Gb RAM
bpeary
Level 2
Level 2
Posts: 75
Joined: Tue Dec 28, 2010 7:11 am

Re: Virtualbox broken after switch to upgrade packs

Post by bpeary »

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

Re: Virtualbox broken after switch to upgrade packs

Post by aliander »

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: 737
Joined: Fri Nov 19, 2010 4:55 pm
Location: Newport, S Wales

Re: Virtualbox broken after switch to upgrade packs

Post by Roken »

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 5.12.14-zen1-1-zen, XFCE
Arch
Dual GTX1070 8Gb
AMD Ryzen 1800X
32Gb RAM
Locked

Return to “LMDE Archive”