View previous topic :: View next topic |
Author |
Message |
toothandnail Member
Joined: 17 Mar 2011 Posts: 63 Location: Oxfordshire, UK
|
Posted: Thu Apr 14, 2011 2:24 am Post subject: Kernel headers not found? |
|
|
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 |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Thu Apr 14, 2011 5:34 am Post subject: |
|
|
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 |
|
toothandnail Member
Joined: 17 Mar 2011 Posts: 63 Location: Oxfordshire, UK
|
Posted: Fri Apr 15, 2011 4:49 pm Post subject: |
|
|
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 |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Fri Apr 15, 2011 6:56 pm Post subject: |
|
|
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 |
|
toothandnail Member
Joined: 17 Mar 2011 Posts: 63 Location: Oxfordshire, UK
|
Posted: Sat Apr 23, 2011 10:14 pm Post subject: |
|
|
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.
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 |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Sun Apr 24, 2011 3:28 am Post subject: |
|
|
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 |
|
toothandnail Member
Joined: 17 Mar 2011 Posts: 63 Location: Oxfordshire, UK
|
Posted: Sat Apr 30, 2011 10:27 am Post subject: |
|
|
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. |
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 |
|
toothandnail Member
Joined: 17 Mar 2011 Posts: 63 Location: Oxfordshire, UK
|
Posted: Sat Apr 30, 2011 6:38 pm Post subject: |
|
|
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.
I've now given it 32 MB of video RAM and it works much better.....
Paul. |
|
Back to top |
|
|