只是编译安装Xen,不包含内核内容。
在准备好Xen的内核后修改grub.conf在 root (hd0,0) 下面加上一行 kernel /xen-4.1.3.gz dom0_mem=1024M
然后将kernel /vmlinuz和initrd /initramfs两行的kernel initrd 改成module
12345678910111213141516171819 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-develhmaccalc 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-develglibc-devel.i686 texinfo libuuid-devel iasl python-lxml uuid-devel bridge-utilsopenssl openssl-devel ncurses ncurses-* python-develmake gcc screen vim wget tcpdump ntp ntpdate man smartmontools links lynx ethtool xorg-x11-xauthwget -c http://bits.xensource.com/oss-xen/release/4.1.3/xen-4.1.3.tar.gztar zxf xen-4.1.3.tar.gzcd xen-4.1.3make worldmake installsed -i 's/#(network-script network-route)/(network-script network-route)/g' /etc/xen/xend-config.sxpsed -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
原创文章,作者:蓝洛水深,如若转载,请注明出处:https://blog.lanluo.cn/1099