Hi,<br><br>I am using libvirt and virsh for my application. I am trying to manage snapshots for my infrastructure. All virsh commands are working fine like snapshot-create, delete, list, revert, current. <br><br>But when I try to do the same using libvirt, I get out of memory error. Here are the commands that i execute on my host in a python shell...<br>
<br>import libvirt<br>conn = libvirt.open("qemu:///system")<br>dom = conn.lookupByName("vmtest")<br><br><i>snap = dom.snapshotCreateXML(None,0);</i><br><br>The error is as follows<br><br>libvir: Remote error : out of memory<br>
Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>  File "/usr/lib/python2.6/dist-packages/libvirt.py", line 669, in snapshotCreateXML<br>    if ret is None:raise libvirtError('virDomainSnapshotCreateXML() failed', dom=self)<br>
libvirt.libvirtError: out of memory<br>