Comment 14 for bug 1016165

Revision history for this message
rooijan (rrossouw) wrote :

For me I got it to work as follow after reading this link: https://www.virtualbox.org/ticket/10709

My error from /var/log/vboxadd-install.log
make[2]: *** [/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxguest] Error 2

I copied the source at this link: https://www.virtualbox.org/attachment/ticket/10709/memobj-r0drv-linux.c and removed line numbers.

Then replaced the existing source:
root@u12:/opt/VBoxGuestAdditions-4.1.18/src/vboxguest-4.1.18/vboxguest/r0drv/linux# mv ~/memobj-r0drv-linux.c ./memobj-r0drv-linux.c

Then reran vboxadd:
root@u12:/opt/VBoxGuestAdditions-4.1.18/src/vboxguest-4.1.18/vboxguest/r0drv/linux# /etc/init.d/vboxadd setup

Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.

Building the main Guest Additions module ...done.
Building the shared folder support module ...done.
Building the OpenGL support module ...done.
Doing non-kernel setup of the Guest Additions ...done.
Starting the VirtualBox Guest Additions ...done.