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] Re: Problems building a xen0 kernel on Suse

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Re: Problems building a xen0 kernel on Suse
From: "Jeffrey Buell" <jbuell@xxxxxxxxxx>
Date: Thu, 26 May 2005 11:33:18 -0700
Delivery-date: Thu, 26 May 2005 18:32:48 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcVhPVBujLX07d6fT/KkuThDWRgczQA4I6QQ
Thread-topic: Xen-users Digest, Vol 3, Issue 66
> 
> Chris Epicier write on Wed, 25 May 2005 11:49:23 +0200 (CEST):
> > I also tried the KOTD:
> > 
> ftp.suse.com/pub/projects/kernel/kotd/i386/HEAD/kernel-xen-2.6
> .11.10-20050523173601.i586.rpm
> > but that dos not solve the issues with raid1 neither.
> 
> Have you seen Gert Knorr's reply to Xen-users?
>   
> http://lists.xensource.com/archives/html/xen-users/2005-05/msg
> 00443.html
> 
> Thank you Gert!
> 
> I think you are on the right track using KOTD, but are you aware that
> that you need two pieces to get sources that you can build the SuSE
> Xen kernel from?
> 
>  
> ftp://your.suse.mirror.here/pub/projects/kernel/kotd/i386/HEAD
> /kernel-xen-2.6.11.10-20050524103609.abuild-extra.tar.gz
>  
> ftp://your.suse.mirror.here/pub/projects/kernel/kotd/i386/HEAD
> /kernel-source-2.6.11.10-20050524103609.src.rpm
> 
> In fact I tried using the stuff in following place
> instead:
>   
> ftp://your.suse.mirror.here/pub/projects/kernel/kotd/9.3-i386/
> SL93_BRANCH/
> 
> i.e. not kernel-source-<version>.i586.rpm
> but kernel-source-<version>.src.rpm
> and kernel-xen-<version>.abuild-extra.tar.gz
> 
> you need to do
> 
> rpm -i kernel-source-<version>.src.rpm
> cat kernel-xen-<version>.abuild-extra.tar.gz | \
>    (cd /usr/src/packages/SOURCE/ && tar xf - )
> 
> Then either build using rpmbuild and the kernel-xen.spec file
> or manually with make ARCH=xen config ; make ARCH=xen
> 
> Remember to set CONFIG_BLK_DEV_MD=y
> 
> I am busy compiling this at the moment :)

Robbie,

Thanks for the hints!  I'm now running my own stripped-down xen0 kernel that
took only 5 minutes to build.  A couple comments and steps that I did that
might be helpful to others:

1.  The tar command should be "tar zxf -"
2.  rpmbuild -bp --target=i386 kernel-xen.spec
3.  cd /usr/src/packages/BUILD/kernel-xen-2.6.11.10/linux-2.6.11
4.  vi Makefile   # EXTRAVERSION = .10-xen0
5.  make ARCH=xen menuconfig    # modify config file
6.  make ARCH=xen; make ARCH=xen modules; make ARCH=xen modules_install; make
ARCH=xen install
7.  cd /boot; mkinitrd -k vmlinuz-2.6.11.10-xen0-4 -i
initrd-2.6.11.10-xen0-4.img
8.  edit grub.conf

The mkinitrd step was done automatically when building the regular kernel,
does anyone know why it is not produced by the xen0 build?

Why are there 2 different source rpms?  Is the xen stuff simply not put into
the i586 version?

Jeff

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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] Re: Problems building a xen0 kernel on Suse, Jeffrey Buell <=