I have an Ubuntu 9.10 host system with LVM partitions running KVM. I've been creating VMs using vmbuilder using LVM partitions for each VM instead of files for the VMs.

When I configure a VM using vmbuilder --part, the partitions in the file I'm using are created as regular partitions (sda1, sda2, etc.).

What I'd like to do is use LVM inside of the VM in case I need to resize the partitions at some point. But I don't see any options for doing that using the vmbuilder tool. It seems like this might be a common request to avoid using kpartx, etc.

Is there something I'm missing, or is this just not possible with vmbuilder?

link|improve this question

77% accept rate
Do you mean you want vmbuilder create an logical volume, or do you want vmbuilder to use a logical volume you have created? – txwikinger Jul 8 '10 at 21:08
feedback

2 Answers

Take a look at this post : http://ubuntuforums.org/showthread.php?t=1485181 This may help you. Can you post your entire vm creation command so we can take a look at it ? And did you try specifying lvm partitions like /dev/vg01/lvname

link|improve this answer
feedback

VMBuilder does not support that (and I don't think it's actually possible, without running the VM).

I'd use virt-install to define the VM and then run standard Ubuntu installer (possibly with preseed data).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.