summaryrefslogtreecommitdiffstats
path: root/remove-vm.sh
blob: 97f01618875b8834d852fafb652b6194e0ed8b6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

name=$1

if [[ -z $name ]]; then
	echo "usage: $0 <name>";
	exit 0
fi

virsh destroy $name
virsh undefine $name
virsh vol-delete $name.img nfs