
23 Jan
2013
23 Jan
'13
7:42 a.m.
Meanwhile, you don't have to use virsh. You could write your own C program that directly calls virDomainSnapshotDelete() from libvirt.so, or you could use python bindings. I'm not a python whiz, but I think it would probably be something like:
$ python
import libvirt conn = libvirt.open(None) dom = conn.lookupByName("DOMINO1-prealloc") snap = dom.snapshotLookupByName("W2K3-virgin install", 0) snap.delete(0) quit()
Worked like a charm! Thanks a lot for the help!! Grts, J