[libvirt-users] snapshot troubles

jurgen.depicker at let.be jurgen.depicker at let.be
Wed Jan 23 12:42:53 UTC 2013


> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130123/632803d8/attachment.htm>


More information about the libvirt-users mailing list