<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>xen-fedora(centos)-Trixbox(asterisk)で自宅サーバー</title>
      <link>http://www.xen-fedora.com/</link>
      <description>xen仮想化を利用してfedora(centos)で自宅サーバーを構築。ドメインUにてwww,mail,dns,dhcp,nfs,voip(asterisk)サーバーを構築します。</description>
      <language>ja</language>
      <copyright>Copyright 2009</copyright>
      <lastBuildDate>Tue, 30 Jun 2009 13:18:13 +0900</lastBuildDate>
      <generator>http://www.sixapart.com/movabletype/?v=3.2-ja-2</generator>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs> 

            <item>
         <title>オリジナルDomainUカーネルの構築とインストール</title>
         <description>以下の手順にてdomainUのカーネルを構築し、インストールを行います。

カーネルの構築

# make XEN_TARGET_X86_PAE=y -j5 linux-2.6-xenU-build

カーネルのインストール

# make linux-2.6-xenU-install

関連付け

# depmod 2.6.18.8-xenU

# mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod /boot/initrd-2.6.18.8-xenU.img 2.6.18.8-xen
</description>
         <link>http://www.xen-fedora.com/2009/06/domainu_5.html</link>
         <guid>http://www.xen-fedora.com/2009/06/domainu_5.html</guid>
         <category>024xen3.4のDomainUカーネル</category>
         <pubDate>Tue, 30 Jun 2009 13:18:13 +0900</pubDate>
      </item>
            <item>
         <title>オリジナルのDomainUカーネル設定</title>
         <description><![CDATA[DomainUカーネル構築の設定を行います。

<strong>Processor type and features  ---></strong>　[*] Symmetric multi-processing support
　　Subarchitecture Type (Xen-compatible)  --->
　　　(X) Xen-compatible 
　Processor family (Pentium-Pro)  --->
　　　(X) Pentium M 
　[*] Generic x86 support
　(8) Maximum number of CPUs (2-255) 
　　8
　Preemption Model (No Forced Preemption (Server))  --->
　　(X) No Forced Preemption (Server) 
　High Memory Support (64GB)  --->
　　(X) 64GB

Bus options (PCI, PCMCIA, EISA, MCA, ISA)  ---> 
　[*] PCI support
　　[*]   PCI Express support

Networking  --->
　[*] Networking support
　　Networking options  --->
　　　[*] Network packet filtering (replaces ipchains)  --->

Device Drivers  --->
　Network device support  --->
　　<*> Dummy net driver support

File systems  --->
　[*] Quota support  
　　<*>   Old quota format support
　　<*>   Quota format v2 support 

XEN  --->
　[　] Privileged Guest (domain 0)　（DomainUなので、これは選ばない）
　Xen version compatibility (3.0.2 and later)  --->
　　(X) 3.1.0 and later
]]></description>
         <link>http://www.xen-fedora.com/2009/06/domainu_4.html</link>
         <guid>http://www.xen-fedora.com/2009/06/domainu_4.html</guid>
         <category>024xen3.4のDomainUカーネル</category>
         <pubDate>Tue, 30 Jun 2009 12:54:47 +0900</pubDate>
      </item>
            <item>
         <title>grubの設定</title>
         <description>grubの設定を行います。

# vi /boot/grub/menu.lst

title CentOS (xen3.4.0-2.6.18.8)
        root (hd0,0)
        kernel /xen-3.4.gz dom0_mem=256M
        module /vmlinuz-2.6.18.8-xen0 ro root=/dev/sda3 ro console=tty0
        module /initrd-2.6.18.8-xen0.img
</description>
         <link>http://www.xen-fedora.com/2009/06/grub_1.html</link>
         <guid>http://www.xen-fedora.com/2009/06/grub_1.html</guid>
         <category>022xen3.4のDomain0カーネル</category>
         <pubDate>Tue, 30 Jun 2009 11:04:48 +0900</pubDate>
      </item>
            <item>
         <title>xen3.4.0のオリジナルDomain0カーネルのインストール</title>
         <description>以下の手順にてdomain0カーネルをインストールします。

# make XEN_TARGET_X86_PAE=y -j3 linux-2.6-xen0-build

# make linux-2.6-xen0-install

# depmod 2.6.18.8-xen0

# mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod /boot/initrd-2.6.18.8-xen0.img 2.6.18.8-xen

以上でインストールは終了ですが、

# cd /lib/modules で
モジュールがインストールされているかを確認すると良いでしょう。</description>
         <link>http://www.xen-fedora.com/2009/06/xen340domain0.html</link>
         <guid>http://www.xen-fedora.com/2009/06/xen340domain0.html</guid>
         <category>022xen3.4のDomain0カーネル</category>
         <pubDate>Tue, 30 Jun 2009 10:46:59 +0900</pubDate>
      </item>
            <item>
         <title>オリジナルのDomain0カーネル設定（２）</title>
         <description><![CDATA[カーネル構築の設定を行います。
先ほど新機能については設定を行っていますので、
その他の設定です。

今回、実験的にSIPとH.323も設定してみました。

<strong>Processor type and features  ---></strong>　[*] Symmetric multi-processing support
　　Subarchitecture Type (Xen-compatible)  --->
　　　(X) Xen-compatible 
　Processor family (Pentium-Pro)  --->
　　　(X) Pentium M 
　[*] Generic x86 support
　(8) Maximum number of CPUs (2-255) 
　　8
　Preemption Model (No Forced Preemption (Server))  --->
　　(X) No Forced Preemption (Server) 
　High Memory Support (64GB)  --->
　　(X) 64GB

Power management options (ACPI, APM)  --->
　ACPI (Advanced Configuration and Power Interface) Support  --->
　[*] ACPI Support
　　 <*>   Processor
　CPU Frequency scaling  --->
　(これは選択出来ない）

Bus options (PCI, PCMCIA, EISA, MCA, ISA)  ---> 
　[*] PCI support
　　[*]   PCI Express support

Networking  --->
　[*] Networking support
　　Networking options  --->
　　　[*] Network packet filtering (replaces ipchains)  --->
　　　　IP: Netfilter Configuration  ---> 
　　　　　<M>   H.323 protocol support (EXPERIMENTAL) 
　　　　　<M>   SIP protocol support (EXPERIMENTAL)
　　　　Bridge: Netfilter Configuration  --->
　　　　　<M> Ethernet Bridge tables (ebtables) support

Device Drivers  --->
　Network device support  --->
　　<*> Dummy net driver support

File systems  --->
　[*] Quota support  
　　<*>   Old quota format support
　　<*>   Quota format v2 support 

XEN  --->
　[*] Privileged Guest (domain 0)
　Xen version compatibility (3.0.2 and later)  --->
　　(X) 3.1.0 and later
]]></description>
         <link>http://www.xen-fedora.com/2009/06/domain0_1.html</link>
         <guid>http://www.xen-fedora.com/2009/06/domain0_1.html</guid>
         <category>022xen3.4のDomain0カーネル</category>
         <pubDate>Tue, 30 Jun 2009 10:43:45 +0900</pubDate>
      </item>
            <item>
         <title>オリジナルのDomain0カーネル設定（１）</title>
         <description>カーネルの設定を行います。

# make XEN_TARGET_X86_PAE=y linux-2.6-xen0-config CONFIGMODE=menuconfig KERNELS=&quot;linux-2.6-xen0&quot;

新しくxen-3.4.0で取り入れられた機能の必要有無を最初に聞かれるようです。

PCI Device Reservation for Passthrough (PCI_GUESTDEV) [Y/n/?] (NEW) y
（PCIのポススルーのように思われます。イエスで）

PCI IOV support (PCI_IOV) [N/y/?] (NEW) y
（PCI-SIGが進めているPCI Expressデバイスの仮想化技術のようです。
よくわかりませんがイエスで）

Intel(R) 82575 Gigabit Ethernet support (IGB) [N/m/y/?] (NEW) y
（インテルのギガビットイーサネットはとりあえずイエスで）

Intel(R) PRO/1000 Gigabit Ethernet support (E1000E) [N/m/y/?] (NEW) y
（インテルのPCI-Expressのギガビットイーサネットもとりあえずイエスで） 

Intel(R) 10GbE PCI Express adapters support (IXGBE) [N/m/y/?] (NEW) n
（１０ギガビットのイーサネットまではいらない）

USB backend driver (XEN_USB_BACKEND) [M/n/y/?] (NEW) y
（USBのバックエンドドライバはイエスで）

USB frontend driver (XEN_USB_FRONTEND) [M/n/y/?] (NEW) y
（USBのフロントドライバーもイエスで）

Taking the HCD statistics (for debug) (XEN_USB_FRONTEND_HCD_STATS) [Y/n/?] (NEW) n
（デバッグ関係のようなのでいらない）

とりあえずはじめにこれらを設定しました。
</description>
         <link>http://www.xen-fedora.com/2009/06/domain0.html</link>
         <guid>http://www.xen-fedora.com/2009/06/domain0.html</guid>
         <category>022xen3.4のDomain0カーネル</category>
         <pubDate>Tue, 30 Jun 2009 10:10:44 +0900</pubDate>
      </item>
            <item>
         <title>make world とmake install　を行う</title>
         <description>細かな設定をする前に、
大きく作業を行います。

# make -j3 XEN_TARGET_X86_PAE=y world

# make install
</description>
         <link>http://www.xen-fedora.com/2009/06/make_world_make_install_1.html</link>
         <guid>http://www.xen-fedora.com/2009/06/make_world_make_install_1.html</guid>
         <category>022xen3.4のDomain0カーネル</category>
         <pubDate>Mon, 29 Jun 2009 08:47:03 +0900</pubDate>
      </item>
            <item>
         <title>mercurialによるカーネルソースの取得</title>
         <description>xen3.3.0のときのように、
念の為、カーネルソースを取得します。

# cd /usr/src/xen-3.4.0

# hg clone http://xenbits.xensource.com/linux-2.6.18-xen.hg

destination directory: linux-2.6.18-xen.hg
requesting all changes
adding changesets
adding manifests
adding file changes
added 914 changesets with 23565 changes to 20935 files
updating working directory
20912 files updated, 0 files merged, 0 files removed, 0 files unresolved</description>
         <link>http://www.xen-fedora.com/2009/06/mercurial_2.html</link>
         <guid>http://www.xen-fedora.com/2009/06/mercurial_2.html</guid>
         <category>022xen3.4のDomain0カーネル</category>
         <pubDate>Sun, 28 Jun 2009 08:39:14 +0900</pubDate>
      </item>
            <item>
         <title>mercurialの確認</title>
         <description><![CDATA[xen3.4.0では分かりませんが、
xen3.3.0ではmercurialが必要でした。

mercurialのソフトがインストールされているかどうか確認します。

# rpm -q mercurial

mercurial-1.2.1-1.el5.rf

mercurialはインストールされているようです。

もしmercurialがインストールされていない場合、<a href="http://www.xen-fedora.com/2008/12/xen330_1.html">こちら</a>を参照してください。]]></description>
         <link>http://www.xen-fedora.com/2009/06/mercurial_1.html</link>
         <guid>http://www.xen-fedora.com/2009/06/mercurial_1.html</guid>
         <category>022xen3.4のDomain0カーネル</category>
         <pubDate>Sat, 27 Jun 2009 08:33:40 +0900</pubDate>
      </item>
            <item>
         <title>コンパイルに必要なソフトを確認する</title>
         <description>xenをコンパイルするのに必要なソフトを確認します。

まずは解凍したxenのフォルダに移動します。

# cd xen-3.4.0

どんなファイルがあるか見てみます。

# ls

COPYING    Makefile  buildconfigs  docs    install.sh  tools               xen
Config.mk  README    config        extras  stubdom     unmodified_drivers

確認するツールはこのtools の中の　check にあります。

移動します。

# cd tools/check

xen3.4.0 のbuildに必要なソフトを確認します。

# ./chk build

Xen CHECK-BUILD  2009年 6月 30日 火曜日 08:28:30 JST
Checking check_crypto_lib: OK
Checking check_curl: unused, OK
Checking check_openssl_devel: OK
Checking check_python: OK
Checking check_python_devel: OK
Checking check_x11_devel: OK
Checking check_xgettext: OK
Checking check_xml2: unused, OK
Checking check_zlib_devel: OK
Checking check_zlib_lib: OK

必要なソフトはそろっているようです。

installに必要なソフトも確認します。

# ./chk install

Xen CHECK-INSTALL  2009年 6月 30日 火曜日 08:30:29 JST
Checking check_brctl: OK
Checking check_crypto_lib: OK
Checking check_curl: unused, OK
Checking check_iproute: OK
Checking check_python: OK
Checking check_python_xml: OK
Checking check_udev: OK
Checking check_xml2: unused, OK
Checking check_zlib_lib: OK

ソフトは全て問題ないようでした。</description>
         <link>http://www.xen-fedora.com/2009/06/post_74.html</link>
         <guid>http://www.xen-fedora.com/2009/06/post_74.html</guid>
         <category>022xen3.4のDomain0カーネル</category>
         <pubDate>Fri, 26 Jun 2009 08:24:33 +0900</pubDate>
      </item>
            <item>
         <title>TrixboxをXenで動かすための技術資料</title>
         <description><![CDATA[インターネットを検索していたら、
TrixboxをXenで動かす資料を発見しました。

英語ですが、とりあえずリンクを記載します。

<a href="http://engineertim.com/wp-content/uploads/2009/02/trixbox-xen.pdf">Running Trixbox on XEN</a>

そのうちに翻訳したいと思います。

]]></description>
         <link>http://www.xen-fedora.com/2009/06/trixboxxen.html</link>
         <guid>http://www.xen-fedora.com/2009/06/trixboxxen.html</guid>
         <category>010他サイト情報</category>
         <pubDate>Thu, 25 Jun 2009 21:36:07 +0900</pubDate>
      </item>
            <item>
         <title>xen3.4を入手する</title>
         <description>まずxen3.4を入手します。

Domain0のマシン上で行います。

ディレクトリの移動

# cd /usr/src

次にtarボールを取得します。

# wget http://bits.xensource.com/oss-xen/release/3.4.0/xen-3.4.0-xen.tar.gz

ダウンロードしたtarボールを解凍します。

# tar -zavf  xen-3.4.0-xen.tar.gz

次に必要ソフトの確認を行います。</description>
         <link>http://www.xen-fedora.com/2009/06/xen34.html</link>
         <guid>http://www.xen-fedora.com/2009/06/xen34.html</guid>
         <category>022xen3.4のDomain0カーネル</category>
         <pubDate>Thu, 25 Jun 2009 08:18:52 +0900</pubDate>
      </item>
            <item>
         <title>trixbox CE 2.8.0リリース</title>
         <description><![CDATA[2009年６月17日にtrixbox CE 2.8.0がリリースされました。

とりあえず最新情報として<a href="http://master.dl.sourceforge.net/sourceforge/asteriskathome/trixbox-2.8.0.iso">ダウンロード</a>先を書いておきます。

内容としては

Asterisk 1.6ベースです。

Asterisk 1.6 and DAHDI　：　古いバージョンから変更

setup-pstn script ：　DAHDI か zaptel　で使えるスクリプトを新しくした

CentOS kernel　：　最新のCentOSカーネル・新しいハードウェアへのインストールの容易性

FOP　：　非対応・時期バージョンで対応予定

oslec　：　非導入・将来的なリリースでは高い優先順位で開発中

HUDlite　：　非対応。なぜならHUDliteはAsterisk1.4で開発されています。
　　　　　　　　Trixbox2.8では動かない。

]]></description>
         <link>http://www.xen-fedora.com/2009/06/trixbox_ce_280.html</link>
         <guid>http://www.xen-fedora.com/2009/06/trixbox_ce_280.html</guid>
         <category>032trixbox 2.8の導入</category>
         <pubDate>Wed, 24 Jun 2009 21:26:38 +0900</pubDate>
      </item>
            <item>
         <title>TrixboxとAsterisk</title>
         <description>今までXenにTrixboxを導入して来ました。

ところで思ったのですが、
Trixboxを使う人は、基本的にあまりCUIでは操作したくない、
Asteriskを使う人は、CUIの操作が苦にならない。

と考えると、
XenでTrixboxを導入しているのは、「俺だけ？」とか思ってしまいました。

また、光ルーターのパッチを当てたり、
光ルーターの設定を行うと、
本来のTrixboxの動作が出来なくなる部分もあります。
更に、完全仮想化はスピードが遅い。

ということで、
どうせなら、
準仮想化で、Asteriskを導入しよう、
と考えたわけです。

これから、Xen環境でAsteriskを導入してゆこうと思います。</description>
         <link>http://www.xen-fedora.com/2009/01/trixboxasterisk.html</link>
         <guid>http://www.xen-fedora.com/2009/01/trixboxasterisk.html</guid>
         <category>015asterisk1.4の導入</category>
         <pubDate>Sat, 03 Jan 2009 21:26:32 +0900</pubDate>
      </item>
            <item>
         <title>２４．RT-200NE（PR-200NE)対応（６）sip.conf</title>
         <description><![CDATA[次に、sip.confの設定を行います。

<a href="http://www.xen-fedora.com/images/trixbox2.6-2-%282%29.png"><img alt="trixbox2.6-2-(2).png" src="http://www.xen-fedora.com/images/trixbox2.6-2-%282%29-thumb.png" width="450" height="349" /></a>
「PBX」の「Config File Editor」をクリックします。

先ほどと同じように、
以下のものをそっくり書き換えます。

本当は内線電話の設定は
Trixboxから行うのですが、
今回は面倒なので、ごっそり行っています。

内線電話は２０１－２０９まで設定してあります。
これも、voip.infoさんからのものに
一部修正を行っているものです。

[general]
maxexpirey=3600
defaultexpirey=3600
context=default
port=5060
bindaddr=0.0.0.0
srvlookup=yes
disallow=all
allow=ulaw
allow=alaw
allow=gsm
language=jp
localnet=192.168.0.0/255.255.0.0

;RT-200NE Sample
rt200ne=192.168.0.1（RT200NEのアドレスを記載します。）

;HIKARI-denwa register Sample
register => 4:pass:0010@hikari-denwa/201
（上の数字は書き換えてください）
4　　　　のところは、光ルーターで内線電話の割り当て番号です。
　　　　多分「４」くらいが良いと思います。
pass　　のところはパスワードです。
0010　のところは、trixboxの名前です。好きな数字にしてください。
201　　は着信等の内線電話です。

;G-LEX Sample
;register => GLEXNUM:PASSWORD@sip001.g-lex.net

[201]
type=friend
username=201
secret=password（設定してください）
canreinvite=no
host=dynamic
dtmfmode=rfc2833
callgroup=1
pickupgroup=1
mailbox=201

[202]
type=friend
username=202
secret=password（設定してください）
canreinvite=no
host=dynamic
dtmfmode=rfc2833
callgroup=1
pickupgroup=1
mailbox=202

[203]
type=friend
username=203
secret=password（設定してください）
canreinvite=no
host=dynamic
dtmfmode=rfc2833
callgroup=1
pickupgroup=1
mailbox=203

[204]
type=friend
username=204
secret=password（設定してください）
canreinvite=no
host=dynamic
dtmfmode=rfc2833
callgroup=1
pickupgroup=1
mailbox=204

[205]
type=friend
username=205
secret=password（設定してください）
canreinvite=no
host=dynamic
dtmfmode=rfc2833
callgroup=1
pickupgroup=1
mailbox=205

[206]
type=friend
username=206
secret=password（設定してください）
canreinvite=no
host=dynamic
dtmfmode=rfc2833
callgroup=1
pickupgroup=1
mailbox=206

[207]
type=friend
username=207
secret=password（設定してください）
canreinvite=no
host=dynamic
dtmfmode=rfc2833
callgroup=1
pickupgroup=1
mailbox=207

[208]
type=friend
username=208
secret=password（設定してください）
canreinvite=no
host=dynamic
dtmfmode=rfc2833
callgroup=1
pickupgroup=1
mailbox=208

[209]
type=friend
username=209
secret=password（設定してください）
canreinvite=no
host=dynamic
dtmfmode=rfc2833
callgroup=1
pickupgroup=1
mailbox=209

; Sample setting of HIKARI-denwa
[hikari-denwa]
type=friend
secret=pass（上で設定したパスワードです）
port=5060
username=0010（上で設定したtrixboxの名前です）
fromuser=4（上で設定した内線割り当て番号です）
host=192.168.0.1（RT-200NEのアドレス）
fromdomain=192.168.0.1（RT-200NEのアドレス）
context=default
insecure=invite
dtmfmode=inband
canreinvite=no
disallow=all
allow=ulaw
callgroup=1
picupgroup=1


;[sip001.g-lex.net]
;type=friend
;username=GLEXNUM
;fromuser=GLEXNUM
;fromdomain=sip001.g-lex.net
;secret=PASSWORD
;canreinvite=no
;context=glex-in
;insecure=invite
;host=sip001.g-lex.net
;nat=yes
;dtmfmode=inband
;disallow=all
;allow=ulaw

これで「Update」で設定ファイルの完了です。]]></description>
         <link>http://www.xen-fedora.com/2009/01/rt200nepr200nesipconf.html</link>
         <guid>http://www.xen-fedora.com/2009/01/rt200nepr200nesipconf.html</guid>
         <category>002完全仮想化</category>
         <pubDate>Fri, 02 Jan 2009 01:53:16 +0900</pubDate>
      </item>
      
   </channel>
</rss>
