If your VirtualBox is not working anymore after Linux kernel update, issue could be that vbox modules are not compiling anymore.

Console output:

Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMSError!  Bad return status for module build on kernel: 3.19.0-rc7-wl+ (x86_64)
Consult /var/lib/dkms/vboxhost/4.3.10/build/make.log for more information.
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules
  (Look at /var/log/vbox-install.log to find out what went wrong)
From make.log:
  CC [M]  /var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.o
/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c: In function ‘vboxNetAdpOsCreate’:
/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c:186:48: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c:184:15: error: ‘alloc_netdev’ undeclared (first use in this function)
     pNetDev = alloc_netdev(sizeof(VBOXNETADPPRIV),
/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c:184:15: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c: At top level:
/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c:159:13: warning: ‘vboxNetAdpNetDevInit’ defined but not used [-Wunused-function]
 static void vboxNetAdpNetDevInit(struct net_device *pNetDev)
scripts/Makefile.build:257: recipe for target '/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.o' failed
make[2]: *** [/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.o] Error 1
scripts/Makefile.build:404: recipe for target '/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp' failed
make[1]: *** [/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp] Error 2
Makefile:1373: recipe for target '_module_/var/lib/dkms/virtualbox/4.3.10/build' failed
make: *** [_module_/var/lib/dkms/virtualbox/4.3.10/build] Error 2
make: Leaving directory '/usr/src/linux-headers-3.19.0-rc7-wl+'
You could go for a fix as described at virtualbox-dkms: fix alloc_netdev problems when compiling with 3.17.0-rcX headers.
If for some reason you do not want to fiddle with source packages, you could modify files /usr/share/virtualbox/src/vboxhost/vboxnetadp/linux/VBoxNetAdp-linux.c and /usr/share/virtualbox/src/vboxhost/vboxdrv/r0drv/linux/alloc-r0drv-linux.c directly. Paths are relevant for Linux Mint and probably for other Ubuntu based distributions. After modification run /etc/init.d/vboxdrv setup and you are good to go.
If you have any questions regarding this, feel free to contact me at my e-mail address.

Google ads

Last modified:

Valid HTML 4.01!
Copyright (c) 2015 PAVUK