[Bug 597459] [NEW] support creating raw disk image

Dustin Kirkland dustin.kirkland at gmail.com
Tue Jun 22 22:39:50 BST 2010


Public bug reported:

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.

** Affects: vm-builder (Ubuntu)
     Importance: Undecided
         Status: New

-- 
support creating raw disk image
https://bugs.launchpad.net/bugs/597459
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.



More information about the Ubuntu-server-bugs mailing list