The scripts stops all VMs from the list, creates a copy of the KVM image and starts then after that.
The script ensures, that a VM was stopped before copying. If the VM does not stop within a specific time the script exits with error level 1.
The script is available on GitHub see here.