One, through the official CentOS solution (Https://wiki.centos.org/HowTos/Xen/Xen4QuickStart)
1. See if the host supports PV (semi-virtualized) or HVM (full virtualization)
# Cat/proc/cpuinfo | Egrep-o ' (PAE|VMX|SVM) '
PS: If you see PAE in the output, then the CPU supports para-virtualization, if the output has both PAE and VMX/SVM (note: VMX is INTEL,SVM for AMD), then CPU support is fully virtualized
2. connect the Xen4centos database to your machine so that it can be installed easily
# yum Install Centos-release-xen
PS: If the installation has the following error, you can try to resolve
# yum Remove redhat-release-server-6server-6.5.0.1.el6.x86_64
# yum Install Centos-release-xen
650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M02/7A/CB/wKiom1a4WOOT9b_NAAH1EX66HmM838.png "title=" image 001. PNG "alt=" Wkiom1a4woot9b_naah1ex66hmm838.png "/>
3, you have now added the Xen4centos repository to the Yum source, then install Xen
# yum Install Xen
4. Execute the/usr/bin/grub-bootxen.sh script to complete the update grub.conf operation
# bash/usr/bin/grub-bootxen.sh
5. View Grub.conf File contents
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M01/7A/CB/wKioL1a4b56Bj76WAAGtUTWltCc638.png "title=" image 002. PNG "alt=" Wkiol1a4b56bj76waagtutwltcc638.png "/>
6, restart the system
# reboot
7. Review the kernel version of the virtual machine after rebooting the system, and view information about Xen
# Uname-r
# XL Info or (XM Info XM command needs to rely on xend service, xen4.4 Previous version support XM, later version only XL)
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7A/CB/wKiom1a4dVOgdhI9AACKOmdmcQw316.png "title=" Qq20160208185909.png "alt=" Wkiom1a4dvogdhi9aackomdmcqw316.png "/>
Second, the official solution via Xen Made Easy (http://xen.crc.id.au/support/guides/install/)
1, install a third-party Xen Yum Source
# yum Install http://au1.mirror.crc.id.au/repo/kernel-xen-release-6-5.noarch.rpm
2. Installing the Bridge tool
# yum-y Install Bridge-utils
3, install Xen
# yum Install Xen45
4. Verify that the installation is successful
# ls-l/boot/xen.gz
5. Install the Xen kernel
# yum Install Kernel-xen
6, restart
# reboot
7. Review the kernel version of the virtual machine after rebooting the system, and view information about Xen
# Uname-r
# XL Info or (XM Info XM command needs to rely on xend service, xen4.4 Previous version support XM, later version only XL)
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/7A/CC/wKiom1a4jnjCjDb-AAA8UxbaxVk041.png "title=" image 003. PNG "alt=" Wkiom1a4jnjcjdb-aaa8uxbaxvk041.png "/>
This article is from "Luo Chen's blog" blog, please be sure to keep this source http://luochen2015.blog.51cto.com/9772274/1741411
Two ways to install Xen on Centos6.5