Ubuntu10.04-x86_64-LTS-Lucid install xen4.0.1

Source: Internet
Author: User
# Note: unlike how to install xen on Ubuntu9.10, Ubuntu10.04 does not officially maintain the xen software package and does not have corresponding xen-tools. That is, third-party Dom0 kernels are not available. Therefore, it can only be installed by source code. All of the following operations are performed under the Super User. # Installation steps: 1. Install the package apt-getinstalllibcurl4-openssl-dev \ xserver-xorg-dev \

# Note:

Different from how to install xen on Ubuntu 9.10, Ubuntu 10.04 does not officially maintain the xen software package and does not have the corresponding xen-tools,

That is, the third-party Dom0 kernel is not ready-made. Therefore, it can only be installed by source code.

All of the following operations are performed under the Super User.

# Installation steps:

1. Install the required package

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 python-dev

Other security kits required for Debian/Ubuntu 64bit

Apt-get install gcc-multilib

2. source code of the Dom0 kernel (about 350 MB)

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

3. Compile the Dom0 Kernel

Change 'extraversion' in Makefile to what you want.

Make menuconfig # Enabled the dom0 support and the Xen backend as usual on Ubuntu 9.10

Make-j (x) number_of_kernels

Make modules_install install

Chmod g-s/usr/src-R

Make deb-pkg

Dpkg-I ../linux-image * 2.6.32.27 *. deb

Depmod 2.6.32.27

Update-initramfs-c-k 2.6.32.27

4. Download the source code xen4.0.1 and compile and install it.

Cd/usr/src

Hg clone http://xenbits.xensource.com/xen-4.0-testing.hg

Cd xen-4.0-testing.hg

Make xen tools stubdom

Make install-xen

Make install-tools PYTHON_PREFIX_ARG =

5. Add it to the automatic start script.

Update-rc.d xend defaults 20 21

Update-rc.d xendomains defaults 21 20

6. Modify grub2 entry, reboot

Menuentry "Xen 4.0.1/Ubuntu 10.04 kernel 2.6.32.27 "{

Insmod ext2

Set root = '(hd0, 7 )'

Multiboot (hd0, 7)/boot/xen-4.0.1.gz dummy = dummy dom0_mem = 1024 M

Module/boot/vmlinuz-2.6.32.27 dummy = dummy nopat root = UUID = 013228f1-cae3-4f2f-aa52-b025785d3aa6 ro console = tty0

Module (hd0, 7)/boot/initrd. img-2.6.32.27

}

Note:

-The dummy = dummy parameter must be added to grub2 to enable normal startup.

-Dom0_mem must be large enough to enable Dom0 to start properly. Otherwise, Dom0 will be restarted automatically.

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.