スポンサード リンク
X100P(PCI Card) doesn't work on domainU
Posted at 07/05/03 PermaLink» Comment(0)»
I install the [trixbox] on a domainU by HVM technology.
I can install and the domainU-trixbox worked.
IP phone connect the domainU-trixbox.
I want install the [X100P card] to the domainU-trixbox.
But my domainU-trixbox can't use the [X100P card].
Why my domainU-trixbox can't use [X100P card].
Please tell me how to setting up!
I was setting bellow.
I did bellow.
[root@server ~]# cd /usr/src/kernels/xen-3.0.4_1-src
[root@server xen-3.0.4_1-src]# make -j4 world
[root@server xen-3.0.4_1-src]# make -j4 install
[root@server xen-3.0.4_1-src]# make linux-2.6-xen-config CONFIGMODE=menuconfig
about XEN-PCI
[*] Privileged Guest (domain 0)<*> Backend driver support
<*> Block-device backend driver
<*> Block-device tap backend driver
<*> Network-device backend driver
[ ] Pipelined transmitter (DANGEROUS)
<*> Network-device loopback driver
<*> PCI-device backend driver
PCI Backend Mode (Virtual PCI) --->
[ ] PCI Backend Debugging
TPM-device backend driver
[root@server xen-3.0.4_1-src]# make linux-2.6-xen-build
[root@server xen-3.0.4_1-src]# make linux-2.6-xen-install
[root@server xen-3.0.4_1-src]# depmod 2.6.16.29-xen
[root@server xen-3.0.4_1-src]# mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod /boot/initrd-2.6.16.33-xen.img 2.6.16.33-xen
[root@server xen-3.0.4_1-src]# chkconfig xend on
[root@server xen-3.0.4_1-src]# cd
[root@server ~]# lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.4 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 5 (rev 01)
00:1c.5 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 6 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 RAID bus controller: Intel Corporation 82801GR/GH (ICH7 Family) Serial ATA Storage Controller RAID (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller
03:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller
04:00.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
04:04.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
[root@server ~]# vi /etc/rc.d/rc.local
# add below comment
modprobe pcibacksleep 2
SLOT=0000:04:00.0
# Add a new slot to the PCI Backend's list
echo -n $SLOT > /sys/bus/pci/drivers/pciback/new_slot
# Now that the backend is watching for the slot, bind to it
echo -n $SLOT > /sys/bus/pci/drivers/pciback/bind
[root@server ~]# vi /boot/grub/menu.lst
# add below
title CentOS (2.6.16.33-xen)root (hd0,0)
kernel /xen-3.0.4-1.gz dom0_mem=256M
module /vmlinuz-2.6.16.33-xen ro root=/dev/sda3 ro console=tty0 pciback.hide=(04:00.0)
module /initrd-2.6.16.33-xen.img
[root@server ~]# reboot
[root@server ~]# lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.4 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 5 (rev 01)
00:1c.5 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 6 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 RAID bus controller: Intel Corporation 82801GR/GH (ICH7 Family) Serial ATA Storage Controller RAID (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller
03:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller
04:00.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
04:04.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
?????? Why [4:00.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface] appear?
[root@server ~]# vi /etc/xen/trixbox.hvm
import os, rearch = os.uname()[4]
if re.search('64', arch):
arch_libdir = 'lib64'
else:
arch_libdir = 'lib'
kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 384
shadow_memory = 8
name = "trixbox"
vcpus=1
pae=1
acpi=1
apic=1
vif = [ 'type=ioemu, mac=00:16:3e:00:00:18, bridge=xenbr0, model=ne2k_pci' ]
disk = [ 'file:/var/xen/images/trixbox.img,ioemu:hda,w' ]
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
boot="dac"
sdl=1
vnc=1
vncdisplay=1
vncpasswd=''
stdvga=0
serial='pty'
keymap='ja'
pci = ['4,0,0']
[root@server ~]# xm create trixbox.hvm
*** use vnc-viewer, and connect trixbox, and login
[root@asterisk1 ~]# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 01)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Class ff80: Unknown device 5853:0001 (rev 01)
00:04.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 20)
?????? Why [Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface] not appear?
[root@asterisk1 ~]# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 01)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Class ff80: Unknown device 5853:0001 (rev 01)
00:04.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 20)
[root@asterisk1 ~]# ztcfg -vv
Zaptel Configuration======================
Channel map:
0 channels configured.
[root@asterisk1 ~]# genzaptelconf
STOPPING ASTERISKAsterisk Stopped
STOPPING FOP SERVERsafe_opserver: no process killed
FOP Server Stopped
Generating '/etc/zaptel.conf'
Generating '/etc/asterisk/zapata-auto.conf'
Unloading zaptel hardware drivers:
Unloading ztdummy: [ OK ]
Unloading wctdm: [ OK ]
Unloading wcfxo: [ OK ]
Unloading wcte11xp: [ OK ]
Unloading wct1xxp: [ OK ]
Unloading wct4xxp: [ OK ]
Unloading tor2: [ OK ]
Removing zaptel module: [ OK ]
Loading zaptel framework: [ OK ]
Waiting for zap to come online: [ OK ]
Loading zaptel hardware modules:
Loading tor2: [ OK ]
Loading wct4xxp: [ OK ]
Loading wct1xxp: [ OK ]
Loading wcte11xp: [ OK ]
Loading wcfxo: [ OK ]
Loading wctdm: [ OK ]
Loading ztdummy: [ OK ]
Running ztcfg: [ OK ]
SETTING FILE PERMISSIONS
Permissions OK
STARTING ASTERISK
Set to realtime thread
Running as group 'asterisk'
Running as user 'asterisk'
Asterisk 1.2.13 svn rev 47264, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'show license' for details.
=========================================================================
Asterisk Event Logger Started /var/log/asterisk/event_log
Asterisk Dynamic Loader loading preload modules:
Asterisk Management interface listening on port 5038
Asterisk PBX Core Initializing
Registering builtin applications:
[AbsoluteTimeout]
[Answer]
[BackGround]
[Busy]
[Congestion]
[DigitTimeout]
[Goto]
[GotoIf]
[GotoIfTime]
[ExecIfTime]
[Hangup]
[NoOp]
[Progress]
[ResetCDR]
[ResponseTimeout]
[Ringing]
[SayNumber]
[SayDigits]
[SayAlpha]
[SayPhonetic]
[SetAccount]
[SetAMAFlags]
[SetGlobalVar]
[SetLanguage]
[Set]
[SetVar]
[ImportVar]
[Wait]
[WaitExten]
Asterisk Dynamic Loader Starting:
[format_wav.so] => (Microsoft WAV format (8000hz Signed Linear))
[format_pcm.so] => (Raw uLaw 8khz Audio support (PCM))
[format_au.so] => (Sun Microsystems AU format (signed linear))
[format_mp3.so] => (MP3 format [Any rate but 8000hz mono optimal])
[res_musiconhold.so] => (Music On Hold Resource)
[res_indications.so] => (Indications Configuration)
[res_odbc.so] => (ODBC Resource)
[res_crypto.so] => (Cryptographic Digital Signatures)
[res_features.so] => (Call Features Resource)
[res_monitor.so] => (Call Monitoring Resource)
[res_agi.so] => (Asterisk Gateway Interface (AGI))
[res_speech.so] => (Generic Speech Recognition API)
[res_config_mysql.so] => (MySQL RealTime Configuration Driver)
MySQL RealTime driver loaded.
[res_adsi.so] => (ADSI Resource)
[res_config_odbc.so] => (ODBC Configuration)
res_config_odbc loaded.
[pbx_ael.so] => (Asterisk Extension Language Compiler)
[pbx_functions.so] => (Builtin dialplan functions)
[pbx_loopback.so] => (Loopback Switch)
[pbx_realtime.so] => (Realtime Switch)
[pbx_config.so] => (Text Extension Configuration)
[pbx_spool.so] => (Outgoing Spool Support)
[pbx_dundi.so] => (Distributed Universal Number Discovery (DUNDi))
[chan_local.so] => (Local Proxy Channel)
[chan_features.so] => (Feature Proxy Channel)
[chan_mgcp.so] => (Media Gateway Control Protocol (MGCP))
[chan_phone.so] => (Linux Telephony API Support)
[chan_zap.so] => (Zapata Telephony w/PRI)
[skipping chan_oss.so]
[chan_iax2.so] => (Inter Asterisk eXchange (Ver 2))
[chan_sip.so] => (Session Initiation Protocol (SIP))
[chan_h323.so] => (Objective Systems H323 Channel)
[chan_skinny.so] => (Skinny Client Control Protocol (Skinny))
[chan_agent.so] => (Agent Proxy Channel)
[app_getcpeid.so] => (Get ADSI CPE ID)
[app_read.so] => (Read Variable Application)
[app_sms.so] => (SMS/PSTN handler)
[cdr_csv.so] => (Comma Separated Values CDR Backend)
[cdr_custom.so] => (Customizable Comma Separated Values CDR Backend)
[codec_lpc10.so] => (LPC10 2.4kbps (signed linear) Voice Coder)
[app_zapbarge.so] => (Barge in on Zap channel application)
[app_setcdruserfield.so] => (CDR user field apps)
[app_while.so] => (While Loops and Conditional Execution)
[codec_ilbc.so] => (iLBC/PCM16 (signed linear) Codec Translator)
[format_ilbc.so] => (Raw iLBC data)
[app_waitforsilence.so] => (Wait For Silence)
[format_g723.so] => (G.723.1 Simple Timestamp File Format)
[cdr_addon_mysql.so] => (MySQL CDR Backend)
[format_pcm_alaw.so] => (Raw aLaw 8khz PCM Audio support)
[app_nv_backgrounddetect.so] => (Newman's playback with talk and fax detection)
[app_authenticate.so] => (Authentication Application)
[app_lookupcidname.so] => (Look up CallerID Name from local database)
[app_system.so] => (Generic System() application)
[app_settransfercapability.so] => (Set ISDN Transfer Capability)
[app_echo.so] => (Simple Echo Application)
[app_random.so] => (Random goto)
[codec_g726.so] => (ITU G.726-32kbps G726 Transcoder)
[app_chanisavail.so] => (Check channel availability)
[app_ices.so] => (Encode and Stream via icecast and ices)
[app_dumpchan.so] => (Dump Info About The Calling Channel)
[app_parkandannounce.so] => (Call Parking and Announce Application)
[app_sayunixtime.so] => (Say time)
[app_lookupblacklist.so] => (Look up Caller*ID name/number from blacklist database)
[app_cdr.so] => (Tell Asterisk to not maintain a CDR for the current call)
[app_transfer.so] => (Transfer)
[app_talkdetect.so] => (Playback with Talk Detection)
[app_waitforring.so] => (Waits until first ring after time)
[app_chanspy.so] => (Listen to the audio of an active channel
)
[app_dictate.so] => (Virtual Dictation Machine)
[app_enumlookup.so] => (ENUM Lookup)
[app_adsiprog.so] => (Asterisk ADSI Programming Application)
[app_externalivr.so] => (External IVR Interface Application)
[app_mixmonitor.so] => (Mixed Audio Monitoring Application)
[app_record.so] => (Trivial Record Application)
[app_rxfax.so] => (Trivial FAX Receive Application)
[app_voicemail.so] => (Comedian Mail (Voicemail System))
[app_speech_utils.so] => (Dialplan Speech Applications)
[app_directory.so] => (Extension Directory)
[codec_adpcm.so] => (Adaptive Differential PCM Coder/Decoder)
[skipping chan_oss.so]
[format_wav_gsm.so] => (Microsoft WAV format (Proprietary GSM))
[app_milliwatt.so] => (Digital Milliwatt (mu-law) Test Application)
[format_g726.so] => (Raw G.726 (16/24/32/40kbps) data)
[app_groupcount.so] => (Group Management Routines)
[app_zapras.so] => (Zap RAS Application)
[app_setcallerid.so] => (Set CallerID Application)
[app_db.so] => (Database Access Functions)
[app_eval.so] => (Reevaluates strings)
[app_senddtmf.so] => (Send DTMF digits Application)
[app_nv_faxdetect.so] => (Newman's fax detection application)
[func_enum.so] => (ENUM Related Functions)
[cdr_manager.so] => (Asterisk Call Manager CDR Backend)
[app_privacy.so] => (Require phone number to be entered, if no CallerID sent)
[func_callerid.so] => (Caller ID related dialplan function)
[app_directed_pickup.so] => (Directed Call Pickup Application)
[app_disa.so] => (DISA (Direct Inward System Access) Application)
[app_dial.so] => (Dialing Application)
[app_curl.so] => (Load external URL)
[codec_speex.so] => (Speex/PCM16 (signed linear) Codec Translator)
[app_macro.so] => (Extension Macros)
[app_md5.so] => (MD5 checksum applications)
[app_addon_sql_mysql.so] => (Simple Mysql Interface)
[app_userevent.so] => (Custom User Event Application)
[format_g729.so] => (Raw G729 data)
[app_playback.so] => (Sound File Playback Application)
[format_jpeg.so] => (JPEG (Joint Picture Experts Group) Image Format)
[app_url.so] => (Send URL Applications)
[app_txfax.so] => (Trivial FAX Transmit Application)
[app_setcidnum.so] => (Set CallerID Number)
[app_meetme.so] => (MeetMe conference bridge)
[app_exec.so] => (Executes applications)
[app_txtcidname.so] => (TXTCIDName)
[format_ogg_vorbis.so] => (OGG/Vorbis audio)
[app_festival.so] => (Simple Festival Interface)
[app_verbose.so] => (Send verbose output)
[app_sendtext.so] => (Send Text Applications)
[app_saycountpl.so] => (Say polish counting words)
[app_flash.so] => (Flash zap trunk application)
[app_test.so] => (Interface Test Application)
[format_h263.so] => (Raw h263 data)
[app_setrdnis.so] => (Set RDNIS Number)
[func_uri.so] => (URI encode/decode functions)
[app_realtime.so] => (Realtime Data Lookup/Rewrite)
[app_stack.so] => (Stack Routines)
[app_queue.so] => (True Call Queueing)
[app_cut.so] => (Cut out information from a string)
[format_vox.so] => (Dialogic VOX (ADPCM) File Format)
[codec_gsm.so] => (GSM/PCM16 (signed linear) Codec Translator)
[app_alarmreceiver.so] => (Alarm Receiver for Asterisk)
[app_setcidname.so] => (Set CallerID Name)
[app_hasnewvoicemail.so] => (Indicator for whether a voice mailbox has messages in a given folder.)
[app_math.so] => (Basic Math Functions)
[format_sln.so] => (Raw Signed Linear Audio support (SLN))
[codec_a_mu.so] => (A-law and Mulaw direct Coder/Decoder)
[app_forkcdr.so] => (Fork The CDR into 2 separate entities.)
[app_softhangup.so] => (Hangs up the requested channel)
[app_zapateller.so] => (Block Telemarketers with Special Information Tone)
[codec_ulaw.so] => (Mu-law Coder/Decoder)
[app_page.so] => (Page Multiple Phones)
[app_readfile.so] => (Stores output of file into a variable)
[app_flite.so] => (Flite Text-to-Speech Interface)
[app_zapscan.so] => (Scan Zap channels application)
[codec_alaw.so] => (A-law Coder/Decoder)
[app_mp3.so] => (Silly MP3 Application)
[app_nbscat.so] => (Silly NBS Stream Application)
[app_image.so] => (Image Transmission Application)
[format_gsm.so] => (Raw GSM data)
[app_controlplayback.so] => (Control Playback Application)
Asterisk Ready.
Asterisk Started
STARTING FOP SERVER
FOP server is already running
Chan Extension Context Language MusicOnHold
pseudo from-zaptel en
Verbosity is at least 1
[root@asterisk1 ~]# ztcfg -vv
Zaptel Configuration======================
Channel map:
0 channels configured.
*** Why 0 channels?