Implementation of Xen para-virtualization on CentOS6.5

Source: Internet
Author: User

One: Installation environment

CentOS6.5 kernel version: 2.6.32-431.el6.x86_64 vmware-workstation


II: Installation and use of Xen

[[email protected] ~]# cat/proc/cpuinfo |grep flagflags:fpu vme de PSE TSC MSR PAE MCE cx8 APIC Sep MTRR PGE MCA Cmov PA T pse36 clflush DTS ACPI MMX FXSR SSE SSE2 SS Syscall NX rdtscp LM constant_tsc up Arch_perfmon pebs BTS xtopology Tsc_rel Iable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm arat EPB Xsa Veopt PLN pts DTS

The presence of ' PAE ' indicates that the CPU supports para-virtualization.

[[Email protected] ~] #yum install Centos-release-xen[[email protected] ~] #yum Update [[email protected] ~] #yum Install Xen -Y (modified/etc/grub.conf) [[email protected] ~] #yum install Libvirt Virt-manager (Libvirt is a service)

Grub information has been modified since the installation of Xen (xen4.4.2 automatically modifies grub information without manual modification)

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/A9/wKiom1WCEwuSNmf9AAQl3Dv7Fx4585.jpg "title=" Grub.png "alt=" Wkiom1wcewusnmf9aaql3dv7fx4585.jpg "/>

Since DOM0 can only run on a later version of 2.6.37, installing Xen automatically installs the kernel version of 3.10.68. Kernel is using Xen and our newly installed kernel is running as a module.

After you install the reboot, you will see that the system is booting up the Xen kernel.

[Email protected] xen]# cat/proc/xen/capabilities

Control_d

The presence of Control_d indicates that our Xen is ready to use.

Three: Install Domu

Install Xen Domu, we can use three ways to install, nfs,ftp,http, here use NFS mode installation;

The CentOS6.5 system disk is now attached to the system:

[[Email protected] ~] #mount/dev/cdrom/media/cdrom[[email protected] ~] #mkdir/mnt/centos/[[email protected] ~] #cp-r/M edia/cdrom/*/mnt/centos/[[email protected] ~] #chmod 777/mnt/centos/.treeinfo[[email protected] ~] #vim/mnt/centos/.  Treeinfo is as follows: [general]family = Centostimestamp = 1385726532.68variant = Totaldiscs = 1version = 6.5discnum = 1packagedir =                  Arch = X86_64[IMAGES-X86_64]INITRD = Images/pxeboot/initrd.img[images-xen]kernel = Images/pxeboot/vmlinuz Add this line initrd = Images/pxeboot/initrd.img[stage2]mainimage = images/install.img

Install the NFS service and mount it

[[Email protected] ~] #yum Install Nfs-utils-y (3.10.68 start NFS directly using service NFS start) [[email protected] ~] #echo '/mnt/cen tos/* (RO) ' >>/etc/exports[[email protected] ~]service NFS Start[[email protected] centos]# showmount-e Localhostexport List for Localhost:/mnt/centos *

The above indicates that the NFS installation was successful.

Install domu named Dom2:

[[email protected] ~]# virt-install -n dom2 -r 512 --vcpus=1 -- prompt --disk path=/dev/sdb --nographics   -l nfs:10.43.2.11:/mnt/centos/    we install the Dom2 on another hard drive/dev/sdb. 1. starting install ... retrieving file .treeinfo...                                                                                                                                |  616 b     00:00  ... Retrieving file vmlinuz...                                                                                                                                  | 7.9 MB     00:00 ...  Retrieving file initrd.img...                                                                                                                              |  64 MB      00:08 ... Creating domain...                                                                                                                                          |    0 B      00:03     Connected to domain Dom2Escape  Character is ^]initializing cgroup subsys cpuset ..... greetings.anaconda installer init version 13.21.215 startingmounting /proc  filesystem... donewelcome to centos for x86_64                     ┌────────┤ Choose a Language ├────────┐                     │                                       │                      │ What language would you like to use │                     │ during  the installation process?    │                     │                                       │                     │       catalan                ↑        │                     │      chinese (Simplified)             │                     │       Chinese (Traditional)          │                     │       croatian                       │                     │      Czech                           │                     │      Danish                         │                     │       Dutch                          │                     │       English                 ↓       │                     │                                       │                     │                ┌────┐                 │                     │                │ OK │                 │                     │                └────┘                   appear above information install normal installation operating system go down.

Bridge Configuration Management Tool installation: (This action is required to minimize the installation of centos6.x)

Yum Install-y bridge-utils

Start Xend and Libvirt and let it boot from

Service xend start service libvirt start chkconfig xend onchkconfig libvirt on

The Dom2 in our Xen is now installed.

This article describes the installation of Xen and Domu, and we'll cover the network configuration in Xen in the next chapter.

This article is from the Linux OPS blog, so be sure to keep this source http://germanygu.blog.51cto.com/3574209/1662988

Implementation of Xen para-virtualization on CentOS6.5

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.