Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
Kernel headers not found?
View previous topic :: View next topic  
Author Message
toothandnail
Member


Joined: 17 Mar 2011
Posts: 63
Location: Oxfordshire, UK

PostPosted: Thu Apr 14, 2011 2:24 am    Post subject: Kernel headers not found? Reply with quote

I've nstalled a copy of SMS under virtualbox 4.0 (allowing me to play with the setup when I'm not near my own home network). That works, though I'm probably going to need to reinstall it, since I think I've messed up the network support under virtualbox.

Trying to install the guest additions for virtualbox, I've hit a problem. The error I get back from the installer is as below:

Code:
The headers for the current running kernel were not found. If the following module complation fails, then this could be the reason.
...fail!
Your system does not seem to be set up to build kernel modules.


I've attempted to regenerate the headers by copying /boot/config-2.6.35.11-smp to /usr/src/linux-2.6.35.11 and running:

Code:
make oldconfig && make prepare


However, I'm still getting the same error when attempting to build the vbox modules. I also notice when checking the vboxadd-install.log that there is a reference to /bin/false, though I cannot work out where it is coming from.

I may eventually be able to post the log, but at the moment, I've not got any connection between the VM and the hardware, so its a bit difficult....

Any idea what I'm doing wrong?

Paul.
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1753
Location: Greece

PostPosted: Thu Apr 14, 2011 5:34 am    Post subject: Reply with quote

Have you install all the devel series packages?
The headers are in kernel-headers package, but you should install all packages for this to work.

Just so you know, to install headers from a kernel source tree you need to do
Code:
make headers_check
make INSTALL_HDR_PATH=/usr headers_install
find /usr/include \( -name .install -o -name ..install.cmd \) -delete


gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
toothandnail
Member


Joined: 17 Mar 2011
Posts: 63
Location: Oxfordshire, UK

PostPosted: Fri Apr 15, 2011 4:49 pm    Post subject: Reply with quote

gerasimos_h wrote:
Have you install all the devel series packages?
The headers are in kernel-headers package, but you should install all packages for this to work.


I haave the development packages installed (just installed everything). I've also done a second install (to fix the networking), then updated using slapt-get. Still getting the same error.

Quote:
Just so you know, to install headers from a kernel source tree you need to do
Code:
make headers_check
make INSTALL_HDR_PATH=/usr headers_install
find /usr/include \( -name .install -o -name ..install.cmd \) -delete



Thanks. Tried that as well, but still the same error. I'll have to go back to the virtualbox documents and see if I'm missing something else that's needed.

Paul.
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1753
Location: Greece

PostPosted: Fri Apr 15, 2011 6:56 pm    Post subject: Reply with quote

Can you attach the vbox.log?
toothandnail wrote:
then updated using slapt-get

When you said updated? to where/what?
To upgrade to SMS-current you need to switch your machine to single user mode.
What's the output of
Code:
uname -a
ls -l /usr/src


You can try to download SMS-Current and build the iso with
Code:
wget -np -m http://sms.it-ccs.com/isos/SMS-Current/

might get you some html files as well but you can ignore them.

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
toothandnail
Member


Joined: 17 Mar 2011
Posts: 63
Location: Oxfordshire, UK

PostPosted: Sat Apr 23, 2011 10:14 pm    Post subject: Reply with quote

gerasimos_h wrote:
Can you attach the vbox.log?


Will do sometime in the next few days - I'm still having some problems with vbox at the moment.

Quote:


When you said updated? to where/what?
To upgrade to SMS-current you need to switch your machine to single user mode.
What's the output of
Code:
uname -a
ls -l /usr/src


Ah, sorry, missed that. I ran slapt-get --u followed by slapt-get --upgrade. Didn't install the new kernel. I'll have another look. On the subject of upgrading, looking at your other message, I see you talk about modifying /etc/inittab. Is there any reason not to use 'sms 1' at the Lilo boot prompt?

Also, for checking .new files after upgrading packages, I've been using George Vlahavas's dotnew application ([url http://salix.enialis.net/x86_64/current/salix/ap/dotnew-1.0.3-noarch-1gv.txz[/url]. The ncurses interface works quite well for checking the contents of new configuration files - in my case,, much safer than trying to check them individually.

Quote:
You can try to download SMS-Current and build the iso with
Code:
wget -np -m http://sms.it-ccs.com/isos/SMS-Current/

might get you some html files as well but you can ignore them.


I'm not too worried about the upgrade - I just wanted to make sure I had the most recent dev package and the updated kde extras so I could build things I needed.

Smile Still learning - there are lots of things I don't know about correctly configuring SMS. I'm still learning how to use Webmin as well.

Paul.
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1753
Location: Greece

PostPosted: Sun Apr 24, 2011 3:28 am    Post subject: Reply with quote

You can use 'sms 1' for entering single user mode, I just want users to know what they are doing, rather than entering commands
It's all about knowing how your system works.
As for Virtualbox you probably got the error about missing recordmcount and modpost,
I ran to that when building SMS-1.6.0RC1 with Vbox-4.0.4, version 3.2.x didn't have that dependency.
By the way you can download it, it is full installation with pre install guest additions for all kernels, plus it's up to date (19 April)

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
toothandnail
Member


Joined: 17 Mar 2011
Posts: 63
Location: Oxfordshire, UK

PostPosted: Sat Apr 30, 2011 10:27 am    Post subject: Reply with quote

gerasimos_h wrote:
You can use 'sms 1' for entering single user mode, I just want users to know what they are doing, rather than entering commands
It's all about knowing how your system works.


Smile Fair enough. I would normally either use the Lilo boot prompt or 'init 1' from console (though I'm not sure that would be a safe option in this instance....).

Quote:
As for Virtualbox you probably got the error about missing recordmcount and modpost,
I ran to that when building SMS-1.6.0RC1 with Vbox-4.0.4, version 3.2.x didn't have that dependency.
By the way you can download it, it is full installation with pre install guest additions for all kernels, plus it's up to date (19 April)


That sounds like it - I'm running Vbox 4.04.

I downloaded the appliance and have tried it. Not very familiar with them - I used the 'import' option on the Vbox menu to get it running. Not entirely sucessful though - it runs, but very slowly compared to the Vbox install from native CD. Are there settings that I should can use to fix that? Or should I have done something other than import to get the appliance mounted?

Paul.
Back to top
View user's profile Send private message
toothandnail
Member


Joined: 17 Mar 2011
Posts: 63
Location: Oxfordshire, UK

PostPosted: Sat Apr 30, 2011 6:38 pm    Post subject: Reply with quote

Embarassed Forget the coment about speed for the appliance - I'm currently using it mainly to read docs and look at how things are set up, so I've ben using the KDE desktop. Hadn't realised how little memory was allocated to the VM.

Smile I've now given it 32 MB of video RAM and it works much better.....

Paul.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional