Hi, I am using KVM to run several virtual machines, where their virtual hard disks are just LVM logical volumes. Partitions generated with fdisk or parted, using kpartx to crossmount them from the host system for base installation. Using either ext3/4+grub or msdos+syslinux to generate machines. Unfortunately, I am running occasionally into file system problems, since the linux kernel does not provide a disk geometry for these logical volumes. Most tools try to guess a 255 heads, 63 sectors geometry, but not all tools, e.g. qemu/lvm do support this ans sometimes assume a wrong geometry. Would be nice and usefull if it was possible to just assign an arbitrary geometry to a lvm volume just as if it was a physical disk. regards
I've seen comments of other users experiencing similar problems, and it seems to be a problem of LVM devices, something related to the beginning of the logical volume.
You can assign arbitrary geometry to DM/LVM device, see "man dmsetup" setgeometry command. But all mentioned utilities should be fixed to not require geometry there (and I think that problem was already fixed for fdisk and parted).