mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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>
This commit is contained in:
parent
5b8f0791ec
commit
34b37ef8ed
@ -70,7 +70,7 @@ echo "$appliance exported for Xen: dist/$appliance-$build_date-$branch-xen.vhd.b
|
||||
|
||||
# Export for KVM
|
||||
vboxmanage internalcommands converttoraw "$hdd_path" raw.img
|
||||
qemu-img convert -f raw -O qcow2 raw.img $appliance-$build_date-$branch-kvm.qcow2
|
||||
qemu-img convert -f raw -c -O qcow2 raw.img $appliance-$build_date-$branch-kvm.qcow2
|
||||
rm raw.img
|
||||
bzip2 $appliance-$build_date-$branch-kvm.qcow2
|
||||
echo "$appliance exported for KVM: dist/$appliance-$build_date-$branch-kvm.qcow2.bz2"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user