The contents of my xml:<domain type='xen' >
<name>for_kiran</name>
<uuid>d636ccee-ca30-11e0-9624-001f160cb28c</uuid> <!--
<bootloader>/usr/bin/pygrub</bootloader>--> <os>
<type>hvm</type> <loader>/usr/lib/xen/boot/hvmloader</loader>
</os> <memory>512000</memory> <vcpu>1</vcpu>
<devices> <disk type='file'> <source
file='/root/for_kiran.img'/> <target dev='hda'/>
</disk> <interface type='network'> <source
network='default'/> <mac address='aa:00:00:00:00:11'/>
<script path='/etc/xen/scripts/vif-nat'/> </interface>
<!-- <console tty='/dev/pty'/> --> <graphics
type="vnc" /> </devices></domain>
Date: Mon, 12 Sep 2011 12:26:41 +0200
From: jdenemar(a)redhat.com
To: kiran.javaid(a)live.com
CC: libvirt-users(a)redhat.com
Subject: Re: [libvirt-users] virDomainDefineXml Issue
On Fri, Sep 09, 2011 at 16:02:45 +0200, Kiran Javaid wrote:
>
> Hello Everyone,
>
> I am facing a problem in defining the xml for domain creation using libvirt. I am
using Xen hypervisor.
>
> domPtr = lib.virDomainDefineXML(conPtr, domainXML);
>
> I get the following error:
>
> "libvir: Xen Daemon error : XML error: failed to parse domain
description"
This suggests there is an error in your xml. Would you mind sending the
content of domainXML to this list?
Jirka