# Destroy a guest
function kvmx_destroy {
- kvmx_stop
+ #kvmx_stop
+
+ if kvmx_running; then
+ echo "$BASENAME: orig $VM is running, cannot destroy."
+ exit 1
+ fi
rm -f $image
rm -rf $STATE_DIR
# Shred a guest
function kvmx_shred {
- kvmx_stop
+ #kvmx_stop
+
+ if kvmx_running; then
+ echo "$BASENAME: orig $VM is running, cannot shred."
+ exit 1
+ fi
if which shred &> /dev/null; then
shred $image
# Wipe a guest
function kvmx_wipe {
- kvmx_stop
+ #kvmx_stop
+
+ if kvmx_running; then
+ echo "$BASENAME: orig $VM is running, cannot wipe."
+ exit 1
+ fi
if which wipe &> /dev/null; then
wipe -f $image