OpenVZ Forum


Home » General » Support » kernel path?
kernel path? [message #710] Sat, 07 January 2006 06:53 Go to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
I'm setting up Asterisk on a VPS. I've set it up on a standard system just fine before, but this part bothers me:

Before compiling the Zaptel drivers on a system running a Linux 2.4
kernel, you should verify that /usr/src/ contains a symbolic link named
linux-2.4 pointing to your kernel source. If the symbolic link doesn’t
exist, you can create it with the following command (assuming you’ve
installed the source in /usr/src/):
# ln –s /usr/src/`uname –r` /usr/src/linux-2.4
Computers running Linux 2.6 kernel–based distributions do not usually
require the use of the symbolic link, as these distributions will
search for the kernel build directory automatically. However, if you’ve
placed the build directory in a nonstandard place (i.e., somewhere
other than /lib/modules/<kernel version>/build/), you will require the
use of the symbolic link.
Re: kernel path? [message #717 is a reply to message #710] Sat, 07 January 2006 13:00 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

You _probably_ need kernel header files -- and you can copy them from the host system into your VPS (with the ID of NNN in the below example -- please substitute with your VPS ID) like this (on the host system):

vzctl mount NNN
mkdir -p /vz/root/NNN/lib/modules/`uname -r`/build
cp -r /lib/modules/`uname -r`/build/ /vz/root/NNN/lib/modules/`uname -r`/build


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: kernel path? [message #723 is a reply to message #717] Sat, 07 January 2006 14:14 Go to previous messageGo to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
Thanks much
Re: kernel path? [message #740 is a reply to message #717] Sun, 08 January 2006 13:54 Go to previous messageGo to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
close, but I had a build dir within a build dir then. I just moved the contents of the secong build dir down one level and all was well.
Re: kernel path? [message #978 is a reply to message #710] Mon, 23 January 2006 21:59 Go to previous messageGo to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
To further build upon that:

ln -s /usr/src/linux-2.6.8-1.521 /usr/src/linux-2.6
ln -s /usr/src/linux-2.6.8-1.521 /lib/modules/`uname -r`/build


That was in someone else's description of an issue. Do I point it to the same place, or....
Re: kernel path? [message #9529 is a reply to message #710] Tue, 09 January 2007 07:19 Go to previous messageGo to next message
babazoid is currently offline  babazoid
Messages: 3
Registered: January 2007
Junior Member
Hi there,

If I cannot get the Kernel headers from my host, and know that they are running ovzkernel-smp-2.6.8-022stab078.10.i686.rpm, can I just download the RPM?

Second question, I am in Ubuntu -- any reccomendations on how I should go about extracting the RPM?

Thanks
Mark
Re: kernel path? [message #9530 is a reply to message #9529] Tue, 09 January 2007 07:26 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

1. I suppose yes

2. Find and use rpm2cpio.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: kernel path? [message #9531 is a reply to message #9530] Tue, 09 January 2007 07:38 Go to previous messageGo to next message
babazoid is currently offline  babazoid
Messages: 3
Registered: January 2007
Junior Member
Thanks for the advice.

I am virtually a n00b to the VPS environment and Asterisk for that matter. I have it running on my box at home, but I am a scratching my head a little when it comes to compiling 1.4 on my VPS.

I have searched everywhere for a resource that explains what exactly I'll need (to compile 1.4) for a setup as such:

- All I want to do is use Asterisk for SIP and maybe IAX phones remotely, obviously no local hardware.

- Conferencing would be really nice, but it's not neccessary.

I am really confused with where I should start...

I swear when I get this done I'm putting it in the WIKI so others like me don't have to scour for info Smile

Any advice you could give would be great.
Re: kernel path? [message #9532 is a reply to message #9531] Tue, 09 January 2007 07:49 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

There is already one article about it:
http://wiki.openvz.org/Asterisk_in_VE_with_debian_stable

Unfortunately I don't know a bit about Asterisk…


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: kernel path? [message #9533 is a reply to message #9532] Tue, 09 January 2007 07:55 Go to previous message
babazoid is currently offline  babazoid
Messages: 3
Registered: January 2007
Junior Member
Yeah,

unfortunately the Asterisk in the Ubuntu repository is very old. I'll give 'er a try and post the info as soon as I figure it all out.

Again, if anyone else knows anything please let me know! Smile

Thanks
Mark
Previous Topic: Physical Server to VE - Howto?
Next Topic: Slow vz start/stop
Goto Forum:
  


Current Time: Sun Aug 24 13:00:24 GMT 2025

Total time taken to generate the page: 0.06345 seconds