OpenVZ Forum


Home » General » Support » zaptel compile in container
zaptel compile in container [message #33404] Mon, 13 October 2008 03:32 Go to next message
gtcnet is currently offline  gtcnet
Messages: 21
Registered: September 2008
Junior Member
Has anyone successfully compiled zaptel within a VE container. IF so, can you please advise the OS template used and the steps to get the proper kernel sources for compile. thanks



Re: zaptel compile in container [message #33427 is a reply to message #33404] Tue, 14 October 2008 11:46 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
May be the following article will help you

http://wiki.openvz.org/Asterisk_from_source
Re: zaptel compile in container [message #33431 is a reply to message #33427] Tue, 14 October 2008 14:20 Go to previous messageGo to next message
gtcnet is currently offline  gtcnet
Messages: 21
Registered: September 2008
Junior Member
This thread discussed the compiling of Zaptel in the Hardware node. As there is difficulty in compiling Zaptel in the current kernel within the hardware node, it was suggested that Zaptel can be compiled within the VE container.

I would like to know if anyone has successfully compiled zaptel within the VE container and which kernel and sources they used.

Thanks
Re: zaptel compile in container [message #33434 is a reply to message #33431] Tue, 14 October 2008 14:58 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

I hope somebody'll point you the exact version of kernel and zaptel module that work perfectly with each other but I want to make a little notes:
- I think you'd better try to do it by yourself and if something is wrong ask here
- take care of building environment i.e. if you're going to build zaptel module against rhel based kernel do it in rhel/centos based VE. install gcc and kernel-devel package inside VE and compile the module inside VE.

Re: zaptel compile in container [message #33435 is a reply to message #33434] Tue, 14 October 2008 15:09 Go to previous messageGo to next message
gtcnet is currently offline  gtcnet
Messages: 21
Registered: September 2008
Junior Member
Hello,

I have tried this already as you had suggested building zaptel in the VE container and was not able to do that.

see thread:
http://forum.openvz.org/index.php?t=tree&&th=6729&am p;goto=33022#msg_33022

I was posting to see if anyone had successfully done this as per your suggestion.

Re: zaptel compile in container [message #33436 is a reply to message #33435] Tue, 14 October 2008 15:14 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Unfortunately, I vaguely remember the details but the only one thing I know for sure that I've been able to compile zaptel module inside VE:

- zaptel-1.4.12.1
- 2.6.18-92.1.1.el5.028stab057.2
- centos 5 based VE + ovzkernel-devel-2.6.18-92.1.1.el5.028stab057.2.i686.rpm
Re: zaptel compile in container [message #33437 is a reply to message #33436] Tue, 14 October 2008 15:17 Go to previous messageGo to next message
gtcnet is currently offline  gtcnet
Messages: 21
Registered: September 2008
Junior Member
all right, i appreciate your suggestions. I attached the previous thread listing where we attempted this. . I will try again. thanks
Re: zaptel compile in container [message #33438 is a reply to message #33436] Tue, 14 October 2008 15:35 Go to previous messageGo to next message
gtcnet is currently offline  gtcnet
Messages: 21
Registered: September 2008
Junior Member
Ok, back to the same spot with the kernel sources.

since you have done this, please let me know what you did, with the exact steps to get the kernel sources installed so you can compile this? Thanks

make[3]: Leaving directory `/usr/src/zaptel-1.4.12.1/menuselect
/mxml'
gcc -o menuselect menuselect.o strcompat.o menuselect_stub.o mxml/libmxml.a mxml/libmxml.a
make[2]: Leaving directory `/usr/src/zaptel-1.4.12.1/menuselect'
make[1]: Leaving directory `/usr/src/zaptel-1.4.12.1/menuselect'
Generating input for menuselect ...
make[1]: Entering directory `/usr/src/zaptel-1.4.12.1'
echo "You do not appear to have the sources for the 2.6.18-92.1.1.el5.028stab057.2 kernel installed."
You do not appear to have the sources for the 2.6.18-92.1.1.el5.028stab057.2 kernel installed.
exit 1
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/src/zaptel-1.4.12.1'
make: *** [all] Error 2
[root@238 zaptel-1.4.12.1]#
Re: zaptel compile in container [message #33439 is a reply to message #33438] Tue, 14 October 2008 15:36 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
What "uname -a" says?
Re: zaptel compile in container [message #33440 is a reply to message #33437] Tue, 14 October 2008 15:36 Go to previous messageGo to next message
gtcnet is currently offline  gtcnet
Messages: 21
Registered: September 2008
Junior Member
1 clear
2 cd /usr/src/
3 wget http://downloads.digium.com/pub/zaptel/releases/zaptel-1.4.1 2.1.tar.gz
4 cd zaptel-1.4.12.1.tar.gz
5 ll
6 tar xzvf zaptel-1.4.12.1.tar.gz
7 cd zaptel-1.4.12.1
8 ./install_prereq test
9 uname -a
10 yum install gcc
11 ./configure
12 yum -y install make
13 ./configure
14 make
15 history
Re: zaptel compile in container [message #33441 is a reply to message #33439] Tue, 14 October 2008 15:38 Go to previous messageGo to next message
gtcnet is currently offline  gtcnet
Messages: 21
Registered: September 2008
Junior Member
[root@238 zaptel-1.4.12.1]# uname -a
Linux 238.local 2.6.18-92.1.1.el5.028stab057.2 #1 SMP Mon Jul 21 20:55:45 MSD 2008 i686 i686 i386 GNU/Linux
[root@238 zaptel-1.4.12.1]#

Re: zaptel compile in container [message #33442 is a reply to message #33441] Tue, 14 October 2008 15:40 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Where have you installed ovzkernel-devel-2.6.18-92.1.1.el5.028stab057.2.i686.rpm?
Re: zaptel compile in container [message #33443 is a reply to message #33442] Tue, 14 October 2008 15:41 Go to previous messageGo to next message
gtcnet is currently offline  gtcnet
Messages: 21
Registered: September 2008
Junior Member
ok, this is the point where we got stuck before. How did you get the sources installed. did you download the rpm and install it or use you?
Re: zaptel compile in container [message #33444 is a reply to message #33443] Tue, 14 October 2008 15:43 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Download this package inside VE
http://download.openvz.org/kernel/branches/rhel5-2.6.18/028s tab057.2/ovzkernel-devel-2.6.18-92.1.1.el5.028stab057.2.i686 .rpm

then install it "rpm -ihv ovzkernel-devel-2.6.18-92.1.1.el5.028stab057.2.i686.rpm"
Re: zaptel compile in container [message #33445 is a reply to message #33442] Tue, 14 October 2008 15:45 Go to previous messageGo to next message
gtcnet is currently offline  gtcnet
Messages: 21
Registered: September 2008
Junior Member
[root@238 src]# wget http://download.openvz.org/kernel/branches/rhel5-2.6.18/028s tab057.2/ovzkernel-2.6.18-92.1.1.el5.028stab057.2.src.rpm
--08:42:20-- http://download.openvz.org/kernel/branches/rhel5-2.6.18/028s tab057.2/ovzkernel-2.6.18-92.1.1.el5.028stab057.2.src.rpm
Resolving download.openvz.org... 64.131.90.11
Connecting to download.openvz.org|64.131.90.11|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 63199783 (60M) [application/x-rpm]
Saving to: `ovzkernel-2.6.18-92.1.1.el5.028stab057.2.src.rpm'

100%[======================================================= ============================= >] 63,199,783 766K/s in 1m 49s

08:44:10 (564 KB/s) - `ovzkernel-2.6.18-92.1.1.el5.028stab057.2.src.rpm' saved [63199783/63199783]

[root@238 src]# rpm -ivh ovzkernel-2.6.18-92.1.1.el5.028stab057.2.src.rpm
warning: ovzkernel-2.6.18-92.1.1.el5.028stab057.2.src.rpm: Header V3 DSA signature: NOKEY, key ID a7a1d4b6
error: cannot create %sourcedir /usr/src/redhat/SOURCES
[root@238 src]#

Re: zaptel compile in container [message #33447 is a reply to message #33445] Tue, 14 October 2008 15:48 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
I've provided you with another link. ovzkernel-devel package, not src.rpm. Please, download package from provided link.
Re: zaptel compile in container [message #33448 is a reply to message #33444] Tue, 14 October 2008 15:49 Go to previous messageGo to next message
gtcnet is currently offline  gtcnet
Messages: 21
Registered: September 2008
Junior Member
ok, it installed the sources, same problem:
ranlib libmxml.a
make[3]: Leaving directory `/usr/src/zaptel-1.4.12.1/menuselect/mxml'
gcc -o menuselect menuselect.o strcompat.o menuselect_stub.o mxml/libmxml.a mxml/libmxml.a
make[2]: Leaving directory `/usr/src/zaptel-1.4.12.1/menuselect'
make[1]: Leaving directory `/usr/src/zaptel-1.4.12.1/menuselect'
make[1]: Entering directory `/usr/src/zaptel-1.4.12.1'
echo "You do not appear to have the sources for the 2.6.18-92.1.1.el5.028stab057.2 kernel installed."
You do not appear to have the sources for the 2.6.18-92.1.1.el5.028stab057.2 kernel installed.
exit 1
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/src/zaptel-1.4.12.1'
make: *** [all] Error 2
[root@238 zaptel-1.4.12.1]# history
1 clear
2 cd /usr/src/
3 wget http://downloads.digium.com/pub/zaptel/releases/zaptel-1.4.1 2.1.tar.gz
4 cd zaptel-1.4.12.1.tar.gz
5 ll
6 tar xzvf zaptel-1.4.12.1.tar.gz
7 cd zaptel-1.4.12.1
8 ./install_prereq test
9 uname -a
10 yum install gcc
11 ./configure
12 yum -y install make
13 ./configure
14 make
15 history
16 uname -a
17 clear
18 uname -a
19 cd ..
20 wget http://download.openvz.org/kernel/branches/rhel5-2.6.18/028s tab057.2/ovzkernel-2.6.18-92.1.1.el5.028stab057.2.src.rpm
21 rpm -ivh ovzkernel-2.6.18-92.1.1.el5.028stab057.2.src.rpm
22 pwd
23 cd /tmp/
24 wget http://download.openvz.org/kernel/branches/rhel5-2.6.18/028s tab057.2/ovzkernel-devel-2.6.18-92.1.1.el5.028stab057.2.i686 .rpm
25 rpm -ivh ovzkernel-devel-2.6.18-92.1.1.el5.028stab057.2.i686.rpm
26 cd /usr/src/
27 cd zaptel-1.4.12.1
28 make
29 make clean
30 ./configure
31 make
32 history
[root@238 zaptel-1.4.12.1]#
Re: zaptel compile in container [message #33449 is a reply to message #33447] Tue, 14 October 2008 15:51 Go to previous messageGo to next message
gtcnet is currently offline  gtcnet
Messages: 21
Registered: September 2008
Junior Member
yes, i was able to sucessfully install the link you provided and sent the history listing to you.
Re: zaptel compile in container [message #33450 is a reply to message #33449] Tue, 14 October 2008 15:56 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Just a moment I'll to do it.
Re: zaptel compile in container [message #33452 is a reply to message #33450] Tue, 14 October 2008 16:09 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
I got it! Sorry, I totally forgot about it.

Please,
(inside VE)
# mkdir /lib/modules/2.6.18-92.1.1.el5.028stab057.2
(on the HN)
# mount --bind /lib/modules/2.6.18-92.1.1.el5.028stab057.2/ /vz/root/101/lib/modules/2.6.18-92.1.1.el5.028stab057.2/

then try again
Re: zaptel compile in container [message #33453 is a reply to message #33452] Tue, 14 October 2008 16:41 Go to previous messageGo to next message
gtcnet is currently offline  gtcnet
Messages: 21
Registered: September 2008
Junior Member
ok, it compiles, but dosent load:

[root@238 zaptel-1.4.12.1]# service zaptel start
Loading zaptel framework: WARNING: Error inserting crc_ccitt (/lib/modules/2.6.18-92.1.1.el5.028stab057.2/kernel/lib/crc- ccitt.ko): Operation not permitted
FATAL: Error inserting zaptel (/lib/modules/2.6.18-92.1.1.el5.028stab057.2/misc/zaptel.ko) : Operation not permitted
[FAILED]
Waiting for zap to come online...
Re: zaptel compile in container [message #33454 is a reply to message #33453] Tue, 14 October 2008 17:28 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
It's impossible to load modules from inside the containers!

You should load appropriate modules inside HN and then grant appropriate permissions to VE

http://wiki.openvz.org/Asterisk_from_source
Previous Topic: *SOLVED* Server refused to allocate pty
Next Topic: VMWare inside OpenVZ?
Goto Forum:
  


Current Time: Sat Apr 27 21:46:23 GMT 2024

Total time taken to generate the page: 0.03937 seconds