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/
Home Products Support Community News


Re: [Xen-users] xen and Debian kernel package

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] xen and Debian kernel package
From: Andy Smith <andy@xxxxxxxxxxxxxx>
Date: Mon, 13 Jun 2005 10:19:53 +0000
Delivery-date: Mon, 13 Jun 2005 10:19:01 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <f9da4e5fd87f5634bc3e3c8a09ab77d9@local>
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>
Openpgp: id=BF15490B; url=http://strugglers.net/~andy/pubkey.asc
References: <f9da4e5fd87f5634bc3e3c8a09ab77d9@local>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Sun, Jun 12, 2005 at 10:15:38PM +0200, Olaf wrote:
> I'm about to roll a few machines out with xen and it's likely that I 
> have to change the kernel configuration from the stock xenU kernel. 
> What do you reckon, is it more efficient to compile a kernel on every 
> machine using the 2.0.6-src archive or would it make sense to invest 
> the time to figure out how to compile a kernel and modules using 
> Debian's kernel package and deploy the packages?

Hi Olaf,

I use Debian for my Dom0 and most of my domUs.  Here is what I do:

- Download and unpack xen-testing, make sure I have python-twisted
  and all other dependencies.

- Make and install the tools.

- In the Xen Makefile, remove any kernels I'm not interested
  in.  basically everything except linux 2.6:

KERNELS ?= linux-2.6-xen0 linux-2.6-xenU
# linux-2.4-xen0 linux-2.4-xenU netbsd-2.0-xenU

- Do "make mkpatches" to get a patch against vanilla kernel source.

- Download the latest pristine kernel that xen-testing supports,
  apply the xen patch to it.

- Build and configure it the Debian way:

$ sudo make-kpkg --config=menuconfig --arch=xen --revision=1 
--append-to-version=hostnamexen0 kernel_image

that will leave me with a kernel-image...deb in /usr/src

- Repeat again for domU kernels:

$ sudo make-kpkg --config=menuconfig --arch=xen --revision=1 
--append-to-version=hostnamexenu clean
$ sudo make-kpkg --config=menuconfig --arch=xen --revision=1 
--append-to-version=hostnamexenu kernel_image

I don't use modules or an initrd but I don't see any reason why that
will not work as normal.

There may be a quicker way to get patched kernel source without
building it (so I can build it the debian way), but this is the way
I know and know works.

Hope that helps,

Attachment: signature.asc
Description: Digital signature

Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>