Install Xen4.0.1 on Ubuntu10.10 source code

Source: Internet
Author: User
Tags mercurial
The installation of Xen on Ubuntu source code is successful! With the latest versions of Virt-manager and Virt-Viewer, you can install multiple operating systems. First, install system updates, updates in the update manager, and language support updates. # Sudoapt-getupdate # sudoapt-getupgrade disables the network manager and does not test whether the network manager is required. # Sudoapt-getinstallchkconfi

The installation of Xen on Ubuntu source code is successful! With the latest versions of Virt-manager and Virt-Viewer, you can install multiple operating systems.

First, install system updates, updates in the update manager, and language support updates.

# Sudo apt-get update

# Sudo apt-get upgrade

Disable the network manager. No test is required.

# Sudo apt-get install chkconfig vim aptitude

Chkconfig network-manager off

Vim/etc/network/interfaces

Modify it to the following text:

Auto lo

Iface lo inet loopback

Auto eth0

Iface eth0 inet dhcp

Restart the network service:

/Etc/init. d/networking restart

Step 1: Install the compilation tool

# Sudo apt-get install build-essential libssl-dev bzip2 gettext zlib1g-dev python libncurses5-dev libjpeg62-dev libx11-dev libgcrypt11-dev pkg-config bridge-utils bcc bin86 libpci-dev libsdl-dev python-dev texinfo libc6-dev uuid -dev bison flex fakeroot crash kexec-tools makedumpfile libncurses5 libncurses5-dev iasl linux-headers-'uname-R'

# Sudo apt-get install bcc bin86 gawk bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif texinfo texlive-latex-base texlive-latex-recommended texlive-fonts-extra texlive -fonts-recommended pciutils-dev mercurial build-essential make gcc libc6-dev zlib1g-dev python-dev python-twisted libncurses5-dev patch libvncserver-dev libsdl-dev libjpeg62-dev iasl libbz2-dev e2fslibs-dev git-core uuid-dev libx11-dev ocaml

# Sudo apt-get install libcurl4-openssl-dev xserver-xorg-dev mercurial gitk build-essential libncurses5-dev uuid-dev gawk gettext texinfo bcc libncurses5-dev dpkg-dev debhelper iasl texinfo bridge-utils bison flex kernel-package fakeroot

# Apt-get build-dep xen-3.3

For 64-bit Ubuntu:

# Apt-get install gcc-multilib

If the cocould not open file/var/lib/apt/lists/extras.ubuntu.com _ ubuntu_dists_maverick_main_source_Sources-open error occurs during installation

Enter sudo apt-key adv -- keyserver keyserver.ubuntu.com -- recv-keys 16126D3A3E5C1192

To solve this problem, make sure that your machine can connect to keyserver.ubuntu.com.

Install Step 2 and obtain the latest kernel with Xen patches.

# Cd/usr/src

# Git clone git: // git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen

# Cd linux-2.6-xen

# Git checkout-B xen/stable-2.6.32.x origin/xen/stable-2.6.32.x

This kernel is directly downloaded using git, which is about 500 M and takes a long time. Ensure that git can connect to the server.

We recommend that you compress, package, and back up the kernel files downloaded for the first time so that they can be used directly next time.

Step 3: Compile the kernel

Before compiling the kernel, set the Kernel configuration file. Here we provide a. config file, click to download the attachment, and copy it directly to the kernel directory to overwrite the original file. Note that. config is a hidden object.

# Aptitude install kernel-package fakeroot

# Export CONCURRENCY_LEVEL = (number_of_cores) + 1

# Make-kpkg clean

# Fakeroot make-kpkg -- initrd -- append-to-version =-pv kernel-image kernel-headers

If the/usr/bin/make-j (number_of_cores) + 1 Compilation error occurs, change (number_of_cores) + 1 to (number_of_cores) and then compile

After compiling the kernel, modify # vim/etc/modules

#/Etc/modules: kernel modules to load at boot time.

# This file contains the names of kernel modules that shoshould be loaded

# At boot time, one per line. Lines beginning with "#" are ignored.

Lp

Rtc

Xen-evtchn

Xen-gntdev

Xen-netback

Xen-blkback

Xenfs

Blktap

Related Article

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.