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
Maybe the equivelant on other systems cd /opt/VirtualBox/src/vboxhost; make; make install

Apr-2017: make oldconfig is useless. Remove.

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

1943_Geopoliticus Child Watching the Birth_of_a_new_man.jpg

You are here with: CCBot/2.0 (
Your IP:

Made in Linux :)

Hits: 1932

Page generated in 0.002 seconds