Problem with modules of VirtualBox?

Slackware comes with various kernels but only one source tree. Virtual Box (I use the closed source version, I suppose the same applies to the open source) does not like that - same situation if you have custom kernel and you erased the kernel sources. What to do?

Download and extract the kernel in question. To find which kernel source you need to download use this command. uname -r. Virtualbox will search for kernel sources in /lib/modules/`uname -r`/build/.

ln -sf /usr/src/linux-`uname -r`/ /lib/modules/`uname -r`/build

cd to the kernel source tree and copy your current kernel configuration to .config (ex. from /boot)

make clean
make modules_prepare

In my system I have to unset ARCH. Probably you don't need this. unset ARCH

Now you can compile the Virtual Box modules in slackware /etc/rc.d/rc.vboxdrv setup
in 5.1.18 try
/sbin/vboxconfig
Maybe the equivelant on other systems cd /opt/VirtualBox/src/vboxhost; make; make install

Apr-2017: make oldconfig is useless. Remove.

Τυχαία εικόνα

incredibles.jpg

You are here with: CCBot/2.0 (http://commoncrawl.org/faq/)
Your IP: 54.81.210.99

Made in Linux :)

Hits: 973