Cannot compile vboxdrv - details inside

I have been looking around at the forum and have found a lot of helpful posts but nothing has seemed to solved my problem. I think the biggest issue may come from the fact that I have opensuse 11.0 (x86_64) and I am trying to install:

VirtualBox-1.6.2_31466_openSUSE103-1.x86_64.rpm

… which is obviously the build from SUN’s website for 10.3. However I did not see an rpm for 11.0 yet. (I want the binary so that I can use USB, etc).

The most helpful post I’ve found yet is:
Virtualbox Install Problem - openSUSE Forums

However after following this advice I still am having issues compiling. This is what is in /var/log/vbox-install.log:

“Makefile:154: *** Error: unable to find the include directory for your current Linux kernel. Specify KERN_INCL=<directory> and run Make again. Stop.”

A few notes:

  1. I have VirtualBox OSE installed and was able to load the kernel module vboxdrv with no issues.
  2. I uninstalled but have kept the .VirtualBox directory in my home folder (to keep my machine, settings, etc). I don’t think this is the problem but it may be relevant.
  3. I have tried re-installing kernel-source and make but with no success.
  4. I have tried KERN_INCL=/var/path/to/include but it didn’t work.

I’ve also tried the commands in this post to load the old kernel module… but still no dice.

Virtualbox Kernel Module - Page 2 - openSUSE Forums

Any help is appreciated. Seems this is a common problem but I have not found a solution that works for me yet.

Do you have these RPMs installed: pam-devel, make, gcc, kernel-source? Do a

rpm -q pam-devel make gcc kernel-source

and also

uname -a

The kernel source should match the running kernel. If not, you need to download it by subscribing to the updates repository and doing an update.

It ought to work. I have it working fine on x86_64.

PS: I think you might also need linux-kernel-headers. This one doesn’t have to match the patchlevel of the source or running kernel, just the 2.6.25.

Don’t forget to run an online update before running VBoxLinuxAdditions.run.

ken yap wrote:
> Do you have these RPMs installed: pam-devel, make, gcc, kernel-source?
> Do a
>
>
> Code:
> --------------------
> rpm -q pam-devel make gcc kernel-source
> --------------------
>
>
> and also
>
>
> Code:
> --------------------
> uname -a
> --------------------
>
>
> The kernel source should match the running kernel. If not, you need to
> download it by subscribing to the updates repository and doing an
> update.
>
> It ought to work. I have it working fine on x86_64.
>
> PS: I think you might also need linux-kernel-headers. This one doesn’t
> have to match the patchlevel of the source or running kernel, just the
> 2.6.25.
>
>

As Ken Yap has said, it works fine. I didn’t install the rpms mentioned
when I set up the system, but added them through Yast and any updates.
The only “panic” was when I updated the kernel and forgot to re-compile
the kernel module :frowning:

I also installed and removed the OpenSuse OSE version (1.5.6?) before
finally getting the binary 1.6.2 to work.

PeeGee

Asus M2NPV-VM, AMD 64X2 3800+, openSuSE 10.3 x86-64/XP Home dual boot
Asus M2V-MX SE, AMD LE1640, openSuSE 11.0 x86-64/XP Home dual boot

Thanks for the replies… I have been unable to try these for the past day or so, but hopefully will have time tonight.

I will update the thread with issues/solutions for future reference.

Thanks!

I did not see an option to edit my post, so I suppose this is going to resurrect it… my apologies.

I did not get a chance to try these fixes that were suggest, but I was finally able to download the 64bit OpenSUSE 11.0 release from virtualbox.org and that worked wonders. No issues now.

Thanks to all who suggested fixes!

I had the same problem because of the different versions of kernel-sources and kernel itself. Online-update has solved my problem in 5 minutes.