Page 1 of 1

openSUSE11.4:Building the main Guest Additions module failed

Posted: 13. Sep 2011, 18:20
by sasha788
Hi,
after the successfull installation of openSUSE 11.4 on my Windows 7 host, i got the hint that the currently installed guest additions are outdated and that a newer version is available.
I used this tutorial:
http://en.opensuse.org/VirtualBox
to perform the steps needed for an update.
At first step 3 was not working because not guest additions are mounted, but i figured out that clicking on "install guest additions" in the virtual box menu, while running my guest OS, mounted the GA medium.
But after performing step 3 i got this message:

Code: Select all

Verifying archive integrity... All good.
Uncompressing VirtualBox 4.1.2 Guest Additions for Linux.........
VirtualBox Guest Additions installer
You appear to have a version of the VBoxGuestAdditions software
on your system which was installed from a different source or using a
different type of installer.  If you installed it from a package from your
Linux distribution or if it is a default part of the system then we strongly
recommend that you cancel this installation and remove it properly before
installing this version.  If this is simply an older or a damaged
installation you may safely proceed.

Do you wish to continue anyway? [yes or no]
yes
Removing existing VirtualBox DKMS kernel modules                                              done
Removing existing VirtualBox non-DKMS kernel modules                                          done
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.
The missing package can be probably installed with
zypper install kernel-desktop-devel-2.6.37.1-1.2                                               

Building the main Guest Additions module                                                      failed  
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Installing the Window System drivers
Installing X.Org Server 1.9 modules                                                           done
Setting up the Window System to use the Guest Additions                                       done
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.                                                      

Installing graphics libraries and desktop services components                                 done
oliver@linux-in1i:/media> joe /var/log/vboxadd-install.log 
Processing '/etc/joe/joerc'...Processing '/etc/joe/ftyperc'...done
done
As you can see all steps are done but not the building of the main Guest Additions module. I looked into the /var/log/vboxadd-install.log but i did not understand how i can solve the problems, here is the log:

Code: Select all

/tmp/vbox.0/Makefile.include.header:97: Warning: using /usr/src/linux as the source directory of your Li
grep: /usr/src/linux/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 -C /usr/src/linux SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo;                                                           \
echo "  ERROR: Kernel configuration is invalid.";               \
echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
echo;                                                           \
/bin/false)

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*

  WARNING: Symbol version dump /usr/src/linux-2.6.37.6-0.7/Module.symvers
           is missing; modules will have no dependencies and modversions.

make -f scripts/Makefile.build obj=/tmp/vbox.0
/tmp/vbox.0/Makefile.include.header:97: Warning: using /usr/src/linux as the source directory of your Li
grep: /usr/src/linux/include/linux/version.h: Datei oder Verzeichnis nicht gefunden
  gcc -Wp,-MD,/tmp/vbox.0/.VBoxGuest-linux.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/4.5/
cc1: fatal error: include/generated/autoconf.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
make[2]: *** [/tmp/vbox.0/VBoxGuest-linux.o] Fehler 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxguest] Error 2
But i found another thread about this problem:
http://www.linuxquestions.org/questions ... ls-871284/
but i did not tried to reproduce the solution because i do not realy understand what iam doing.

Re: openSUSE11.4:Building the main Guest Additions module fa

Posted: 13. Sep 2011, 20:48
by Sasquatch
Check my howto. You're missing the kernel headers. My tutorial deals with that.

Re: openSUSE11.4:Building the main Guest Additions module fa

Posted: 29. Jun 2012, 16:11
by Matt4325
Same problem. Suggested Wiki didn't help.
OpenSUSE version 12.1 (per /ect/SuSE-release). VBoxLinuxAdditions.run thinks headers should be at /usr/src/linux/include/linux/version.h, whereas they are not as that file is not located there. Trying to figure whether to specify some other KERN_DIR as suggested by the error log (but not sure which directory should it be), or to seek new packages (but not sure which ones and which package fetcher to use).

Perhaps there is a more elegant solution.
The OpenSuse VirtualBox help page not helpful.
Hence no VirtualBox Guest Additions for OpenSUSE within reasonable effort :?
Anyone from VirtualBox care to solve please? this should be straightforward if you know what those headers are expected to be.

Re: openSUSE11.4:Building the main Guest Additions module fa

Posted: 29. Jun 2012, 16:19
by Martin
Matt4325 wrote:Same problem. Suggested Wiki didn't help.
Sasquatch wasn't telling you to look at a wiki.
The howto he mentioned is linked in his signature: viewtopic.php?t=15679