support installing to LVM logical volume

Bug #531083 reported by Simon Huerlimann
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Please support a simple way to install into a LVM logical volume.

Revision history for this message
Soren Hansen (soren) wrote : Re: [Bug 531083] [NEW] support installing to LVM logical volume

On Wed, Mar 03, 2010 at 01:17:45AM -0000, Simon Huerlimann wrote:
> Please support a simple way to install into a LVM logical volume.

This is already supported. Specify the lvm volume using the --raw
option.

 status fixreleased

--
Soren Hansen
Ubuntu Developer
http://www.ubuntu.com/

Changed in vm-builder (Ubuntu):
status: New → Fix Released
Revision history for this message
spbike (bill-broadley) wrote :

There is a vm-builder --raw, but I can't get it to work. If I google for other people I find they also can not get it to work. Additionally to make it more painful the documented qemu-img convert also can not target a LV.

My attempts starting with:
vmbuilder kvm ubuntu --suite=lucid --part /root/path --raw=/dev/vg-hex00/lv-csc-disk ...

End up with a qcow2 image in the ubuntu-kvm subdirectory.

The log file at the end shows:

2011-02-16 18:29:37,456 INFO : Creating disk image: "/tmp/tmpxvVjuj" of size: 16385MB
...
2011-02-16 18:30:11,479 INFO : Converting /tmp/tmpxvVjuj to qcow2, format ubuntu-kvm/tmpxvVjuj.qcow2

If/when it is fixed this should be updated:
https://help.ubuntu.com/community/KVM/CreateGuests

Here's a good example of people reporting --raw isn't working:
http://serverfault.com/questions/183370/automated-install-of-lucid-guests-on-lucid-kvm-server

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Hmm, when I did:

qemu-img create output.img 10G
sudo vmbuilder kvm ubuntu --suite=lucid --raw=output.img

I ended up with a raw image:

serge@ubuntu:~$ qemu-img info output.img
image: output.img
file format: raw
virtual size: 10G (10737418240 bytes)
disk size: 483M

I've not yet tested with LVM.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.