Xen3.3.0 source code Installation

Source: Internet
Author: User

Download the source code package xen 3.3.1 from the Internet.
[Root @ WHB yum. Repos. d] # mkdir/var/FTP/upload
[Root @ WHB yum. Repos. d] # cd/var/FTP/upload/
[Root @ WHB upload] # export http_proxy = 59.72.109.7: 56789
[Root @ WHB upload] # wget

Http://bits.xensource.com/oss-xen/release/3.3.1/xen-3.3.1.tar.gz

You can easily copy the link address in Firefox or chrom.
[Root @ WHB upload] # wget

Http://bits.xensource.com/oss-xen/release/3.3.0/linux-2.6.18-xen-3.3.0.tar.gz

View disk capacity with DF:
[Root @ WHB upload] # DF-H
Filesystem           SizeUsed avail use % mounted on
/Dev/mapper/VolGroup00-LogVol00
                      11g2.6 GB 7.5 GB 26%/
/Dev/sda1            99 m 12 m 82 m13%/boot
Tmpfs                189 m   0189 m 0%/dev/SHM
/Dev/HDC             3.7 GB3.7 GB    0 100%/Media/CDROM
[Root @ WHB upload] # cd/usr/local
[Root @ WHB local] # mkdir Xen-3.3.1
[Root @ WHB local] # D Xen-3.3.1/
Install it under the/usr/local/Xen-3.3.1.
[Root @ WHB Xen-3.3.1] # tar zxvf/var/FTP/upload/xen-3.3.1.tar.gz
[Root @ WHB Xen-3.3.1] # tar zxvf/var/FTP/upload/linux-2.6.18-xen-3.3.0.tar.gz
The main references for the installation process are as follows:
Http://www.xen.org/download/docs/xen33.linux-2.6.18.README.txt
Http://lists.xensource.com/archives/html/xen-users/2008-01/msg00699.html
Http://www.xen.org/support/index.html
There are many document links at the last website.
 
Install rpmforge, a software repository, and then use it to install mercurial, a source code manager ).
Follow the steps in https://rpmrepo.org/rpmforge/usingto install rpmforge:
[Root @ WHB xen-3.3.1] # cd/var/FTP/upload/
[Root @ WHB upload] # wget

Http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

[Root @ WHB upload] # rpm-Uvhrpmforge-release-0.3.6-1.el5.rf.i386.rpm
Now we use Yum to install mercurial. However, an error occurs when yum is run. The cause is that the http_proxy environment variable settings are incorrect and changed:
[Root @ WHB upload] # export http_proxy = http: // 59.72.109.7: 56789/
This form is fine.
[Root @ WHB upload] # Yum install mercurial
[Root @ WHB upload] # Hg
If the help of the Hg command is output, mercurial is successfully installed.
[Root @ WHB upload] # cd/usr/local/Xen-3.3.1/
[Root @ WHB Xen-3.3.1] # Hg clone

Http://xenbits.xensource.com/linux-2.6.18-xen.hg

Destination Directory: linux-2.6.18-xen.hg
Requesting all changes
Adding changesets
Adding manifests
Adding file changes
Added 921 changesets with 23573 changes to 20935 files
Updating working directory
20912 Files updated, 0 files merged, 0 files removed, 0 filesunresolved

Now there is an additional linux-2.6.18-xen.hg directory.
[Root @ WHB xen-3.3.1] # cd xen-3.3.1/
[Root @ WHB xen-3.3.1] # less readme
In this file, you can see the version of the software package that must be installed before installation:
   * GCC v3.4or later
   * Gnumake
   * Gnubinutils
   * Development install of zlib (e.g., zlib-Dev)
   * Development install of Python v2.3 or later (e.g., Python-Dev)
   * Development install of curses (e.g., libncurses-Dev)
   * Development install of OpenSSL (e.g., OpenSSL-Dev)
   * Development install of X11 (e.g. xorg-x11-dev)
   * Bridge-utils package (/sbin/brctl)
   * Iproutepackage (/sbin/IP)
* Hotplug or udev
Install them:
[Root @ WHB xen-3.3.1] # Yum -- enablerepo = c5-media install gcc
[Root @ WHB xen-3.3.1] # Yum -- enablerepo = c5-media install gcc-C ++
Make has been installed.
[Root @ WHB xen-3.3.1] # rpm-Qa | grep binutils
Binutils-2.17.50.0.6-9.el5
[Root @ WHB xen-3.3.1] # Yum -- enablerepo = c5-media installzlib-devel
[Root @ WHB xen-3.3.1] # Yum -- enablerepo = c5-media installpython-devel
[Root @ WHB xen-3.3.1] # Yum -- enablerepo = c5-media installncurses-devel
[Root @ WHB xen-3.3.1] # Yum -- enablerepo = c5-media installopenssl-devel
[Root @ WHB xen-3.3.1] # Yum -- enablerepo = c5-media installlibX11-devel
[Root @ WHB xen-3.3.1] # Yum -- enablerepo = c5-media installbridge-utils
[Root @ WHB xen-3.3.1] # Yum -- enablerepo = c5-media installiproute
[Root @ WHB xen-3.3.1] # Yum -- enablerepo = c5-media install udev
In addition, you like to use Emacs and install Emacs.
When X11 was last installed on xen 3.2.0, check that there is an error. To avoid errors during the make process, first check:
[Root @ WHB xen-3.3.1] # cd tools/check/
[Root @ WHB check] #./chk build
Xen check-buildTue JUNl 28 13:04:54 cst2009
Checking check_crypto_lib: OK
Checking check_curl: unused, OK
Checking check_openssl_devel: OK
Checking check_python: OK
Checking check_python_devel: OK
Checking check_x11_devel: OK
Checking check_xgettext: OK
Checking check_xml2: unused, OK
Checking check_zlib_devel: OK
Checking check_zlib_lib: OK
[Root @ WHB check] #./chk install
Xen check-installTue JUNl 28 13:04:58 cst2009
Checking check_brctl: OK
Checking check_crypto_lib: OK
Checking check_curl: unused, OK
Checking check_iproute: OK
Checking check_python: OK
Checking check_python_xml: OK
Checking check_udev: OK
Checking check_xml2: unused, OK
Checking check_zlib_lib: OK
Now all the software packages are ready. You should make a snapshot to save the status.
 
[Root @ WHB xen-3.3.1] # Make World
[Root @ WHB xen-3.3.1] # make install
These two commands can handle everything. An error occurred while installing stubdom. The error occurs because makeinfo is not installed and latex is not installed. I think this should not affect the overall situation.
Now you have to modify grub and restart it.
[Root @ WHB boot] # mkinitrd -- without-dmraid initrd-2.6.18.8-xen.img2.6.18.8-xen
The-without-dmraid parameter is added because the DM-Cache module is not available during the first execution.
The modified grub file is as follows:

Default = 0
Timeout = 5
Splashimage = (hd0, 0)/GRUB/splash.xpm.gz
Hiddenmenu
Title centos (2.6.18-128. EL5)
       Root (hd0, 0)
       Kernel/vmlinuz-2.6.18-128.el5 Ro root =/dev/volgroup00/logvol00rhgb quiet
       Initrd/initrd-2.6.18-128.el5.img
Title xen 3.3.1/xenlinux 2.6.18
       Kernel/xen-3.3.1.gz
       Module/vmlinuz-2.6.18.8-xen Ro console = tty0
       Module/initrd-2.6.18.8-xen.img

Restart: a warning is displayed during the restart, indicating that the current simulation does not support memory accesses. We recommend that you change/lib/TLS to/lib/TLS. Disabled. Starting udev times out. Everything else is normal.
 
Note:
1.     When talking about customize kernels in all official installation documents about xen, the changes to top level makefile include "kernels? = ", But this line does not exist in the top level makefile. The top levelmake file contains: include config. MK, while in config. MK contains: include $ (xen_root)/config/$ (xen_ OS ). mk
In this line, the value of xen_ OS is the output of uname-s and Linux on my computer, so this line will contain config/Linux. MK file in config/Linux. is there kernels in the MK file? = This line. Therefore, modifying the top level makefile in the document actually means modifying the MK file in the config directory.
2.     You can see from makefile that make world is actually doing all the cleaning work first, and then make Dist. Makedist is composed of make xen (make install-xen), make kernels (makeinstall-Kernels), make tools (make install-tools), and make stubdom (make install-stubdom ), make Docs (make
Install-Docs). Make prep-Kernels actually runs make Linux-xxx-prep. Make kernels actually runs make Linux-xxx-install, therefore, the entire make Dist can be split. Especially when an error occurs, it is too large to completely re-Execute make Dist. After knowing what the entire make process is, execute it step by step to quickly locate the error, in addition, every small step can be executed quickly, giving confidence.
3.     When installing the xen-3.3.1, make dist is executed in the middle, and an lwip-1.3.0.tar.gz file will be downloaded during make stubdom, so check the network connection and set some wget parameters before installation.
4.     An article in the xen mail list was found only after the installation is completed today:
Xen is very simple and effective.
5.     The above is not installed by default through the Customize kernel. All the options (the answer to Y/N/m is required during make) are directly carried by the carriage return. Therefore, I have not encountered any problems on the Internet, including EHCI, OHCI, uhci, mptspi, and so on when I installed xen the first two times.
6.     In the execution. /chk check installation conditions and no error, it seems that xen xorg-x11-devel is the libX11-devel, but in the installation of xen 3.2.0, install libx11 is not enough, the specific blog has been recorded.

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.