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?
cd /opt/VboxGuestAdditions-VERSION/src/vboxguest-VERSION
KERN_VER=`uname -r` KERN_DIR=/usr/src/linux/ make
KERN_VER=`uname -r` KERN_DIR=/usr/src/linux/ make install
Alternative
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.
Jul-2025: Alternative method. Wow almost 10 years passed.
Τυχαία εικόνα
usa-slave-timeline.jpg
You are here with: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Your IP: 216.73.216.11
Made in Linux :)
Hits: 2473
Φόρτος CPU: 0.01 | 0.02 | 0