<div dir="ltr">Hi all,<div><br></div><div>I am trying to bring up lxc's using Libvirt JAVA API. I do the following:</div><div><br></div><div>conn = Connect("lxc:\\\")</div><div><br></div><div>xml_config = "<domain> .... <\domain>"</div><div><br></div><div>dom = conn.domainCreateXML(xml_config, 0) </div><div><br></div><div>dom.create()</div><div><br></div><div>Using the above code, I am able to start a domain but the domain is not visible within the "lxc" list, i.e</div><div>when I use the command "lxc-ls --fancy", the domain that was created cannot be viewed, although, when I use the function conn.listDomains(), I can view the domain. </div><div><br></div><div>As a work-around if I use the "lxc-create -t <OS> -n <name>" command followed by "conn.domainDefineXML(xml_config)", I can view the domain within "lxc-ls --fancy"</div><div><br></div><div>Any one has observed this problem earlier and is there a way I can create the domain without using "lxc-create ..." command and still list the domain on the "lxc-ls --fancy" list?</div><div><br></div><div>Thank you,</div><div>Anu</div><div><div><br></div>
</div></div>