LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-19-2012, 07:22 PM   #1
Mark007
Member
 
Registered: Apr 2004
Location: Sussex, UK
Distribution: Centos, Cisco IOS, Win<n>X64
Posts: 34

Rep: Reputation: 15
Missing Directories?


Hi,

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.


Looking in /lib/modules/

Code:
 ls -lca
total 1440
drwxr-xr-x 7 root root   4096 Sep 19 22:22 .
drwxr-xr-x 7 root root   4096 Sep 20 00:18 ..
lrwxrwxrwx 1 root root     50 Jul  6 17:38 build -> ../../../usr/src/kernels/2.6.18-308.8.2.el5-x86_64
drwxr-xr-x 9 root root   4096 Jul  6 17:40 dahdi
drwxr-xr-x 2 root root   4096 Jul  6 17:38 extra
drwxr-xr-x 9 root root   4096 Jul  6 17:38 kernel
-rw-r--r-- 1 root root 312192 Sep 19 22:22 modules.alias
-rw-r--r-- 1 root root     69 Sep 19 22:22 modules.ccwmap
-rw-r--r-- 1 root root 243003 Sep 19 22:22 modules.dep
-rw-r--r-- 1 root root    147 Sep 19 22:22 modules.ieee1394map
-rw-r--r-- 1 root root    375 Sep 19 22:22 modules.inputmap
-rw-r--r-- 1 root root   2699 Sep 19 22:22 modules.isapnpmap
-rw-r--r-- 1 root root     74 Sep 19 22:22 modules.ofmap
-rw-r--r-- 1 root root 253443 Sep 19 22:22 modules.pcimap
-rw-r--r-- 1 root root   4033 Sep 19 22:22 modules.seriomap
-rw-r--r-- 1 root root 170282 Sep 19 22:22 modules.symbols
-rw-r--r-- 1 root root 405810 Sep 19 22:22 modules.usbmap
lrwxrwxrwx 1 root root      5 Jul  6 17:38 source -> build
drwxr-xr-x 2 root root   4096 Jul  6 17:38 updates
drwxr-xr-x 3 root root   4096 Sep 19 22:58 weak-updates

There's two broken symlinks... to !build

looking at where the symlink goes, we see.. no build directory..

Quote:
ls -l
total 844
drwxr-xr-x 26 root root 4096 Sep 19 23:57 arch
drwxr-xr-x 2 root root 4096 Sep 19 23:57 block
drwxr-xr-x 4 root root 4096 Sep 19 23:57 crypto
drwxr-xr-x 68 root root 4096 Sep 19 23:57 drivers
drwxr-xr-x 66 root root 4096 Sep 19 23:57 fs
drwxr-xr-x 22 root root 4096 Sep 19 23:57 include
drwxr-xr-x 2 root root 4096 Sep 19 23:57 init
drwxr-xr-x 2 root root 4096 Sep 19 23:57 ipc
-rw-r--r-- 1 root root 59963 Aug 21 22:41 kabi_whitelist
drwxr-xr-x 5 root root 4096 Sep 19 23:57 kernel
drwxr-xr-x 5 root root 4096 Sep 19 23:57 lib
-rw-r--r-- 1 root root 48583 Aug 21 22:42 Makefile
drwxr-xr-x 2 root root 4096 Sep 19 23:57 mm
-rw-r--r-- 1 root root 174442 Aug 21 22:42 Module.kabi
-rw-r--r-- 1 root root 2065 Aug 21 22:42 Module.markers
-rw-r--r-- 1 root root 432811 Aug 21 22:42 Module.symvers
drwxr-xr-x 43 root root 4096 Sep 19 23:57 net
drwxr-xr-x 4 root root 4096 Sep 19 23:57 samples
drwxr-xr-x 10 root root 4096 Sep 19 23:57 scripts
drwxr-xr-x 4 root root 4096 Sep 19 23:57 security
drwxr-xr-x 18 root root 4096 Sep 19 23:57 sound
-rw-r--r-- 1 root root 49824 Aug 21 22:42 symsets-2.6.18-308.13.1.el5.tar.gz
drwxr-xr-x 2 root root 4096 Sep 19 23:57 usr
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!


Cheers,
MarkA
 
Old 09-19-2012, 10:39 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
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]#
It appears that your headers are a different version from running kernel.
 
Old 09-20-2012, 02:13 AM   #3
Mark007
Member
 
Registered: Apr 2004
Location: Sussex, UK
Distribution: Centos, Cisco IOS, Win<n>X64
Posts: 34

Original Poster
Rep: Reputation: 15
Thank you for that...

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 !
 
Old 09-20-2012, 02:15 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Congratulations!
 
Old 09-23-2012, 10:30 PM   #5
dranix
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Rep: Reputation: Disabled
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.
 
Old 09-24-2012, 12:38 AM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
@dranix start a new thread so that you'll get the help you need, I'll be looking for it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Missing a couple of font directories WhiteWolf1776 Slackware 3 05-25-2011 08:50 AM
Locating Missing Home Directories? carlosinfl Linux - General 4 05-20-2008 04:58 PM
Gnome apps gone/directories missing BDHamp SUSE / openSUSE 1 03-25-2006 09:48 AM
home directories missing after upgrade to 2.4.26 eger Linux - Software 2 05-03-2004 06:11 PM
Missing directories /usr oh my! echoking Slackware 3 09-09-2003 03:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration