自宅サーバー構築メモ The last update of this page 2007/01/02
インストール
【事前準備】
Fedora Core 6 をインストールしておくこと
yumの設定は済ましておくこと

Xenインストール
yum install xen xen-libs kernel-xen
設定
SELINUXの無効化
vi /etc/selinux/config
変更するエントリの内容
SELINUX=disabled

grub.confのデフォルトOSをxenにする
vi /etc/grub.conf
変更する内容
default=0

ログファイルの肥大化対策
echo 'hwcap 0 nosegneg' > /etc/ld.so.conf.d/libc6-xen.conf

GUIは必要ない場合、以下の設定
vi /etc/inittab
変更するエントリの内容(コメントアウト)
#x:5:once:/etc/X11/prefdm -nodaemon

システムを再起動
reboot

再起動後、以下のコマンドを実行し、制御デーモンが動作していることを確認
xm list

ドメインUの構築
対話形式スクリプトの実行
xenguest-install
実行例
What is the name of your virtual machine? vm1
How much RAM should be allocated (in megabytes)? 256
What would you like to use as the disk (path)? /var/xen/vm1.img
How large would you like the disk to be (in gigabytes)? 10
Would you like to enable graphics support? (yes or no) no
What is the install location? ftp://ftp.riken.jp/Linux/fedora/core/6/i386/os/

ゲストOSをマシン起動時に自動起動させる
cp /etc/xen/vm1 /etc/xen/auto

ゲストOSの起動
xm create -c vm1

各種設定
chmod 000 /sbin/hwclock
chkconfig acpid off
chkconfig apmd off