Domain-UへCentOSをインストール

rinseを使って、Domain-UへCentOSをインストール。

rinse : RPM installation environment
This is a tool for bootstrapping a basic RPM-based distribution of GNU/Linux.
It is comparable in purpose to the standard Debian debootstrap utility, but works upon RPM-based distributions instead.
Rinse can setup 32 and 64-bit installations of:

HomePage: http://xen-tools.org/software/rinse

rinseのインストール。

$ sudo aptitude install rinse

設定ファイルの作成。

##
# /etc/xen-tools/xen-tools.conf
##
#
# This is the global configuration file for the scripts included
# within the xen-tools package.
#
# For more details please see:
#
# http://xen-tools.org/
#
##
##

dir = /home/xen
install-method = rinse
size = 10Gb # Disk image size.
memory = 512Mb # Memory size
swap = 512Mb # Swap size
fs = ext3 # use the EXT3 filesystem for the disk image.
dist = centos-5 # Default distribution to install.
image = sparse # Specify sparse vs. full disk images.
dhcp = 1
kernel = /boot/vmlinuz-`uname -r`
initrd = /boot/initrd.img-`uname -r`
arch=amd64
mirror = http://ftp.jp.debian.org/debian/

rinseの設定。
リポジトリサーバの変更とインストールパッケージの追加。

$ diff /etc/rinse/rinse.conf.org /etc/rinse/rinse.conf
19,20c19,20
< mirror       = http://mirror.bytemark.co.uk/centos/5/os/i386/CentOS/
< mirror.amd64 = http://mirror.bytemark.co.uk/centos/5/os/x86_64/CentOS/
---
> mirror       = http://ftp.riken.jp/pub/Linux/centos/5/os/i386/CentOS/
> mirror.amd64 = http://ftp.riken.jp/pub/Linux/centos/5/os/x86_64/CentOS/
$ diff /etc/rinse/centos-5.packages.org /etc/rinse/centos-5.packages
55a56,57
> nspr
> nss
63a66
> python-iniparse

Domain-Uの作成。

$ sudo xen-create-image --hostname vmcentos01 --passwd

コンソールの設定。

##
# /etc/xen/vmcentos01.cfg
# 以下の設定を追加
##
extra = 'xencons=tty'

Domain-Uの起動。

$ sudo xm create -c vmcentos01.cfg


http://xen-tools.org/software/rinse/
CentOS Project