Subject: connection: Fix transport detection for qemu://$HOST/system From: Cole Robinson crobinso@redhat.com Tue Jun 21 11:31:26 2016 -0400 Date: Tue Jun 21 11:31:26 2016 -0400: Git: c5ce0ab512b0d8a3045b9d09329648559f825b86 In this case, when a host is specified but not a transport, libvirt defaults to transport=tls diff --git a/virtinst/connection.py b/virtinst/connection.py index a09f4df..2efc3eb 100644 --- a/virtinst/connection.py +++ b/virtinst/connection.py @@ -355,6 +355,10 @@ class VirtualConnection(object): def get_uri_username(self): return self._uriobj.username def get_uri_transport(self): + if self.get_uri_hostname() and not self._uriobj.transport: + # Libvirt defaults to transport=tls if hostname specified but + # no transport is specified + return "tls" return self._uriobj.transport def get_uri_path(self): return self._uriobj.path