Added kvm scripts

This commit is contained in:
Ubuntu
2019-05-15 05:25:39 +00:00
parent 430b8c4a6f
commit 70b5594def
3 changed files with 61 additions and 0 deletions

7
kvm/bulkrm Normal file
View File

@@ -0,0 +1,7 @@
filter=$1
for vm in $(virsh list --all --name|grep $filter)
do
virsh destroy $vm
virsh undefine $vm --remove-all-storage
done