Skip to content


Steps to try Xen 4.0.0 Release Candidate 8 on Ubuntu Lucid 10.04 64 Bits

Great post in xen-users today from Thiago Martins…

Running Xen 4.0.0-rc8 with Linux 2.6.32.10 paravirt_ops    dom0 on top of Ubuntu Lucid 10.04 64bits

This is a quick guide to help us to try the new Xen.
Also I have the composite window manager on top of the Xen! With full 3D support!

To achieve this I do:

1- Install your Ubuntu Desktop 10.4 beta1 and upgrade your system;

1.1 – Install some packages:

aptitude install build-essential libncurses5-dev dpkg-dev debhelper fakeroot

2- Download and install a new kernel with dom0 pv_ops enabled:

sudo -s
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 pull
git reset –hard
git checkout -b xen/stable origin/xen/stable
git pull

2.1 – Download the kernel config file attached to this mail (config-for-xen-2.6.32.10-pvops):

Copy the config file to the kernel source dir:

cp ~Downloads/config-for-xen-2.6.32.10-pvops /usr/src/linux-2.6-xen/.config

You can see the differences of my config file against the Lucid one:

diff /boot/config-2.6.32-17-generic ~Downloads/config-for-xen-2.6.32.10-pvops | vim -

…both are close to each other.

2.2 Configure, compile and install:

make menuconfig # Enable the dom0 support and the Xen backend/frontend/xenfs stuffs…
make
chmod g-s /usr/src -R     # To avoid the error: “dpkg-deb: control directory has bad permissions 2755 (must be >=0755 and <=0775)”
make dep-pkg
dpkg -i ../linux-image*2.6.32.10*.deb
depmod 2.6.32.10
update-initramfs -c -k 2.6.32.10
update-grub
echo “xen-evtchn” >> /etc/modules

Now you can try your new kernel without Xen, if you want, it should work smootly.

3- Download and install the latest Xen:

Preparing your environment:

apt-get build-dep xen-3.3
aptitude install uuid-dev iasl texinfo

Download and compile:

cd /usr/src
hg clone -r 4.0.0-rc8 http://xenbits.xensource.com/xen-unstable.hg
cd xen-unstable.hg
make xen
make tools
make stubdom
make install-xen
make install-tools PYTHON_PREFIX_ARG=
make install-stubdom

update-rc.d xend defaults 20 21
update-rc.d xendomains defaults 21 20

4- Configuring your Grub2 through the file /etc/grub.d/40_custom:

—- cut here —-
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the ‘exec tail’ line above.
menuentry “Xen 4.0.0-rc8 / Ubuntu 10.4 kernel 2.6.32.10 pvops” {
insmod ext2
set root=(hd0,1)
multiboot (hd0,1)/xen-4.0.0-rc8.gz dummy=dummy
module (hd0,1)/vmlinuz-2.6.32.10 dummy=dummy root=/dev/mapper/HyperDeskVG01-tcmc–dell–lucid ro
module (hd0,1)/initrd.img-2.6.32.10
}
—- cut here —-

Don’t forget to change your “root=” option of your Linux!

Run update-grub again:

update-grub

5- Reboot into your new dom0!

reboot

6- Look if your Xen is up and running

xm list
xm info

.. if not:

/etc/init.d/xendomains stop
/etc/init.d/xend stop
/etc/init.d/xend start
/etc/init.d/xendomains start

xm list
xm info


Be Sociable and Share!

Posted in Community, Xen Development, Xen Support, Xen.org Promotion.

Tagged with , , , .


8 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. perat says

    How make?

    CC drivers/xen/events.o
    drivers/xen/events.c:648: error: redefinition of ‘xen_create_msi_irq’
    /usr/src/linux-2.6-xen/arch/x86/include/asm/xen/pci.h:52: note: previous definition of ‘xen_create_msi_irq’ was here
    make[2]: *** [drivers/xen/events.o] Error 1
    make[1]: *** [drivers/xen] Error 2
    make: *** [drivers] Error 2

  2. Khristian says

    2.1 – Download the kernel config file attached to this mail (config-for-xen-2.6.32.10-pvops):

    Where do I get that, because I don’t see that attachment anywhere?

  3. michaeljC says

    here is the link for: config-for-xen-2.6.32.10-pvops

    http://lists.xensource.com/archives/html/xen-users/2010-03/msg00878.html

    the “config-for-xen-2.6.32.10-pvops” attachment is at the end of the posted email.

  4. outrosdiasvirao says

    It’s not:

    make dep-pkg

    The correct is:

    make deb-pkg

    Good article. Congratulations!

  5. mtn says

    I couldn’t do `dpkg -i ../linux-image*2.6.32.10*.deb`. I get the error of “No such file or directoru.” Any help is appreciated. Thanks in advance

Continuing the Discussion

  1. Xen.org Weekly Newsletter Vol 10 No 12 – blog.xen.org linked to this post on March 26, 2010

    [...] Thanks to Thiago Martins for his instructions to run Xen 4.0.0 RC8 on Ubuntu http://blog.xen.org/index.php/2010/03/26/steps-to-try-xen-4-0-0-release-candidate-8-on-ubuntu-lucid-… [...]

  2. XEN Tryout - Open Source Thoughts linked to this post on April 6, 2010

    [...] the KVM road. I was downloading Fedora 12 to start fiddling around when I ran into this webpage: http://blog.xen.org/index.php/2010/03/26/steps-to-try-xen-4-0-0-release-candidate-8-on-ubuntu-lucid-… I had to do some changes to get it running. When I ran the make xen I got an error about ./config [...]

You must be logged in to post a comment.