mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
appliance: remove raw.img before exporting and building template for KVM
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
caba04d173
commit
8fe3c0b8ba
@ -426,6 +426,7 @@ function kvm_export() {
|
||||
if [ ${result} == 0 ]; then
|
||||
log INFO "creating kvm export"
|
||||
local hdd_path="${1}"
|
||||
rm -f raw.img
|
||||
vboxmanage internalcommands converttoraw -format vdi "${hdd_path}" raw.img
|
||||
set +e
|
||||
qemu-img convert -o compat=0.10 -f raw -c -O qcow2 raw.img "${appliance_build_name}-kvm.qcow2"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user