specifying part prevents raw from working

Bug #525952 reported by David Kerrawn
54
This bug affects 9 people
Affects Status Importance Assigned to Milestone
VMBuilder
Triaged
Low
Unassigned

Bug Description

vmbuilder 0.11.3 (0.11.353) & 0.11.4 (0.11.367)
A raw space (eg an LVM partition) can be specified with --raw but when I try to define the partitions using --part, it no longer writes to the raw space, but creates qcow2 images.

It would be handy to be able to specify multiple raw images for each disk in the partition description file.

Soren Hansen (soren)
Changed in vmbuilder:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Arnaud Soyez (weboide) wrote :

This bug seems to be present in 0.12.4.r446 also.

Revision history for this message
Jul (j-vienne) wrote :

Hi,
'raw' option seems to be incompatible with 'part' option.
If 'part' selected, disks are created in temporary files, according to '---' separator given in vmbuilder.partition file, and 'raw' option is discard.

As 'raw' option can only handle one disk at time, both option can only be compatible if only one disk is given in vmbuilder.partition file (ie : no '---' separator between partitions)

Here is a small patch to handle that case. If both options are given, all partitions are build on raw disk. If multiple sections are found in vmbuilder.partition file, exception is raised.

Hope this helps

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.