Xen の Debian ホストに CentOS ゲストをインストール
ふつうに xen-create-image したら、エラーでた。
General Information -------------------- Hostname : sheryl Distribution : centos-5 Partitions : swap 512Mb (swap) / 16Gb (ext3) Image type : sparse Memory size : 512Mb Kernel path : /boot/vmlinuz-2.6.26-2-xen-686 Initrd path : /boot/initrd.img-2.6.26-2-xen-686 ... Copying files from host to image. Copying files from /var/cache/apt/archives -> /tmp/FFm9Clfut8/var/cache/apt/archives Done Done E: No such script: /usr/share/debootstrap/scripts/centos-5 Copying files from new installation to host. Copying files from /tmp/FFm9Clfut8/var/cache/apt/archives -> /var/cache/apt/archives Done Done The installation of the new system has failed. The system is missing the common file: /bin/ls Done System installation failed. Aborting
install method が debootstrap (デフォルト) だと、だめなので、rinseを指定する。
% sudo xen-create-image --ip xx.xx.xx.xx --hostname sheryl --dist centos-5 --install-method rinse
インストールできた、が、なにかエラーが発生していて起動できない。
なんか以下のようなエラーがでてた。yumが必要としているライブラリが欠けているらしい。
% sudo cat /var/log/xen-tools/sheryl.log ... There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: libnss3.so: cannot open shared object file: No such file or directory
/etc/rinse/centos-5.packages に以下を追記して、xen-create-image やりなおし。
nss nspr python-iniparse
で、起動もできた。