Hello,<br><br>Sorry, I figured out the error. Instead of none I need to send the xml file for the same. But still I am unable to understand the relevance of the error reported in the present context.<br><br><br><div class="gmail_quote">
On 16 May 2011 18:29, Abhishek Gupta <span dir="ltr"><<a href="mailto:w2lame@gmail.com">w2lame@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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>
<br>_______________________________________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br></blockquote></div><br>