joyent/smartos-live — Issue #34: Destroying a kvm vm with vmadm without stopping it first
Author: noahmehl
Created: 2012-01-08 03:40:59+00:00
State: open

[root@00-25-90-62-94-aa ~]# vmadm list
UUID TYPE RAM STATE ALIAS
6feb7166-1944-4310-a6d1-69bc8cbb4ea0 KVM 4096 configured jkm-win2008

[root@00-25-90-62-94-aa ~]# zfs list
NAME USED AVAIL REFER MOUNTPOINT
zones 6.80G 1.78T 482K /zones
zones/config 49K 1.78T 49K legacy
zones/cores 31K 10.0G 31K /zones/global/cores
zones/dump 4.00G 1.78T 4.00G -
zones/iso 2.79G 1.78T 2.79G /zones/iso
zones/opt 31K 1.78T 31K legacy
zones/usbkey 128K 1.78T 128K legacy
zones/var 3.23M 1.78T 3.23M legacy

[root@00-25-90-62-94-aa ~]# vmadm destroy 6feb7166-1944-4310-a6d1-69bc8cbb4ea0
Command failed: cannot open 'zones/6feb7166-1944-4310-a6d1-69bc8cbb4ea0-disk0': dataset does not exist