support creating raw disk image

Bug #597459 reported by Dustin Kirkland 
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
VMBuilder
New
Undecided
Unassigned
vm-builder (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

vmbuilder spits out qcow2 images by default. Generally, that's fine and dandy. However, it would be nice to have it create raw images instead.

As a quick hack, I was able to do this by changing:

--- vm-builder-0.12.3.orig/VMBuilder/plugins/kvm/vm.py
+++ vm-builder-0.12.3/VMBuilder/plugins/kvm/vm.py
@@ -26,7 +26,7 @@
 class KVM(Hypervisor):
     name = 'KVM'
     arg = 'kvm'
- filetype = 'qcow2'
+ filetype = 'raw'
     preferred_storage = VMBuilder.hypervisor.STORAGE_DISK_IMAGE
     needs_bootloader = True

Clearly this isn't correct, but it would be nice if that filetype parameter was an option, and allow the user to input 'raw' the desired file type.

Alternatively, if just qcow2 and raw are the only supported types, it would just be a matter of skipping the:
            img_path = disk.convert(destdir, self.filetype)
step in that same file.

Thanks.

Revision history for this message
Chuck Short (zulcss) wrote :

Adding VMBuilder project task so soren looks at this.

Changed in vm-builder (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
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.