Hi<div><br></div><div>To deploy KVM vms I use a KVM template + script - which is cloned, then cloned again and resized - using virt-resize.</div><div><br></div><div>i.e </div><div><br></div><div>----------------------------------------------------</div>

<div><br></div><div><div>virt-clone --original debian6template-DONTSTART --name NAME.test -f /dev/vgpool/NAME.test</div><div><br></div><div>virsh vol-create-as vgpool NAME 8G</div><div><br></div><div>virt-clone --original NAME.test --name NAME -f /dev/vgpool/NAME</div>

<div><br></div><div>virt-resize --expand /dev/sda1 /dev/vgpool/NAME.test /dev/vgpool/NAME</div><div><br></div><div>----------------------------------------------------</div></div><div><br></div><div>The reason I clone twice is because I know that virt-clone does things to prep it for a new install, also the whole point was to be able to specify a size to be clone into (hence the use of virt-resize)</div>

<div><br></div><div>This worked fine on our Ubuntu 11.10 server, however in Ubuntu 12.04 when I try to do the same I get the error</div><div><br></div><div>'ERROR    Clone onto existing storage volume is not supported: '/dev/vgpool/test'</div>

<div><br></div><div>If I can't virt-clone into an existing LVM I know I can clone once - then resize with LVM, then virt-resize into the partition (then virt-sysprep) - however the issue with that is that it is far more fiddly to mange...</div>

<div><br></div><div>Previously could just make a 20GB partition and use virt-resize to expand into - using the above method I would have to increase the LVM to the value I want minus the size of the template..</div><div>
i.e I have to specify - the  amount to increase by, rather than the final size I want.... The templates also change size (when I update them, etc) which would mean re-writting the script after every update.</div>
<div><br></div><div>Is there a way I can re-enable being able to virt-clone to an existing LVM partition ? As mentioned it works 100% fine in Ubuntu 10.04</div><div><br></div><div>Regards</div>