Centos6编译安装Xen

只是编译安装Xen,不包含内核内容。
在准备好Xen的内核后修改grub.conf在 root (hd0,0) 下面加上一行        kernel /xen-4.1.3.gz dom0_mem=1024M
然后将kernel /vmlinuz和initrd /initramfs两行的kernel initrd 改成module  

yum groupinstall -y "Development tools" "Additional Development" "Debugging Tools" "System administration tools" "Compatibility libraries" "Console internet tools"
yum install -y transfig wget texi2html libaio-devel dev86 glibc-devel e2fsprogs-devel gitk xz-devel bzip2-devel pciutils-libs pciutils-devel SDL-devel libX11-devel gtk2-devel bridge-utils PyXML qemu-img mercurial texinfo libuuid-devel \
hmaccalc ncurses-devel zlib-devel openssl-devel python-devel bridge-utils  libtool-ltdl xorg-x11-drv-evdev xorg-x11-drv-fbdev xorg-x11-drv-i810-devel xorg-x11-drv-via-devel xorg-x11-proto-devel xorg-x11-server-sdk xorg-x11-xtrans-devel yajl-devel \
glibc-devel texinfo libuuid-devel iasl python-lxml uuid-devel bridge-utils \
openssl openssl-devel ncurses ncurses-* python-devel \
make gcc screen vim wget tcpdump ntp ntpdate man smartmontools links lynx ethtool xorg-x11-xauth 
wget -c http://bits.xensource.com/oss-xen/release/4.1.3/xen-4.1.3.tar.gz
tar zxf xen-4.1.3.tar.gz
cd xen-4.1.3
make world
make install
if [ `uname -i` == x86_64 ];then ln -s /usr/lib/xen/bin/qemu-dm /usr/lib64/xen/bin/; fi
sed -i 's/#(network-script network-route)/(network-script network-route)/g' /etc/xen/xend-config.sxp
sed -i 's/#(vif-script vif-route)/(vif-script vif-route)/g' /etc/xen/xend-config.sxp
/sbin/chkconfig --add xend 
/sbin/chkconfig --add xencommons 
/sbin/chkconfig --add xendomains 
/sbin/chkconfig --level 35 xend on 
/sbin/chkconfig --level 35 xendomains on 
/sbin/chkconfig --level 35 xencommons on 

添加新评论 »