mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-05 09:17:41 +03:00
feature #3782: bugs in qcow2 snap_create_live
This commit is contained in:
parent
838b68c6c5
commit
ed0cfeb6ab
@ -122,7 +122,7 @@ set -ex
|
|||||||
|
|
||||||
mkdir -p "${SNAP_DIR}"
|
mkdir -p "${SNAP_DIR}"
|
||||||
|
|
||||||
PREVIOUS_SNAP=$(readlink $SYSTEM_DS_DISK_PATH)
|
PREVIOUS_SNAP=\$(readlink $SYSTEM_DS_DISK_PATH)
|
||||||
|
|
||||||
# The file must be created beforehand or libvirt complains with
|
# The file must be created beforehand or libvirt complains with
|
||||||
# "permission denied"
|
# "permission denied"
|
||||||
@ -130,7 +130,7 @@ touch $SNAP_PATH
|
|||||||
|
|
||||||
# Temporary xml file
|
# Temporary xml file
|
||||||
FILENAME="/tmp/snapshot-$VMID-$DISK_ID-$SNAP_ID"
|
FILENAME="/tmp/snapshot-$VMID-$DISK_ID-$SNAP_ID"
|
||||||
echo -e "$DOC" > \$FILENAME
|
echo "$DOC" > \$FILENAME
|
||||||
|
|
||||||
virsh -c qemu:///system snapshot-create $DEPLOY_ID --disk-only --atomic \
|
virsh -c qemu:///system snapshot-create $DEPLOY_ID --disk-only --atomic \
|
||||||
--xmlfile \$FILENAME
|
--xmlfile \$FILENAME
|
||||||
|
Loading…
Reference in New Issue
Block a user