installed/updated virtual box wont work now

If it doesn't fit in another category, ask it here.
Post Reply
unix1adm
Posts: 153
Joined: 2010/02/23 13:27:06

installed/updated virtual box wont work now

Post by unix1adm » 2011/04/20 18:40:37

I installed virtualbox but got an error. When I checked the log file I found this:

Edit: i should mentiopn I followed this document for the install:
http://wiki.centos.org/HowTos/Virtualization/VirtualBox



cat /var/log/vbox-install.log
Uninstalling modules from DKMS
removing old DKMS module vboxhost version 4.0.4

------------------------------
Deleting module version: 4.0.4
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxhost/4.0.4/source ->
/usr/src/vboxhost-4.0.4

DKMS: add Completed.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:167: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.


Not sure how I am suppose to specify the KERN_DIR variable.

Should this be in my env settings?
How do I tell what it should be set at?

This is a new install ov virtualbox on a existing CentOS system. Which has been running for a good while just fine.

scottro
Forum Moderator
Posts: 2456
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

installed/updated virtual box wont work now

Post by scottro » 2011/04/20 18:50:58

It sounds as if your kernel-devel package and running kernel aren't in sync. This most commonly happens when a kernel has been updated, but the machine hasn't been rebooted.

For example, you have (I'm making up numbers for ease of typing)


uname -r (the running kernel)

shows

2.6.18-1

Now you run yum update and get kernel 2.6.18-2. It also updates your kernel-devel package.

For example if I run

uname -r

and get

2.6.18-1

and then run

rpm -q kernel-devel

2.6.18-2

it won't work. So, you have to either install an earlier version of kernel-devel or else reboot, which should start with the newest kernel. (Just before rebooting, make sure that there is a kernel versions (the vmlinux-2-whatever) that matches your installed version of kernel-devel

unix1adm
Posts: 153
Joined: 2010/02/23 13:27:06

Re: installed/updated virtual box wont work now

Post by unix1adm » 2011/04/20 20:08:45

Well I did do a yum update all on the system and rebooted. Now I cannot get my desktop (gnome) to run right. I am missing all the menus and and I cannot even log out of the console.

So I was able to get a terminal window running and did a ps and killed the gnome process. and it refreshed the screen and i got my menus back.

but if i log out and back in the same thing happens again.


Not sure what just happened.

User avatar
TrevorH
Forum Moderator
Posts: 29112
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: installed/updated virtual box wont work now

Post by TrevorH » 2011/04/20 20:15:38

That bit is related to [url=https://www.centos.org/modules/newbb/viewtopic.php?topic_id=30939&forum=37]this thread[/url].

Post Reply

Return to “CentOS 5 - Miscellaneous Questions”