|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] Installing Xen on Debian Sarge
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
|
|
|
|
|