From cb99de4b6b21d0aa1ec11d4203efaac17ee33453 Mon Sep 17 00:00:00 2001 From: Kwadronaut Date: Sat, 1 Feb 2014 14:14:21 +0100 Subject: also remove /var/lib/cloudinit/disks when destroying --- destroy-vm.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/destroy-vm.sh b/destroy-vm.sh index 001db9e..5ea3ff8 100755 --- a/destroy-vm.sh +++ b/destroy-vm.sh @@ -44,4 +44,9 @@ dmsetup remove $VG-$vm--rootp2 lvremove /dev/$VG/$vm-root lvremove /dev/$VG/$vm-swap + +rm /var/lib/libvirt/cloudinit/$vm-cloudinit_seed.img +rm -v /var/lib/libvirt/cloudinit/$vm01 +rm -v /var/lib/libvirt/cloudinit/$vm00 + virsh undefine $vm -- cgit v1.2.3