I don’t know if this will help anyone else, but I have OpenSUSE installed into a VirtualBox guest. Upgrading from 11.1 to Factory broke the VirtualBox guest additions (which was expected), but then trying to get the VirtualBox guest additions working again took some troubleshooting (which was not expected).
Here’s what I did to get the VirtualBox guest additions compiled and working in 11.2:
-Get to root in a shell (beyond the scope of this post…)
-Then make sure you have the kernel source and kernel-syms installed:
zypper in kernel-source kernel-syms
Then get over to /usr/src/linux and make sure the environment’s all setup (otherwise the VirtualBox test module won’t compile):
cd /usr/src/linux
make oldconfig && make prepare && make scripts && make dep
(don’t worry this isn’t compiling a real kernel… we just need the ‘stage set’ so to speak)
Then, copy the Module.symvers file from the linux-obj folder over to /usr/src/linux and ‘make prepare’ (this is something that the VirtualBox test explicitly looks for):
cp ../linux-obj/$HOSTTYPE/default/Module.symvers .
make prepare
(I used the $HOSTTYPE variable to automagically account for 32-bit or 64-bit systems)
After doing all this, you should be able to get the VirtualBox Additions to compile properly:
cd /media/VBOXADDITIONS_3.
./VBoxLinuxAdditions-x86.run
-or if you’re on a 64 bit arch:
./VBoxLinuxAdditions-amd64.run
You should get this if every goes well:
lnxvm:/media/VBOXADDITIONS_3. # ./VBoxLinuxAdditions-amd64.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.0.6 Guest Additions for Linux installation................................................................................................................................................................................................................................
VirtualBox 3.0.6 Guest Additions installation
Attempt to remove old DKMS modules...
removing module vboxadd version 3.0.6
removing module vboxvfs version 3.0.6
removing module vboxvideo version 3.0.6
Done.
Building the VirtualBox Guest Additions kernel module...
Building the shared folder support kernel module...
Building the drm support kernel module...
Installing the VirtualBox Guest Additions...
Successfully installed the VirtualBox Guest Additions.
You must restart your guest system in order to complete the installation.
(this was all tested on a 64 bit guest… your mileage may vary)