also remove /var/lib/cloudinit/disks when destroying
authorKwadronaut <kwadronaut@leap.se>
Sat, 1 Feb 2014 13:14:21 +0000 (14:14 +0100)
committerKwadronaut <kwadronaut@leap.se>
Sat, 1 Feb 2014 13:14:21 +0000 (14:14 +0100)
destroy-vm.sh

index 001db9e..5ea3ff8 100755 (executable)
@@ -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