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:
Akemi Yagi <[log in to unmask]>
Reply To:
Akemi Yagi <[log in to unmask]>
Date:
Tue, 2 Oct 2012 14:05:35 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (63 lines)
On Mon, Oct 1, 2012 at 6:16 PM, Joseph Areeda <[log in to unmask]> wrote:
> 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:

>>> 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.

>> 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.

I would not do that. The matching version of kernel-devel you need (
2.6.32-220.17.1.el6 ) is available here:

http://ftp.scientificlinux.org/linux/scientific/6.2/x86_64/updates/security/

Remove the link you manually created and install the right version of
kernel-devel. If/when you update the kernel, remember to update
kernel-devel to the same version.

Akemi

ATOM RSS1 RSS2