mirror of
https://github.com/flatcar/scripts.git
synced 2026-01-24 09:52:24 +01:00
vm_image_util: Use qemu-img for streamOptimized VMDKs
To create the streamOptimized VMDK format we use the vmdk-convert utility. Nowadays qemu-img can also create this format directly, for supported formats see: https://www.qemu.org/docs/master/system/qemu-block-drivers.html
This commit is contained in:
parent
9167c7cfbd
commit
16e4cb4e20
@ -587,12 +587,7 @@ _write_hdd_disk() {
|
||||
}
|
||||
|
||||
_write_vmdk_stream_disk() {
|
||||
# requires two pass conversion, qemu-img doesn't properly support the
|
||||
# stream-optimized VMDK format. The special vmdk-convert tool only takes
|
||||
# VMDK images as an import format.
|
||||
local tmpvmdk="${VM_TMP_DIR}/tmp.vmdk"
|
||||
qemu-img convert -f raw "$1" -O vmdk -o adapter_type=lsilogic "${tmpvmdk}"
|
||||
vmdk-convert "${tmpvmdk}" "$2"
|
||||
qemu-img convert -f raw "$1" -O vmdk -o subformat=streamOptimized,adapter_type=lsilogic "$2"
|
||||
assert_image_size "$2" vmdk
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user