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] Installing Xen on Debian Sarge

To: Hans-Christian Armingeon <johnny@xxxxxxxxxx>
Subject: Re: [Xen-users] Installing Xen on Debian Sarge
From: Miguel Enrique Cobá Martínez <m.coba.m@xxxxxxxxx>
Date: Thu, 20 Oct 2005 13:21:12 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 20 Oct 2005 18:18:22 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=Vrln5zz2LJANya5uq99WYzODs6jy5w1NkIw7QitfOUC6UVzP/YRe/6JomvBpxisX/qGIW5GzCEk+wn+YRS4gp60kzLZNpcF/HVQ3qfbyiTJgktru/gAegVF4I6zj21Igt5d6qWA+xdvMhp2toZsAVJhrnZbt63348qaSBomKnaI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200510201409.59195.johnny@xxxxxxxxxx>
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>
References: <BAY20-DAV186E5AC0C1678519212CB80700@xxxxxxx> <200510201409.59195.johnny@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Debian Thunderbird 1.0.2 (X11/20050817)
Hans-Christian Armingeon wrote:
I installed debian 3.1 on a lvm2 root, and it worked without problems. Even 
with the standard mkinitrd.

Perhaps the problem is in your mkinitrd config ?

Johnny

Yes, I have my current debian sarge root on a lvm partition and I have no problems. But when I wanted to boot my custom compiled xen-kernel, it didn't boot, because the root was on a lvm, so, searching on google and the lists, I found that it was a problem when usint lvm roots. The solution given there was to add a initrd so that the lvm root could be mounted correctly.
But when I tried to:

debian:~# mkinitrd -o initrd-2.6.11debianxen0 2.6.11debianxen0
File descriptor 3 left open
File descriptor 4 left open
File descriptor 5 left open
File descriptor 6 left open
File descriptor 7 left open
    Finding all volume groups
    Finding volume group "xenvg"
    Finding volume group "debianvg"
/usr/sbin/mkinitrd: /dev/mapper/debianvg-rootlv: Kernel does not support LVM

So in further research, I found in

http://pigeon.dyndns.org/stuff/lvm-root/lvm-root.html

that /usr/share/doc/lvm2/examples/lvm2create_initrd.gz
was made to address this problem
after that, I added to menu.lst

title Debian GNU/Linux, Xen 2.6.11xen0, testing 25/5/2005
root (hd0,2)
kernel /xen.gz dom0_mem=195584
module /xen-linux-2.6.11debianxen0 root=/dev/ram0 lvm2root=/dev/mapper/debianvg-rootlv ro
module /initrd-lvm2-2.6.11debianxen0.gz

and it booted ok.

Auf wiederlesen!

Am Mittwoch, 19. Oktober 2005 17:11 schrieb Miguel Enrique Cobá Martínez:

[...]
3. I had to build a initrd image so that the boot process could mount the root partition on lvm. I use the script from
/usr/share/doc/lvm2/examples/lvm2create_initrd.gz
to build the initrd, as mkinitrd has a bug with lvm root partitions.
4. I updated grub to use the initrd and all worked ok.
[...]




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

<Prev in Thread] Current Thread [Next in Thread>