mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-18 06:03:39 +03:00
F OpenNebula/one#6265: Fix migrate for qcow2 (#2679)
mkdir disk.X.snap directories when creating target qcow2 disks (cherry picked from commit a7dd64eed135f2a794889b08da79aff018ac42db)
This commit is contained in:
parent
156cd04ba5
commit
5af31298e5
@ -76,9 +76,10 @@ create_target_disk_img() {
|
||||
local DEST_HOST=$1
|
||||
local QEMU_IMG_PATH="$2"
|
||||
local SIZE="$3"
|
||||
local DISK_DIR=$(dirname $QEMU_IMG_PATH)
|
||||
|
||||
ssh_monitor_and_log "$DEST_HOST" \
|
||||
"qemu-img create -f qcow2 '$QEMU_IMG_PATH' '$SIZE'" \
|
||||
"mkdir -p $DISK_DIR && qemu-img create -f qcow2 '$QEMU_IMG_PATH' '$SIZE'" \
|
||||
"Failed to create new qcow image for $QEMU_IMG_PATH"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user