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"