Installation of xen virtualization environment in xen virtualization series (I)

Source: Internet
Author: User

Xen supports RHEL, CentOS, and OEL5.X. RHEL6.X is not supported by default, but you can also install it by installing the xen source. This article uses OEL5.8 x64 for Environment configuration. In the future, we will publish a series of articles on xen configuration in plain text. Here we will not discuss the concepts of semi-virtualization and full virtualization. We will only talk about the actual situation and make a summary of xen learning.

 

List of articles on xen virtualization practice series

Installation of xen virtualization environment in xen virtualization series (I)
Xen Virtual Machine installation in xen virtualization series (II)
Xen virtualization series (III): xen Virtual Machine Replication
Xen virtualization practice series (4): xen Virtual Machine Disk Space Expansion Method
Xen virtualization practice series (V): How to expand disk space for xen virtual machines
Xen virtualization practice series (6): xen Virtual Machine password cracking

Xen Virtual Machine VNC access configuration

Xen virtualization series (8) self-starting xen VM Configuration
Xen virtualization series (9): xen Virtual Machine Time Configuration
Xen virtualization practice series (10) Dual Nic configuration for xen virtual machines

Xen Virtual Machine Disk File Mounting in xen virtualization series (11)

Xen virtualization practice series (12): online migration of high availability of xen virtual machines

Xen virtualization practice series (13)-centralized management of xen virtual machines-convirt

 

1. Operating System Installation

OEL5.8 X64 is used for installation. The GUI, Development Kit, development library, and old software development kit are selected during installation.

OEL Daquan: http://koumm.blog.51cto.com/703525/1283801

# Uname-
Linux oradb 2.6.18-308. el5 #1 SMP Sat Feb 25 12:40:07 EST 2012 x86_64 x86_64 x86_64 GNU/Linux

 

2. Configure the yum Source

Note: Installing the source is the easiest.

# Cd/etc/yum. repos. d
# Wget http://public-yum.oracle.com/public-yum-el5.repo
# Vi public-yum-el5.repo

# Change the corresponding enable to 1, as shown in

650) this. width = 650; "style =" border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px "title =" 1 "border =" 0 "alt =" 1 "src =" http://www.bkjia.com/uploads/allimg/131227/1A20KU4-0.jpg "height =" 93 "/>

Oracle Enterprise linux (OEL) official yum source configuration
Http://koumm.blog.51cto.com/703525/1283867

 

3. Install xen in yum

# Yum install kernel-xen-libs xen virt-viewer

Loaded plugins: rhnplugin, securityThis system is not registered with ULN.ULN support will be disabled.el5_latest                                                                                              | 1.4 kB     00:00el5_latest/primary                                                                                      |  16 MB     01:20el5_latest                                                                                                         11750/11750ol5_UEK_base                                                                                            | 1.2 kB     00:00ol5_UEK_base/primary                                                                                    | 685 kB     00:03ol5_UEK_base                                                                                                             28/28Setting up Install ProcessResolving Dependencies--> Running transaction check---> Package kernel-xen.x86_64 0:2.6.18-348.16.1.0.1.el5 set to be installed---> Package virt-viewer.x86_64 0:0.0.2-3.el5 set to be updated--> Processing Dependency: libvirt.so.0(LIBVIRT_0.0.3)(64bit) for package: virt-viewer--> Processing Dependency: libvirt.so.0(LIBVIRT_0.0.5)(64bit) for package: virt-viewer--> Processing Dependency: libgtk-vnc-1.0.so.0()(64bit) for package: virt-viewer--> Processing Dependency: libvirt.so.0()(64bit) for package: virt-viewer---> Package xen.x86_64 0:3.0.3-142.el5_9.3 set to be updated--> Processing Dependency: python-virtinst for package: xen--> Processing Dependency: bridge-utils for package: xen--> Processing Dependency: libSDL-1.2.so.0()(64bit) for package: xen---> Package xen-libs.i386 0:3.0.3-142.el5_9.3 set to be updated--> Processing Dependency: libext4fs.so.2 for package: xen-libs--> Processing Dependency: liblzma.so.0 for package: xen-libs---> Package xen-libs.x86_64 0:3.0.3-142.el5_9.3 set to be updated--> Processing Dependency: libext4fs.so.2()(64bit) for package: xen-libs--> Running transaction check---> Package SDL.x86_64 0:1.2.10-9.el5 set to be updated---> Package bridge-utils.x86_64 0:1.1-3.el5 set to be updated---> Package e4fsprogs-libs.i386 0:1.41.12-3.el5 set to be updated---> Package e4fsprogs-libs.x86_64 0:1.41.12-3.el5 set to be updated---> Package gtk-vnc.x86_64 0:0.3.8-3.el5 set to be updated---> Package libvirt.x86_64 0:0.8.2-29.0.1.el5_9.1 set to be updated--> Processing Dependency: cyrus-sasl-md5 for package: libvirt--> Processing Dependency: ebtables for package: libvirt---> Package python-virtinst.noarch 0:0.400.3-13.0.1.el5 set to be updated--> Processing Dependency: libvirt-python >= 0.2.1 for package: python-virtinst---> Package xz-libs.i386 0:4.999.9-0.3.beta.20091007git.el5 set to be updated--> Running transaction check---> Package cyrus-sasl-md5.x86_64 0:2.1.22-7.el5_8.1 set to be updated--> Processing Dependency: cyrus-sasl-lib = 2.1.22-7.el5_8.1 for package: cyrus-sasl-md5---> Package ebtables.x86_64 0:2.0.9-5.el5 set to be updated---> Package libvirt-python.x86_64 0:0.8.2-29.0.1.el5_9.1 set to be updated--> Running transaction check--> Processing Dependency: cyrus-sasl-lib = 2.1.22-5.el5_4.3 for package: cyrus-sasl--> Processing Dependency: cyrus-sasl-lib = 2.1.22-5.el5_4.3 for package: cyrus-sasl-devel--> Processing Dependency: cyrus-sasl-lib = 2.1.22-5.el5_4.3 for package: cyrus-sasl-devel--> Processing Dependency: cyrus-sasl-lib = 2.1.22-5.el5_4.3 for package: cyrus-sasl-plain--> Processing Dependency: cyrus-sasl-lib = 2.1.22-5.el5_4.3 for package: cyrus-sasl-plain---> Package cyrus-sasl-lib.i386 0:2.1.22-7.el5_8.1 set to be updated---> Package cyrus-sasl-lib.x86_64 0:2.1.22-7.el5_8.1 set to be updated--> Running transaction check---> Package cyrus-sasl.x86_64 0:2.1.22-7.el5_8.1 set to be updated---> Package cyrus-sasl-devel.i386 0:2.1.22-7.el5_8.1 set to be updated---> Package cyrus-sasl-devel.x86_64 0:2.1.22-7.el5_8.1 set to be updated---> Package cyrus-sasl-plain.i386 0:2.1.22-7.el5_8.1 set to be updated---> Package cyrus-sasl-plain.x86_64 0:2.1.22-7.el5_8.1 set to be updated--> Finished Dependency ResolutionDependencies Resolved===============================================================================================================================Package                       Arch                Version                                       Repository               Size===============================================================================================================================Installing:kernel-xen                    x86_64              2.6.18-348.16.1.0.1.el5                       el5_latest               23 Mvirt-viewer                   x86_64              0.0.2-3.el5                                   el5_latest               25 kxen                           x86_64              3.0.3-142.el5_9.3                             el5_latest              1.9 Mxen-libs                      i386                3.0.3-142.el5_9.3                             el5_latest              177 kxen-libs                      x86_64              3.0.3-142.el5_9.3                             el5_latest              175 kInstalling for dependencies:SDL                           x86_64              1.2.10-9.el5                                  el5_latest              213 kbridge-utils                  x86_64              1.1-3.el5                                     el5_latest               30 kcyrus-sasl-md5                x86_64              2.1.22-7.el5_8.1                              el5_latest               47 ke4fsprogs-libs                i386                1.41.12-3.el5                                 el5_latest              108 ke4fsprogs-libs                x86_64              1.41.12-3.el5                                 el5_latest              105 kebtables                      x86_64              2.0.9-5.el5                                   el5_latest              104 kgtk-vnc                       x86_64              0.3.8-3.el5                                   el5_latest               80 klibvirt                       x86_64              0.8.2-29.0.1.el5_9.1                          el5_latest              3.2 Mlibvirt-python                x86_64              0.8.2-29.0.1.el5_9.1                          el5_latest              239 kpython-virtinst               noarch              0.400.3-13.0.1.el5                            el5_latest              384 kxz-libs                       i386                4.999.9-0.3.beta.20091007git.el5              el5_latest              100 kUpdating for dependencies:cyrus-sasl                    x86_64              2.1.22-7.el5_8.1                              el5_latest              1.2 Mcyrus-sasl-devel              i386                2.1.22-7.el5_8.1                              el5_latest              1.4 Mcyrus-sasl-devel              x86_64              2.1.22-7.el5_8.1                              el5_latest              1.4 Mcyrus-sasl-lib                i386                2.1.22-7.el5_8.1                              el5_latest              126 kcyrus-sasl-lib                x86_64              2.1.22-7.el5_8.1                              el5_latest              130 kcyrus-sasl-plain              i386                2.1.22-7.el5_8.1                              el5_latest               27 kcyrus-sasl-plain              x86_64              2.1.22-7.el5_8.1                              el5_latest               27 kTransaction Summary===============================================================================================================================Install      16 Package(s)Upgrade       7 Package(s)Total download size: 34 MIs this ok [y/N]:Running rpm_check_debugRunning Transaction TestFinished Transaction TestTransaction Test SucceededRunning TransactionUpdating       : cyrus-sasl-lib                                                                                         1/30Updating       : cyrus-sasl                                                                                             2/30Installing     : bridge-utils                                                                                           3/30Installing     : cyrus-sasl-md5                                                                                         4/30Updating       : cyrus-sasl-plain                                                                                       5/30Installing     : e4fsprogs-libs                                                                                         6/30Installing     : xen-libs                                                                                               7/30Installing     : gtk-vnc                                                                                                8/30Installing     : ebtables                                                                                               9/30Installing     : libvirt                                                                                               10/30Installing     : libvirt-python                                                                                        11/30Installing     : SDL                                                                                                   12/30Updating       : cyrus-sasl-lib                                                                                        13/30Installing     : xz-libs                                                                                               14/30Updating       : cyrus-sasl-plain                                                                                      15/30Installing     : e4fsprogs-libs                                                                                        16/30Installing     : python-virtinst                                                                                       17/30Installing     : kernel-xen                                                                                            18/30Installing     : xen                                                                                                   19/30Installing     : virt-viewer                                                                                           20/30Installing     : xen-libs                                                                                              21/30Updating       : cyrus-sasl-devel                                                                                      22/30Updating       : cyrus-sasl-devel                                                                                      23/30Cleanup        : cyrus-sasl-plain                                                                                      24/30Cleanup        : cyrus-sasl                                                                                            25/30Cleanup        : cyrus-sasl-lib                                                                                        26/30Cleanup        : cyrus-sasl-devel                                                                                      27/30Cleanup        : cyrus-sasl-devel                                                                                      28/30Cleanup        : cyrus-sasl-plain                                                                                      29/30Cleanup        : cyrus-sasl-lib                                                                                        30/30Installed:kernel-xen.x86_64 0:2.6.18-348.16.1.0.1.el5      virt-viewer.x86_64 0:0.0.2-3.el5         xen.x86_64 0:3.0.3-142.el5_9.3xen-libs.i386 0:3.0.3-142.el5_9.3                xen-libs.x86_64 0:3.0.3-142.el5_9.3Dependency Installed:SDL.x86_64 0:1.2.10-9.el5                                        bridge-utils.x86_64 0:1.1-3.el5cyrus-sasl-md5.x86_64 0:2.1.22-7.el5_8.1                         e4fsprogs-libs.i386 0:1.41.12-3.el5e4fsprogs-libs.x86_64 0:1.41.12-3.el5                            ebtables.x86_64 0:2.0.9-5.el5gtk-vnc.x86_64 0:0.3.8-3.el5                                     libvirt.x86_64 0:0.8.2-29.0.1.el5_9.1libvirt-python.x86_64 0:0.8.2-29.0.1.el5_9.1                     python-virtinst.noarch 0:0.400.3-13.0.1.el5xz-libs.i386 0:4.999.9-0.3.beta.20091007git.el5Dependency Updated:cyrus-sasl.x86_64 0:2.1.22-7.el5_8.1                            cyrus-sasl-devel.i386 0:2.1.22-7.el5_8.1cyrus-sasl-devel.x86_64 0:2.1.22-7.el5_8.1                      cyrus-sasl-lib.i386 0:2.1.22-7.el5_8.1cyrus-sasl-lib.x86_64 0:2.1.22-7.el5_8.1                        cyrus-sasl-plain.i386 0:2.1.22-7.el5_8.1cyrus-sasl-plain.x86_64 0:2.1.22-7.el5_8.1Complete!

 

4. Modify the boot list and use the kernel running xen to start the system.

# Vi/boot/grub. conf

650) this. width = 650; "style =" border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px "title =" 2 "border =" 0 "alt =" 2 "src =" http://www.bkjia.com/uploads/allimg/131227/1A20K529-1.jpg "height =" 225 "/>
Note: After yum is installed, the grub menu is automatically installed.

 

5. reboot automatically enters the kernel of the xen component.

# Reboot

 

6. view the xen startup status

By default, the xen service is automatically started upon startup.
[Root @ node1 ~] # Chkconfig -- list | grep xend
Xend 0: off 1: off 2: on 3: on 4: on 5: on 6: off
Xendomains 0: off 1: off 2: off 3: on 4: on 5: on 6: off

View the xen Kernel
[Root @ node1 ~] # Uname-
Linux node1 2.6.18-348.16.1.0.1.el5xen #1 SMP Tue Aug 20 13:57:31 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux

View xen status
[Root @ node1 ~] # Xm list
Name ID Mem (MiB) VCPUs State Time (s)
Domain-0 0 1744 1 r ----- 32.8

 

 

After the xen virtualization environment is configured, the virtual machine is installed.

This article is from the "koumm linux technology blog" blog, please be sure to keep this source http://koumm.blog.51cto.com/703525/1284516

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.