Skip to content

Commit 34b37ef

Browse files
committed
CLOUDSTACK-1340: Compress QCOW2 for KVM
As suggested by Marcus, by compression qcow2, we end up having smaller disk image. I'm still archiving the qcow2 as bz2 because our installation manual still ask users to cloud-install-sys-tmplt which expects a *.qcow2.bz2 Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent 5b8f079 commit 34b37ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/appliance/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ echo "$appliance exported for Xen: dist/$appliance-$build_date-$branch-xen.vhd.b
7070

7171
# Export for KVM
7272
vboxmanage internalcommands converttoraw "$hdd_path" raw.img
73-
qemu-img convert -f raw -O qcow2 raw.img $appliance-$build_date-$branch-kvm.qcow2
73+
qemu-img convert -f raw -c -O qcow2 raw.img $appliance-$build_date-$branch-kvm.qcow2
7474
rm raw.img
7575
bzip2 $appliance-$build_date-$branch-kvm.qcow2
7676
echo "$appliance exported for KVM: dist/$appliance-$build_date-$branch-kvm.qcow2.bz2"

0 commit comments

Comments
 (0)