[virt-tools-list] Installing a KVM guest with LVM partitioning on an LVM partitioned KVM host via virt-install fails: "volume group already exists"

Dennis Jacobfeuerborn dennisml at conversis.de
Mon Sep 17 13:32:09 UTC 2012


On 09/17/2012 11:31 AM, Nicola Volpini wrote:
>> Have you made sure that the logical volume is clean i.e. that the partition
>> table area is cleared before partitioning it? It looks like the volume
>> already contains metadata maybe from a previous installation try or
>> something else.
> 
> Hi Dennis,
> 
> I ran a dd if=/dev/zero of=/dev/sysvg/logical-volume but that did not
> help. I also tried to remove the volume group and to create it with
> different sizes and names.
> 
> Installing the vms manually without removing the logical volumes
> succeeds. The issue appears only when using virt-install.

Strange. I recently have started using virt-install and kickstart to
auto-install new CentOS VM's and that works fine.
Have you tried starting the installation with virt-install but without
preseed and then before the partitioning step switched to a shell to see
what the partition table looks like on the supposedly clean virtual drive
and maybe done a "vgs" to see if any volume groups exists?
That should help you determine if this already existing volume group that
it complains about actually exists prior to partitioning or if maybe the
partitioning step itself is doing something funky.

Regards,
  Dennis




More information about the virt-tools-list mailing list