Re: snapshot troubles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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
_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux