<div dir="ltr">Daniel, <div><br></div><div>That got me up and running quickly. The examples were easy to follow, all I had to do was read a couple of the xml documents to figure out how to get what I was after. Thank you, and the rest of the people working on the project, for all the effort you've put into libvirt!</div><div><br></div><div>Tom</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 4, 2022 at 4:56 AM Daniel P. Berrangé <<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Jan 03, 2022 at 09:06:35PM -0600, Tom Ammon wrote:<br>
> Hello,<br>
> <br>
> I'm working on a python application that will manage multiple remote<br>
> libvirt hypervisors. I've been using the test:///default uri for<br>
> single-hypervisor tests, and it works great.<br>
> <br>
> I'd like to simulate connecting to two different remote hypervisors,<br>
> however, in my testing so far it appears that multiple connections to the<br>
> test:///default uri just look like different connections to the same<br>
> hypervisor. Here's what I tried :<br>
<br>
Yes, the test:///default URI is shared process-global state.<br>
<br>
> What I would like is to be able to spin up two completely independent<br>
> instances of the test driver so that it can simulate two different<br>
> hypervisors/instances of libvirtd.<br>
<br>
Pass in a path to a custom XML file for the connection<br>
<br>
eg:<br>
<br>
   test:///path/to/checkout/of/libvirt.git/examples/xml/test/testnode.xml<br>
<br>
every instance of a file base URL will be unique. See this example<br>
file for guidance on how to write the XML to pre-populate arbitrary<br>
resources<br>
<br>
Regards,<br>
Daniel<br>
-- <br>
|: <a href="https://berrange.com" rel="noreferrer" target="_blank">https://berrange.com</a>      -o-    <a href="https://www.flickr.com/photos/dberrange" rel="noreferrer" target="_blank">https://www.flickr.com/photos/dberrange</a> :|<br>
|: <a href="https://libvirt.org" rel="noreferrer" target="_blank">https://libvirt.org</a>         -o-            <a href="https://fstop138.berrange.com" rel="noreferrer" target="_blank">https://fstop138.berrange.com</a> :|<br>
|: <a href="https://entangle-photo.org" rel="noreferrer" target="_blank">https://entangle-photo.org</a>    -o-    <a href="https://www.instagram.com/dberrange" rel="noreferrer" target="_blank">https://www.instagram.com/dberrange</a> :|<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">-----------------------------------------------------------------------------<br>Tom Ammon<br>M: (737) 400-9042<br><a href="mailto:thomasammon@gmail.com" target="_blank">thomasammon@gmail.com</a><br>-----------------------------------------------------------------------------</div></div></div></div>