2018-10-30 22:00:52 +00:00
|
|
|
If booted Xen, don't try connecting to local qemu
|
|
|
|
Likewise if booted native, don't try connecting to local xen
|
|
|
|
|
|
|
|
Index: virt-manager-2.0.0/virtManager/connmanager.py
|
2016-01-12 20:36:29 +00:00
|
|
|
===================================================================
|
2018-10-30 22:00:52 +00:00
|
|
|
--- virt-manager-2.0.0.orig/virtManager/connmanager.py
|
|
|
|
+++ virt-manager-2.0.0/virtManager/connmanager.py
|
2018-11-29 18:51:42 +00:00
|
|
|
@@ -26,11 +26,17 @@ class vmmConnectionManager(vmmGObject):
|
2015-12-14 15:28:18 +00:00
|
|
|
|
2018-10-30 22:00:52 +00:00
|
|
|
def __init__(self):
|
|
|
|
vmmGObject.__init__(self)
|
|
|
|
+ from .connect import vmmConnect
|
2018-11-29 18:51:42 +00:00
|
|
|
+ default_uri = vmmConnect.default_uri()
|
2018-10-30 22:00:52 +00:00
|
|
|
|
|
|
|
self._conns = {}
|
|
|
|
|
|
|
|
# Load URIs from gsettings
|
|
|
|
for uri in self.config.get_conn_uris():
|
2014-03-13 23:44:08 +00:00
|
|
|
+ if uri == 'xen:///' or uri == 'qemu:///system':
|
2018-11-29 18:51:42 +00:00
|
|
|
+ if default_uri and default_uri != uri:
|
|
|
|
+ logging.debug("Skipping local connection %s because it is incompatible with the host", uri)
|
2014-03-13 23:44:08 +00:00
|
|
|
+ continue
|
2018-10-30 22:00:52 +00:00
|
|
|
self.add_conn(uri)
|
2014-03-13 23:44:08 +00:00
|
|
|
|
2018-10-30 22:00:52 +00:00
|
|
|
def _cleanup(self):
|