<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<span class="Apple-style-span" style="color: rgb(42, 42, 42); font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif; line-height: 17px; background-color: rgb(255, 255, 255); ">The contents of my xml:<br style="line-height: 17px; "><br style="line-height: 17px; "><domain type='xen' ><br style="line-height: 17px; ">  <name>for_kiran</name><br style="line-height: 17px; ">  <uuid>d636ccee-ca30-11e0-9624-001f160cb28c</uuid><br style="line-height: 17px; ">  <!-- <bootloader>/usr/bin/pygrub</bootloader>--><br style="line-height: 17px; ">  <os><br style="line-height: 17px; ">    <type>hvm</type><br style="line-height: 17px; ">    <loader>/usr/lib/xen/boot/hvmloader</loader><br style="line-height: 17px; ">  </os><br style="line-height: 17px; ">  <memory>512000</memory><br style="line-height: 17px; ">  <vcpu>1</vcpu><br style="line-height: 17px; ">  <devices><br style="line-height: 17px; ">    <disk type='file'><br style="line-height: 17px; ">      <source file='/root/for_kiran.img'/><br style="line-height: 17px; ">      <target dev='hda'/><br style="line-height: 17px; ">    </disk><br style="line-height: 17px; ">    <interface type='network'><br style="line-height: 17px; ">         <source network='default'/><br style="line-height: 17px; ">         <mac address='aa:00:00:00:00:11'/><br style="line-height: 17px; ">         <script path='/etc/xen/scripts/vif-nat'/><br style="line-height: 17px; ">         </interface><br style="line-height: 17px; ">    <!-- <console tty='/dev/pty'/> --><br style="line-height: 17px; ">    <graphics type="vnc" /><br style="line-height: 17px; ">  </devices><br style="line-height: 17px; "></domain></span><br><br><div>> Date: Mon, 12 Sep 2011 12:26:41 +0200<br>> From: jdenemar@redhat.com<br>> To: kiran.javaid@live.com<br>> CC: libvirt-users@redhat.com<br>> Subject: Re: [libvirt-users] virDomainDefineXml Issue<br>> <br>> On Fri, Sep 09, 2011 at 16:02:45 +0200, Kiran Javaid wrote:<br>> > <br>> > Hello Everyone,<br>> > <br>> > I am facing a problem in defining the xml for domain creation using libvirt. I am using Xen hypervisor.<br>> > <br>> > domPtr = lib.virDomainDefineXML(conPtr, domainXML);<br>> > <br>> > I get the following error:<br>> > <br>> > "libvir: Xen Daemon error : XML error: failed to parse domain description"<br>> <br>> This suggests there is an error in your xml. Would you mind sending the<br>> content of domainXML to this list?<br>> <br>> Jirka<br></div>                                           </div></body>
</html>