[libvirt-users] (no subject)

Abhishek Gupta w2lame at gmail.com
Mon May 16 16:44:59 UTC 2011


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.

On 16 May 2011 18:29, Abhishek Gupta <w2lame at gmail.com> wrote:

> Hi,
> 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.
> 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...
> import libvirt
> conn = libvirt.open("qemu:///system")
> dom = conn.lookupByName("vmtest")
> *snap = dom.snapshotCreateXML(None,0);*
> The error is as follows
> libvir: Remote error : out of memory
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python2.6/dist-packages/libvirt.py", line 669, in
> snapshotCreateXML
>     if ret is None:raise libvirtError('virDomainSnapshotCreateXML()
> failed', dom=self)
> libvirt.libvirtError: out of memory
> _______________________________________________
> libvirt-users mailing list
> libvirt-users at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20110516/cad1b9da/attachment.htm>

More information about the libvirt-users mailing list