SCIENTIFIC-LINUX-USERS Archives

October 2012

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Joseph Areeda <[log in to unmask]>
Reply To:
Joseph Areeda <[log in to unmask]>
Date:
Mon, 1 Oct 2012 18:16:36 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (73 lines)
On 10/01/2012 04:24 PM, Akemi Yagi wrote:
> On Mon, Oct 1, 2012 at 3:33 PM, Joseph Areeda<[log in to unmask]>  wrote:
>> I want to run Windows as a guest system on my Sl6.3 box.
>>
>> Installing vbox from the Oracle repository gives me an error trying to
>> create the kernel modules.
>>
>> When trying to do it manually,  I run /etc/init.d/vboxdrv -setup and get:
>>
>>> Stopping VirtualBox kernel modules                         [  OK  ]
>>> Uninstalling old VirtualBox DKMS kernel modules            [  OK  ]
>>> Trying to register the VirtualBox kernel modules using DKMS
>>> Error! Your kernel headers for kernel 2.6.32-220.17.1.el6.x86_64 cannot be
>>> found at
>>> /lib/modules/2.6.32-220.17.1.el6.x86_64/build or
>>> /lib/modules/2.6.32-220.17.1.el6.x86_64/source.
>>
>> and when I look for those file I see a broken link
>>
>>> ll /lib/modules/2.6.32-220.23.1.el6.x86_64/build
>>> lrwxrwxrwx 1 root root 51 Jun 20 09:54
>>> /lib/modules/2.6.32-220.23.1.el6.x86_64/build ->
>>> ../../../usr/src/kernels/2.6.32-220.23.1.el6.x86_64
>>
>> It looks like that file should be linked to:
>>
>>
>>> ls /usr/src/kernels/2.6.32-279.9.1.el6.x86_64/
>>> arch    drivers   include  kernel    Makefile.common  net      security
>>> tools
>>> block   firmware  init     lib       mm               samples  sound
>>> usr
>>> crypto  fs        ipc      Makefile  Module.symvers   scripts  System.map
>>> virt
>>
>> I'm going try just fixing the link. but it seems like the kernel-header rpm
>> has a problem.  Or am I missing something?  Would not be the first time or
>> even a rare occurrence.
>>
>> Joe
> You need the kernel-devel package (not kernel-headers). That version
> must match your *running* kernel. You can find the version of your
> running kernel by:
>
> uname -r
>
> Then install kernel-devel of that version.
>
> Akemi
Thanks Akemi,

I think I see the problem now.  A yum search produces only one listing 
for kernel-devel and yum info says:

Installed Packages
Name        : kernel-devel
Arch        : x86_64
Version     : 2.6.32
Release     : 279.9.1.el6


uname -a says
Linux <my fqdn> 2.6.32-220.17.1.el6.x86_64 #1 SMP Tue May 15 17:16:46 
CDT 2012 x86_64 x86_64 x86_64 GNU/Linux

I'm using the repo maintained by the collaboration I'm in and there 
seems to an issue.

For the record fixing that broken link did allow me to build the kernel 
module and run vbox.  I wonder if I introduced any instabilities.

Joe

ATOM RSS1 RSS2