You are not logged in.

#1 2011-06-22 19:54:04

SiegeMachine
Member
Registered: 2009-03-26
Posts: 157

[Solved] Building vboxdrv with custom kernel

I noticed a Loading Modules     [FAIL] during boot yesterday so I decided to investigate it.

[siegemachine@Siege-LapLinux ~]$ sudo modprobe vboxdrv
Password: 
FATAL: Module vboxdrv not found.
[siegemachine@Siege-LapLinux ~]$ sudo /etc/rc.d/vboxdrv setup
:: Removing VirtualBox kernel modules                                    [DONE] 
:: Compiling VirtualBox kernel modules                                   [BUSY] Look at /tmp/vbox-install.log to find out what went wrong
Look at /tmp/vbox-install.log to find out what went wrong
Look at /tmp/vbox-install.log to find out what went wrong

[siegemachine@Siege-LapLinux ~]$ yaourt -S kernel26-headers
warning: kernel26-headers-2.6.39.1-1 is up to date -- reinstalling

Now I read in this forum

https://bbs.archlinux.org/viewtopic.php?id=107733

that if I have a custom kernel then I have to have the custom kernel-headers to go with it in order to build the virtualbox driver module.  The problem is the kernel I got is from the AUR

[siegemachine@Siege-LapLinux ~]$ yaourt -Qi kernel26-kamal
Name           : kernel26-kamal
Version        : 2.6.39.1-1

And I've tried searching the AUR and there doesn't appear to be any kernel-headers to match the kernel.  When I build the kernel should I build it with the regular name and not with -kamal on the end of the kernel and see if that would work for building the virtualbox modules? Or should I boot off the regular kernel (I have both) and build it there, then reboot on this kernel and see if it works? Or finally, do I need to somehow build the kernel-headers for this kernel myself, install them, and then build the modules?

Last edited by SiegeMachine (2011-06-24 03:47:57)

Offline

#2 2011-06-22 19:58:49

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [Solved] Building vboxdrv with custom kernel

is custom kernel which means that kernel26-headers doesn't matter.

you need something like kernel26-kamal-headers


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2011-06-22 20:33:14

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] Building vboxdrv with custom kernel

Try reading the PKGBUILD - it's a split package, which should create kernel26-kamal AND kernel26-kamal-headers.

If that didn't happen, paste your build command and complete build output somewhere so anyone who's interested can have a look.

Offline

#4 2011-06-24 01:20:40

SiegeMachine
Member
Registered: 2009-03-26
Posts: 157

Re: [Solved] Building vboxdrv with custom kernel

Well its in the AUR so I just used yaourt to install it.  Is there a way to get the PKGBUILD for it to make my own headers for the patched kernel? They basically patched the kernel, made it a package and uploaded it to the AUR.

Offline

#5 2011-06-24 01:23:56

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [Solved] Building vboxdrv with custom kernel

So which AUR package is it? It should be made to use split packages to build the headers package just like tomk and wonder mentioned.


neutral

Offline

#6 2011-06-24 03:47:11

SiegeMachine
Member
Registered: 2009-03-26
Posts: 157

Re: [Solved] Building vboxdrv with custom kernel

Aha well my friend noticed in the PKGBUILD for kernel26-kamal actually builds the kernel headers for that kernel but it doesn't isntall them so I just downloaded the PKGBUILD and built it myself again with makepkg instead of using yaourt then I could install the header package and built the module after.  In the end all is good.

Offline

#7 2011-06-24 06:00:39

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] Building vboxdrv with custom kernel

/me hates the Yaourt Syndrome

Offline

Board footer

Powered by FluxBB