CentOS4.4ã¨XEN 3.0.4
- æåã«ãã£ã¨ããã¨
ã¨ããããå¿
è¦ãããªãã®ãå
¥ãã
TLSãç¡å¹ã«ãã(32bitã«ã¼ãã«ã®å ´åã¯lib64ã¯ç¡ãã®ã§æ³¨æ)
ããããã¦ãã¦ãããããªããxendãèµ·åããã¨libcrypto.so.0.9.7ãç¡ãã¨èµ·ããããã®ã§ä½ã£ã¦ãã
yum install bridge-utils libxml2-devel SDL SDL-devel
mv /lib/tls /lib/tls.disabled
mv /lib64/tls /lib64/tls.disabled
(cd /lib64;ln -s libcrypto.so.0.9.7a libcrypto.so.0.9.7)
- xenãã¤ã³ã¹ãã¼ã«
コンパイル済みカーネルãåå¾ããã
installããã
xenç¨ã®initrdãä½æããã
tar zxvf xen-3.0.4_1-install-x86_64.tar.gz
cd dist
./install.sh
depmod -a 2.6.16.33-xen
mkinitrd -v -f /boot/initrd-2.6-xen.img 2.6.16.33-xen
- /boot/grub/menu.lstã®ç·¨é
domain0ã®ã¡ã¢ãªã¯384M以ä¸ãããããã
(HVMã使ãå ´åãXä¸ã§SDLã使ã£ããVNCã使ã£ããããã®ã§384Mã ã¨è¶³ããªããã)
title CentOS-4 / Xen-3 / XenLinux 2.6
root (hd0,0)
kernel /boot/xen-3.0.gz dom0_mem=393216 console=vga
module /boot/vmlinuz-2.6-xen ro root=LABEL=/ console=tty0
module /boot/initrd-2.6-xen.img
- xenã®è¨å®
æ¨æºã ã¨eth0ã®ããªãã¸ããä½ã£ã¦ãããªãã®ã§ã¹ã¯ãªãããä¿®æ£ããã
mv /etc/xen/scripts/network-bridge /etc/xen/scripts/network-bridge.xen
cat > /etc/xen/scripts/network-bridge
#
chmod 755 /etc/xen/scripts/network-bridge
- network-bridgeã®å 容
#!/bin/sh
set -e
OP=$1
shiftscript=/etc/xen/scripts/network-bridge.xen
case ${OP} in
start)
$script start vifnum=0 bridge=xenbr0 netdev=eth0
$script start vifnum=1 bridge=xenbr1 netdev=eth1
;;stop)
$script stop vifnum=0 bridge=xenbr0 netdev=eth0
$script stop vifnum=1 bridge=xenbr1 netdev=eth1
;;status)
$script status vifnum=0 bridge=xenbr0 netdev=eth0
$script status vifnum=1 bridge=xenbr1 netdev=eth1
;;*)
echo 'Unknown command: ' ${OP}
echo 'Valid commands are: start,stop,status'
exit 1
esac
- èªåèµ·åããããã«è¨å®ãã¦ãã
chkconfig xend on
chkconfig xdomains on
#åèµ·åãã¦xenã®åä½ç¢ºèªãããã