[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Installing Xen on Debian Sarge


  • To: Hans-Christian Armingeon <johnny@xxxxxxxxxx>
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.