summaryrefslogtreecommitdiffstats
path: root/ci/cleanvm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/cleanvm.sh')
-rwxr-xr-xci/cleanvm.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/cleanvm.sh b/ci/cleanvm.sh
index 5a5365b2..df069baf 100755
--- a/ci/cleanvm.sh
+++ b/ci/cleanvm.sh
@@ -5,7 +5,7 @@ set -x
echo " Cleanup Started ..."
#use the below commands if you needs to delete the virtual machine
-# also along with envuronment destroy.
+# also along with environment destroy.
./clean.sh
vm_list=$(sudo virsh list --all)
@@ -16,7 +16,7 @@ for vm in node1-control node2-compute node3-control node4-control \
do
echo "$vm_list" | grep -q " $vm " || continue
sudo virsh destroy $vm
- sudo virsh undefine $vm
+ sudo virsh undefine --nvram $vm
sudo rm -f /var/lib/libvirt/images/${vm}.qcow2
done