WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Running Xen 4.0.0-rc8 with Linux 2.6.32.10 paravirt_ops

To: Martinx - ジェ?ムズ <thiagocmartinsc@xxxxxxxxx>
Subject: Re: [Xen-users] Running Xen 4.0.0-rc8 with Linux 2.6.32.10 paravirt_ops dom0 on top of Ubuntu Lucid 10.04 64bits.
From: Outback Dingo <outbackdingo@xxxxxxxxx>
Date: Fri, 26 Mar 2010 14:29:42 -0400
Cc: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 26 Mar 2010 11:48:07 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=NkkNzaYs/S9GhGt5M1TaSkBVpxnv12LFlzdG/Oe6nXI=; b=nljAA1BJ556d1iewBy/eDe5yyZs4ulTS4MHpc9l21i2I/SbZXhA72uwQBCsGxizT2u jed6UKqryuOVBv2IxQ0rivMt/xCUhiTzoGynWs1l6Ue52fSqZwfsedQsHOOhcU6+eVIV esrQLu26jplttgYwo6bYsqyFC4fActN0Exnbc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=rWBsXlqKrhnhB78K1D0/RucjHVSN1vYy3A+1PLAkFosMz7ICi+1a/HtGw4JgaKA9JI /M2/3QVqi8t9ia4PJgjKjnzB8fTn4FnsrouE5VkVRreS/BoBqSqo8VTk667S6lNxKQkE H7GIEaciTFyIZLJxLbWdOiCttJ9eFF1oAd2ck=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <5635aa0d1003261127j42155c9cv575e4cbd5fd857a0@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <6b7f6eb1003260752i2ec1c914h425060c0a97828dc@xxxxxxxxxxxxxx> <5635aa0d1003261127j42155c9cv575e4cbd5fd857a0@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
hrmm guess you were thinking of make deb-pkg


2010/3/26 Outback Dingo <outbackdingo@xxxxxxxxx>
The following fails for me, whats missing

make dep-pkg
make[1]: *** No rule to make target `dep-pkg'.  Stop.
make: *** [dep-pkg] Error 2


2010/3/26 Martinx - ジェ?ムズ <thiagocmartinsc@xxxxxxxxx>
Hi!

 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

-
 Cheers!
 Thiago

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>