From 08fbdd60bfa866e9e61e9f3336a0aadb8b2bc849 Mon Sep 17 00:00:00 2001 From: Denis Valitov Date: Mon, 14 Sep 2020 09:02:00 +0000 Subject: [PATCH] add fix --- run | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run b/run index fc58d16..84ab35f 100755 --- a/run +++ b/run @@ -97,7 +97,7 @@ options: -c, --clean remove kernel and initramfs volumes after VM shutdown --shared using scsi disks as shared disk (The qcow2 - format is also replaced with raw.) Work if -f is enabled. + format is also replaced with raw.) -G, --gdb [HOST]:PORT Enable QEMU GDB stub via HOST:PORT -k, --kopt PARAM pass a kernel option -K, --keep don't shutdown VM immediately @@ -706,7 +706,9 @@ HOST=$(virsh hostname) printf "\b\b\b: $HOST" for volspec in "${VOLUMES[@]}"; do IFS=':' read -ra volume <<< "$volspec" + adddev::lock vm::vol::upload "${volume[@]}" + adddev::unlock done [ -n "$FORCE" ] && vm::remove "$VMNAME"