Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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

If the partition is in qcow format you can use like

qemu-img resize partition.qcow2 +5GB

and then


in the guest.

share|improve this answer
Thanks for the edit. – Roland Kákonyi Jan 15 '13 at 7:45

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).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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