i.e. atm with not-well-formed XML, you get $> virsh create ./Test1-diskless.xml error: Failed to create domain from ./Test1-diskless.xml because: xml = xmlReadDoc((const xmlChar *) xmldesc, "domain.xml", NULL, XML_PARSE_NOENT | XML_PARSE_NONET | XML_PARSE_NOERROR | XML_PARSE_NOWARNING); it'd be nice to get the real libxml warning: domain.xml:11: parser error : expected '>' <devices><interface><mac address="00:16:3E:6C:05:FB"/></interface</devices>
Okay, makes sense, but need to be hooked with care as the program embedding libvirt may use libxml2 for other operations. Seems fixed in libvirt CVS: --------------------------------- [root@paphio src]# ./virsh create bug.xml libvir: XML error : line 10: Opening and ending tag mismatch: os line 5 and s libvir: Xen Daemon error : XML description for domain is not well formed or invalid error: Failed to create domain from bug.xml [root@paphio src]# ------------------------------ thanks ! Daniel