仮想環境としてXenを選択。
VMServerと悩んだけどやったことのないXenにしてみた。
[root@localhost ~]# yum install -y xen [root@localhost ~]# yum install -y kernel-xen
これでインストールは終了
続いてデフォルトカーネルの設定
[root@localhost ~]# vi /etc/grub.conf # grub.conf generated by anaconda 〜〜略〜〜 #boot=/dev/sda default=1 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz #hiddenmenu title Momonga Linux (2.6.20-4m.mo4xen) root (hd0,0) kernel /xen.gz-2.6.20-4m.mo4 module /vmlinuz-2.6.20-4m.mo4xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet module /initrd-2.6.20-4m.mo4xen.img title Momonga Linux (2.6.23-31m.mo4) root (hd0,0) kernel /vmlinuz-2.6.23-31m.mo4 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.23-31m.mo4.img title Momonga (2.6.21-28m.mo4)
title Momonga Linux (2.6.20-4m.mo4xen)を選択するので
default=0
に変更
自動起動に追加して再起動
[root@localhost ~]# chkconfig xend on [root@localhost ~]# chkconfig --list xend xend 0:off 1:off 2:on 3:on 4:on 5:on 6:off [root@localhost ~]# chkconfig xendomains on [root@localhost ~]# chkconfig --list xendomains xendomains 0:off 1:off 2:on 3:on 4:on 5:on 6:off [root@localhost ~]# reboot
再起動後カーネルと動作を確認
[root@localhost ~]# uname -r 2.6.20-4m.mo4xen [root@localhost ~]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 2380 2 r----- 42.2
とりあえずこれでインストールと基本設定が終了。