OpenVZ Forum


Home » General » Support » *SOLVED* Make Kernel Module ztdummy available in VE
*SOLVED* Make Kernel Module ztdummy available in VE [message #16155] Fri, 24 August 2007 12:55 Go to next message
schogge is currently offline  schogge
Messages: 19
Registered: July 2007
Junior Member
Hi,

I have installed and loaded the kernel module ztdummy (include in zaptel) on HN and want to give VE access to it.

My system:
Host: CentOS 5
Kernel: 2.6.18-8.1.4.el5.028stab035.1
Guest: CentOS 4
zaptel: zaptel-1.2.20.1

The test utility zttest shows this on HN:

# zttest 
Opened pseudo zap interface, measuring accuracy...
99.975586% 99.926758% 99.975586% 99.975586% 99.926758%


I also gave VE access to /dev/zap by running

for x in `ls /dev/zap`; do /usr/sbin/vzctl set 200 --devnodes zap/${x}:rw --save; done


ls /dev/zap inside VE shows

ls /dev/zap/
channel  ctl  pseudo  timer  transcode


However asterisk is compiling without its conferencing tool MeetMe, which means ztdummy is missing on the system.

Is their a way to check if ztdummy works correctly in VE?

Any idea to get it running?

Thanks,
schogge

[Updated on: Fri, 21 December 2007 07:25] by Moderator

Report message to a moderator

Re: Make Kernel Module ztdummy available in VE [message #21296 is a reply to message #16155] Thu, 04 October 2007 15:01 Go to previous messageGo to next message
Alexandr Andreev is currently offline  Alexandr Andreev
Messages: 35
Registered: October 2006
Member
1. Had you solve the problem?

Quote:

However asterisk is compiling without its conferencing tool MeetMe, which means ztdummy is missing on the system.


2. Probably you compiled zaptel in VE0, installed kernel modules, gave access to /dev/zap to VE's, and then entered VE, and tried to compile asteriks.

If so, you should also build and install zaptel inside VE, because asterisk requires zaptel headers and libraries to enable MeetMe support.

3. To check whether ztdummy loaded successful, run in your VE
# ztcfg -v
# ztcfg -d
# cat /proc/zaptel/1


Here is all asterisk features, depending on ZAPTEL:

# grep ZAPTEL menuselect.makedeps
MENUSELECT_DEPENDS_app_flash=ZAPTEL
MENUSELECT_DEPENDS_app_meetme=ZAPTEL
MENUSELECT_DEPENDS_app_page=ZAPTEL APP_MEETME
MENUSELECT_DEPENDS_app_rpt=ZAPTEL TONEZONE
MENUSELECT_DEPENDS_app_zapbarge=ZAPTEL
MENUSELECT_DEPENDS_app_zapras=ZAPTEL
MENUSELECT_DEPENDS_app_zapscan=ZAPTEL
MENUSELECT_DEPENDS_chan_iax2=ZAPTEL
MENUSELECT_DEPENDS_chan_zap=RES_SMDI ZAPTEL_VLDTMF ZAPTEL TONEZONE PRI
MENUSELECT_DEPENDS_codec_zap=ZAPTEL_TRANSCODE ZAPTEL
MENUSELECT_DEPENDS_res_musiconhold=ZAPTEL

Re: Make Kernel Module ztdummy available in VE [message #23388 is a reply to message #16155] Fri, 16 November 2007 10:20 Go to previous messageGo to next message
Emiliano is currently offline  Emiliano
Messages: 4
Registered: November 2007
Junior Member
Sorry guys to reopen this topic but I had the same problem.

Compiling zaptel on HN and VE was a success, but issuing modprobe on VE yields:

idra / # modprobe -v ztdummy
insmod /lib/modules/2.6.18-028stab027/misc/zaptel.ko
WARNING: Error inserting zaptel (/lib/modules/2.6.18-028stab027/misc/zaptel.ko): Operation not permitted
insmod /lib/modules/2.6.18-028stab027/misc/ztdummy.ko
FATAL: Error inserting ztdummy (/lib/modules/2.6.18-028stab027/misc/ztdummy.ko): Operation not permitted

The VE is a Gentoo system with kernel version 2.6.18-028stab027.

Any help is appreciable! Very Happy
Re: Make Kernel Module ztdummy available in VE [message #23400 is a reply to message #23388] Fri, 16 November 2007 10:48 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Well, loading modules from inside VE is prohibited, you have to load modules from HN (Hardware Node).

If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: Make Kernel Module ztdummy available in VE [message #23413 is a reply to message #16155] Fri, 16 November 2007 13:18 Go to previous messageGo to next message
Emiliano is currently offline  Emiliano
Messages: 4
Registered: November 2007
Junior Member

Thanks for your reply.

Is it considered a bug or a known limitation of the OpenVZ architecture?

Tha is: is there anyone going to correct this? Razz
Re: Make Kernel Module ztdummy available in VE [message #23416 is a reply to message #23413] Fri, 16 November 2007 13:47 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Emiliano wrote on Fri, 16 November 2007 16:18

Is it considered a bug or a known limitation of the OpenVZ architecture?

This is both limitation and the power of the OpenVZ. As all the VEs use the same kernel (OS level virtualization http://wiki.openvz.org/Introduction_to_virtualization), just imagine how simple is to write a bad kernel module, load it in any VE and crash the whole Node (Hardware Node)?
So this "limitation" defends VEs from each other.

So, this is not a bug, but the feature. Smile


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: Make Kernel Module ztdummy available in VE [message #25133 is a reply to message #23416] Sat, 15 December 2007 04:37 Go to previous messageGo to next message
anishb is currently offline  anishb
Messages: 1
Registered: December 2007
Junior Member
Hi,

I am trying to compile zaptel inside a centos-4-minimal virtual environment so that Asterisk will compile with app_meetme. I am getting the following error:

[root@pbx zaptel-1.2.22.1]# make

make -C /usr/src/linux SUBDIRS=/usr/local/src/zaptel-1.2.22.1 HOTPLUG_FIRMWARE=yes modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-53.el5.028stab051.1-i686'
CC [M] /usr/local/src/zaptel-1.2.22.1/zaptel-base.o
/usr/local/src/zaptel-1.2.22.1/zaptel-base.c:188: warning: 'fcstab' defined but not used
/bin/sh: line 1: 5234 Done(2) gcc -m32 -E -D__GENKSYMS__ -Wp,-MD,/usr/local/src/zaptel-1.2.22.1/.zaptel-base.o.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/3.4.6/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Wstrict-prototypes -Wundef -Werror-implicit-function-declaration -Os -pipe -msoft-float -fno-builtin-sprintf -fno-builtin-log2 -fno-builtin-puts -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -mregparm=3 -ffreestanding -Iinclude/asm-i386/mach-generic -Iinclude/asm-i386/mach-default -fomit-frame-pointer -Wdeclaration-after-statement -DSTANDALONE_ZAPATA -DBUILDING_TONEZONE -DHOTPLUG_FIRMWARE -I/usr/local/src/zaptel-1.2.22.1 -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(zaptel_base)" -D"KBUILD_MODNAME=KBUILD_STR(zaptel)" /usr/local/src/zaptel-1.2.22.1/zaptel-base.c
5236 Floating point exception| scripts/genksyms/genksyms -a i386 >/usr/local/src/zaptel-1.2.22.1/.tmp_zaptel-base.ver
make[2]: *** [/usr/local/src/zaptel-1.2.22.1/zaptel-base.o] Error 136
make[1]: *** [_module_/usr/local/src/zaptel-1.2.22.1] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-53.el5.028stab051.1-i686'
make: *** [modules] Error 2


Anyone have any idea what the problem could be?
Re: Make Kernel Module ztdummy available in VE [message #25200 is a reply to message #25133] Mon, 17 December 2007 14:34 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Hi.

i think this wiki will answer your question:
http://wiki.openvz.org/Building_LKM_against_OpenVZ_kernel_fr om_RPM

--
Konstantin.


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: Make Kernel Module ztdummy available in VE [message #26586 is a reply to message #23388] Tue, 29 January 2008 07:59 Go to previous messageGo to next message
ricoche is currently offline  ricoche
Messages: 17
Registered: January 2008
Location: Nagano Japan
Junior Member
Emiliano wrote on Fri, 16 November 2007 05:20



Compiling zaptel on HN and VE was a success,



I understand and successfully compiled Zaptel on the HN, but how does one do the same for VE when you cannot access the Kernel Source required to compile. Or can you?

Thanks,

Jim

[Updated on: Tue, 29 January 2008 07:59]

Report message to a moderator

Re: Make Kernel Module ztdummy available in VE [message #26587 is a reply to message #21296] Tue, 29 January 2008 08:13 Go to previous message
ricoche is currently offline  ricoche
Messages: 17
Registered: January 2008
Location: Nagano Japan
Junior Member
Alexandr Andreev wrote on Thu, 04 October 2007 11:01



2. Probably you compiled zaptel in VE0, installed kernel modules, gave access to /dev/zap to VE's, and then entered VE, and tried to compile asteriks.

If so, you should also build and install zaptel inside VE, because asterisk requires zaptel headers and libraries to enable MeetMe support.



This is exactly what I did, but I am not sure how to install zaptel inside VE because it requires access to the Kernel souce which I can't seem to install using "yum install ovzkernel-devel". I did this on the HN and it worked, but what to do with regards to the VE I am unsure.

Thanks,

Jim
Previous Topic: VLAN Setup
Next Topic: VLAN woes
Goto Forum:
  


Current Time: Sun Dec 03 08:19:56 GMT 2023

Total time taken to generate the page: 0.01899 seconds