The CentOS installers always expect disk images to be whole disks, not
partitions, and to do their own partitioning--i.e. this isn't really a
Xen question. You can accomplish the storage layout you're after, but
not with the native CentOS installers.
The following EC2 page has instructions for installing Fedora to a
single root filesystem, but can easily be adapted to CentOS on multiple
volumes. The key is preparing for a successful "yum --installroot=...
If you want to use multiple volumes instead of one (as in your
root/usr/var example below), create and mount each (i.e. /mnt,
/mnt/usr, /mnt/var, etc.) before you begin your install.
> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of
> Matthias Reif
> Sent: Thursday, June 18, 2009 12:38 AM
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-users] LVM partitions on PV domU
> Hi All,
> I am trying to install a 32-bit CentOS 5 paravirtualised domU
> based on the instructions at
> I would like to allocate storage to the domU as a number of
> LVM logical volumes instead of a single disk image.
> kernel = "/domx/boot/vmlinuz-xen-install"
> ramdisk = "/domx/boot/initrd-xen-install"
> extra = "text"
> disk = [ 'phy:/dev/sage/root,xvda1,w',
> 'phy:/dev/sage/var,xvda5,w' ]
> I was hoping the logical volumes would appear as partitions
> inside the domU, but instead the installer recognises them as
> separate disk devices and wants me to partition each of them,
> ie. xvda11, xvda21, etc.
> Is this expected behaviour?
> Is it at all possible to pass LV partitions through to the
> domU as partitions instead of disk devices?
> dom0 = CentOS 5.2 64-bit
> Xen = 3.3.1
> Thank you.
> Xen-users mailing list
Xen-users mailing list