From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Derzhavets Subject: Re: pv_ops with xen-3.3 Date: Tue, 10 Feb 2009 09:52:05 -0800 (PST) Message-ID: <844576.20319.qm@web56107.mail.re3.yahoo.com> References: <20090210075548.pcng3y8j0ro8scog@www.destar.net> Reply-To: bderzhavets@yahoo.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0594657618==" Return-path: In-Reply-To: <20090210075548.pcng3y8j0ro8scog@www.destar.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, jonr@destar.net List-Id: xen-devel@lists.xenproject.org --===============0594657618== Content-Type: multipart/alternative; boundary="0-19024708-1234288325=:20319" --0-19024708-1234288325=:20319 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable The way it worked for me on Ubuntu Intrepid Server (x86_64) First installed the most recent xen unstable:- # cd /usr/src # hg clone http://xenbits.xensource.com/xen-unstable.hg # cd xen-unstable.hg # make xen # make install-xen # make tools # make install-tools Compiled kernel supporting PV_OPS in Dom0 & INTEL AHCI (ICH(X)R) # hg clone http://www.kernel.org/hg/linux-2.6 # cd linux-2.6/.hg # hg clone http://xenbits.xensource.com/paravirt_ops/patches.hg patches # cd .. # ln -s .hg/patches . # for convenience # hg update `cat patches/KERNEL_VERSION` # hg qpush -a # make menuconfig # make # make modules_install install=20 # depmod 2.6.29-rc3-tip # mkinitramfs -o /boot/initrd-2.6.29-rc3-tip.img 2.6.29-rc3-tip Created grub entry :- title Xen 3.4 / Ubuntu 8.10, kernel 2.6.29-tip kernel /boot/xen-3.4.gz dom0_mem=3D1024M module /boot/vmlinuz-2.6.29-rc3-tip root=3D/dev/sdb1 ro console=3Dtty0 pci= =3Dnomsi module /boot/initrd-2.6.29-rc3-tip.img I was able to load 2.6.23-rc3 only under the most recent version of Xen Uns= table Hypervisor. Xen 3.3.1 was unable to recognize kernel image:- Printed "Not ELF format" to=A0 console and hanged. Details here:- http://bderzhavets.wordpress.com/2009/02/07/attempt-of-install-xen-unstable= -dom0-via-2629-rc3-pv_ops-enabled-kernel-on-intel-sataahci-box/ --- On Tue, 2/10/09, jonr@destar.net wrote: From: jonr@destar.net Subject: [Xen-devel] pv_ops with xen-3.3 To: xen-devel@lists.xensource.com Date: Tuesday, February 10, 2009, 11:55 AM I would like to try and test out the 2.6.29-rc4 kernel and see if I can't get Xen-3.3-1 booting. I have patched the 2.6.28 kernel and have a 2.6.29-rc4 kernel. I have configured the kernel to use xen by following http://wiki.xensource.com/xenwiki/XenParavirtOps. Now I have the kernel configured and built but am not quite sure how to use this kernel with xen-3.3. When I downloaded the latest xen and ran 'make world' it downloaded the 2.6.18 kernel and is building xen against that. How do I make xen build against my kernel or do I even need to? Once xen-3.3 is done building do I just substitute my 2.6.29-rc4 kernel in the grub menu.conf or am I missing something? Thanks for any help, Jon _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-19024708-1234288325=:20319 Content-Type: text/html; charset=us-ascii
The way it worked for me on Ubuntu Intrepid Server (x86_64)

First installed the most recent xen unstable:-

# cd /usr/src
# hg clone http://xenbits.xensource.com/xen-unstable.hg
# cd xen-unstable.hg
# make xen
# make install-xen
# make tools
# make install-tools


Compiled kernel supporting PV_OPS in Dom0 & INTEL AHCI (ICH(X)R)

# hg clone http://www.kernel.org/hg/linux-2.6
# cd linux-2.6/.hg
# hg clone http://xenbits.xensource.com/paravirt_ops/patches.hg patches
# cd ..
# ln -s .hg/patches . # for convenience
# hg update `cat patches/KERNEL_VERSION`
# hg qpush -a

# make menuconfig
# make
# make modules_install install
# depmod 2.6.29-rc3-tip
# mkinitramfs -o /boot/initrd-2.6.29-rc3-tip.img 2.6.29-rc3-tip

Created grub entry :-

title Xen 3.4 / Ubuntu 8.10, kernel 2.6.29-tip
kernel /boot/xen-3.4.gz dom0_mem=1024M
module /boot/vmlinuz-2.6.29-rc3-tip root=/dev/sdb1 ro console=tty0 pci=nomsi
module /boot/initrd-2.6.29-rc3-tip.img


I was able to load 2.6.23-rc3 only under the most recent version of Xen Unstable Hypervisor. Xen 3.3.1 was unable to recognize kernel image:-
Printed "Not ELF format" to  console and hanged.

Details here:-

http://bderzhavets.wordpress.com/2009/02/07/attempt-of-install-xen-unstable-dom0-via-2629-rc3-pv_ops-enabled-kernel-on-intel-sataahci-box/

--- On Tue, 2/10/09, jonr@destar.net <jonr@destar.net> wrote:
From: jonr@destar.net <jonr@destar.net>
Subject: [Xen-devel] pv_ops with xen-3.3
To: xen-devel@lists.xensource.com
Date: Tuesday, February 10, 2009, 11:55 AM

I wou
 ld like to try and test out the 2.6.29-rc4 kernel and see if I
can't get Xen-3.3-1 booting. I have patched the 2.6.28 kernel and have
a 2.6.29-rc4 kernel. I have configured the kernel to use xen by
following http://wiki.xensource.com/xenwiki/XenParavirtOps.

Now I have the kernel configured and built but am not quite sure how
to use this kernel with xen-3.3. When I downloaded the latest xen and
ran 'make world' it downloaded the 2.6.18 kernel and is building xen
against that. How do I make xen build against my kernel or do I even
need to?

Once xen-3.3 is done building do I just substitute my 2.6.29-rc4
kernel in the grub menu.conf or am I missing something?

Thanks for any help,

Jon




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

--0-19024708-1234288325=:20319-- --===============0594657618== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0594657618==--