
21 Aug
2012
21 Aug
'12
4:48 a.m.
Hi, When I use virDomainDefineXML(conn, xml), there is a message - "libvir: Domain Config error : at line 1: Opening and ending tag mismatch: domian line 1 and domain"- that I cannot continue to define my domain. I search a lot of website, but failed to find correct answer. I guess the value of const char *xml might be the point. I set "<domain>....</domain>" or "<domain type='qemu'>....</domain>", but both are not successful. My content of xml is "<domain type='qemu'> <name>qemu-test</name> ......</domain>" Also I am confused that the API of virDomainDefineXML don't tell me input any filepath of XML, so how do the API find out correct filename? Thanks a lot! Regard, Cory