The first week of the long vacation is not suitable, and you are still looking for the status... This week, we upgraded some old Xen servers (CentOS5.2 + Xen3.1) to CentOS6.5 + Xen4.2. record it by the way. Since RedHat abandoned Xen in RHEL6, it seems that the only way to install Xen on RHEL/CentOS6.x is to download the Xen Source Code. However, the open-source world will never lack enthusiastic volunteers, X
The first week of the long vacation is not suitable, and you are still looking for the status... This week, we upgraded some old Xen servers (CentOS 5.2 + Xen 3.1) to CentOS 6.5 + Xen 4.2.
Since RedHat abandoned Xen on RHEL 6, it seems that the only way to install Xen on RHEL/CentOS 6.x is to download the Xen Source Code. However, there will never be a lack of enthusiastic volunteers in the open source world. The Xen Made Easy project provides us with a third-party Xen software source available, saving us the trouble of compiling the source code by ourselves. Now we have a better official choice: Xen4CentOS6. xen4CentOS6 is an open-source project developed by the CentOS, Xen, Citrix, Godaddy, Rackspace community and relevant teams, the objective is to maintain a stable Xen toolchain (Xen hypervisor and related Xen tools) for CentOS 6.x, making it easier and more reliable for Xen to run on CentOS 6.
Install
Upgrade the entire system, restart it, and then add the official CentOS Xen Source (Xen4CentOS6) and install the Xen kernel and related tools. It should be noted that the system with minimal installation of CentOS-6.5-x86_64-minimal.iso does not include Perl, the Xen tool requires Perl support, so you need to install perl first:
# yum update# reboot# yum install centos-release-xen# yum update# yum install perl# yum install xen
After installing the Linux kernel supporting Xen, you need to add a new entry to grub. conf, so that the system can start the Linux kernel with Xen by default (rather than the conventional Linux kernel), this operation can be automatically completed through the grub-bootxen.sh, after the completion of the grub. check again in the conf file:
# /usr/bin/grub-bootxen.sh# vi /etc/grub.conf...title CentOS (3.10.25-11.el6.centos.alt.x86_64) root (hd0,0) kernel /xen.gz dom0_mem=1024M,max:1024M loglvl=all guest_loglvl=all module /vmlinuz-3.10.25-11.el6.centos.alt.x86_64 ro root=/dev/mapper/vg_node11-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg_node11/lv_swap KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rd_LVM_LV=vg_node11/lv_root rhgb quiet module /initramfs-3.10.25-11.el6.centos.alt.x86_64.img...
After the system is restarted, the Xen kernel should be entered by default. you can use uname-r and xm info to check whether the installation is successful:
# reboot# uname -r3.10.25-11.el6.centos.alt.x86_64# xm infohost : xen01.vpsee.comrelease : 3.10.25-11.el6.centos.alt.x86_64version : #1 SMP Fri Dec 27 21:44:15 UTC 2013machine : x86_64nr_cpus : 8nr_nodes : 1cores_per_socket : 4threads_per_core : 1cpu_mhz : 2393hw_caps : 1febfbff:28100800:00000000:00003f40:80982201:00000000:00000001:00000000virt_caps :total_memory : 8191free_memory : 7073free_cpus : 0xen_major : 4xen_minor : 2xen_extra : .3-26.el6xen_caps : xen-3.0-x86_64 xen-3.0-x86_32pxen_scheduler : creditxen_pagesize : 4096platform_params : virt_start=0xffff800000000000xen_changeset : unavailablexen_commandline : dom0_mem=1024M,max:1024M loglvl=all guest_loglvl=allcc_compiler : gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)cc_compile_by : mockbuildcc_compile_domain : centos.orgcc_compile_date : Tue Dec 10 20:32:58 UTC 2013xend_config_format : 4
Successful!