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] Manually create Fedora domU on CentOS 5.3 dom0

To: Geert Janssens <info@xxxxxxxxxxxx>
Subject: Re: [Xen-users] Manually create Fedora domU on CentOS 5.3 dom0
From: Grant McWilliams <grantmasterflash@xxxxxxxxx>
Date: Wed, 23 Sep 2009 15:07:50 -0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 23 Sep 2009 15:08:59 -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 :from:date:message-id:subject:to:cc:content-type; bh=xTnnSN6kGoYB5pDVU8tdZyS5S7vHEjt5cSmxDosgnjw=; b=L9dzXMKEyJCHb/CoXfvD4ij4NJo77AwweL5CKR26vz9Y1J3Yv/u2VvU7ZIK4C8hHK7 jm6566shzDzlPO7D0/86bXfQMEhelMbtqyFsYNiVqFtWI+77Cyn/3rmlwDiYXkBI+tre xrRRAdNDWrojWc7qlCzqSFknpZ7pm8P86Rj3k=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=WeYc9/xdq0VjFvJs9je0UL8e0FV0Vvwncn+t0+AkMjechR99TpTlDkcCWZLbvpKmGm hX+MNq/5Jp2q8EWtaAQk6o/jWTMJ56nuo3/LL+6smRiZF2S7kre0JMf0n1VE646v4zP5 1M4enbXcxmstikXXG/iJYndZ9+6fQkVppHt98=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200909232336.00207.info@xxxxxxxxxxxx>
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: <33aead550906172138m97ec939j69ad5a95e7f02f4f@xxxxxxxxxxxxxx> <64D0546C5EBBD147B75DE133D798665F02FDC01A@xxxxxxxxxxxxxxxxx> <200909231908.06305.info@xxxxxxxxxxxx> <200909232336.00207.info@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> I found this thread on xen-users
> http://lists.xensource.com/archives/html/xen-users/2009-06/msg00650.html
> Which refers to an Amazon EC2 tech doc, explaining how to install Fedora on
> a single root filesystem.
>
> Following these instructions, I managed to install fedora 11 on an LVM
> partition. However, when attempting to start this setup as a Xen PV, I get
> this error right after pygrub finishes:
> Error: (2, 'Invalid kernel', 'elf_xen_note_check: ERROR: Will only load
> images built for the generic loader or Linux images')
>
> I'm not sure how to proceed here. Is a special initrd required in a PV
> environment ?
>
> More details:
> My environment is all 32 bit (xen, dom0, domU)
> dom0 kernel is 2.6.18-128.1.10.el5.centos.plusxen
> xen is gitco xen 3.3.1
> domU kernel is 2.6.30.5-43.fc11.i586
>
> Geert

 
You know I'm not sure you're going about this the easiest way. I've never installed on a LVM partition but I do use them.
I'll give you the 4 step process that I would have used. Maybe it doesn't match exactly to what you wanted but it's fast and it works.

1. Download a Fedora Disk Image from Stacklet. http://stacklet.com/downloads/images/list/Fedora
2. Make your LV.
3. Modify the included domU config file to add the LV as a second disk
4. Start the VM and once booted up, format the LV and use it for whatever you want.

I'm sure there's a cleaner way but doing this I can have a working VM in about 15 minutes that's using LVM. For databases it's worth the trouble to use LVM because you gain about 4% in speed on the sql-bench test.

Another thing that is more directly related to your problem is you probably want to be using the kernel from gitco if you're using the gitco xen like this. This might actually solve your problem as apposed to just avoiding it. Here's my grub.conf entry using the gitco xen kernel.

title CentOS (2.6.18-128.4.1.el5xen)
    root (hd0,0)
    kernel /xen.gz-3.4.0
    module /vmlinuz-2.6.18-128.4.1.el5xen ro root=/dev/vgsys/lvroot rhgb quiet
    module /initrd-2.6.18-128.4.1.el5xen.img


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