Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried to update to Virtual box 4.1, but it's all gone a bit pete tong.
So tried to roll back, to 4.0 and now we can't load a module.. to get the VMs started.
Code:
sudo /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 2.6.18-308.8.2.el5 cannot be found at
/lib/modules/2.6.18-308.8.2.el5/build or /lib/modules/2.6.18-308.8.2.el5/source.
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
and said log says
Code:
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.
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=<directory> and run Make again. Stop.
btw, extra info.. Centos 5. loads of ram, disk and cpu resoruces free on a DELL box.
Quote:
ls -d /lib/modules/$(uname -r)/build
/lib/modules/2.6.18-308.8.2.el5/build
]# dkms status
fuse, 2.7.4-1.nodist.rf, 2.6.18-92.1.17.el5, x86_64: installed
madwifi, 0.9.2.1-2.el5.rf, 2.6.18-92.1.22.el5, x86_64: installed
vboxhost, 4.0.4: added
madwifi, 0.9.2.1-2.el5.rf, 2.6.18-308.8.2.el5, x86_64: installed-weak from 2.6.18-92.1.22.el5
fuse, 2.7.4-1.nodist.rf, 2.6.18-308.8.2.el5, x86_64: installed-weak from 2.6.18-92.1.17.el5
madwifi, 0.9.2.1-2.el5.rf, 2.6.18-92.1.17.el5, x86_64: installed-weak from 2.6.18-92.1.22.el5
madwifi, 0.9.2.1-2.el5.rf, 2.6.18-92.1.18.el5, x86_64: installed-weak from 2.6.18-92.1.22.el5
fuse, 2.7.4-1.nodist.rf, 2.6.18-92.1.18.el5, x86_64: installed-weak from 2.6.18-92.1.17.el5
fuse, 2.7.4-1.nodist.rf, 2.6.18-92.1.22.el5, x86_64: installed-weak from 2.6.18-92.1.17.el5
[root@cloisters-svr05 2.6.18-308.13.1.el5-x86_64]#
So the question is, how do we resolve this problem, that there's no "build" directory, surely I don't have to re-do the whole kernel ? or is dkms mucked up ?
I -think- I've found the problem, it's just how to go about fixing!
Bit more fiddling, and easiest way was to upgrade the kernel and libs, so that all relevant libs/headers/whatever where installed and sync'd properly..
VM machines now working..
Morel of story... too late at night/needed to step away !
Hi,
I am also encountering this problem, using CentOS 5.5 with a kernel 2.6.18-308.13.1.e15.
The /lib/modules/2.6.18-308.13.1.e15/build has a softlink to /usr/src/kernels/2.6.18-308.13.1.e15-x86_64 but however the folder doesn't exist.
Tried to do a update of kernel but there's nothing to update.
A little lost as to how to resolve this issue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.