Page 1 of 1

installed/updated virtual box wont work now

Posted: 2011/04/20 18:40:37
by unix1adm
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.

installed/updated virtual box wont work now

Posted: 2011/04/20 18:50:58
by scottro
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

Re: installed/updated virtual box wont work now

Posted: 2011/04/20 20:08:45
by unix1adm
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.

Re: installed/updated virtual box wont work now

Posted: 2011/04/20 20:15:38
by TrevorH
That bit is related to [url=https://www.centos.org/modules/newbb/viewtopic.php?topic_id=30939&forum=37]this thread[/url].