2018-10-30 23:00:52 +01: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 21:36:29 +01:00
|
|
|
===================================================================
|
2018-10-30 23:00:52 +01:00
|
|
|
--- virt-manager-2.0.0.orig/virtManager/connmanager.py
|
|
|
|
+++ virt-manager-2.0.0/virtManager/connmanager.py
|
2018-11-29 19:51:42 +01:00
|
|
|
@@ -26,11 +26,17 @@ class vmmConnectionManager(vmmGObject):
|
2015-12-14 16:28:18 +01:00
|
|
|
|
2018-10-30 23:00:52 +01:00
|
|
|
def __init__(self):
|
|
|
|
vmmGObject.__init__(self)
|
|
|
|
+ from .connect import vmmConnect
|
2018-11-29 19:51:42 +01:00
|
|
|
+ default_uri = vmmConnect.default_uri()
|
2018-10-30 23:00:52 +01:00
|
|
|
|
|
|
|
self._conns = {}
|
|
|
|
|
|
|
|
# Load URIs from gsettings
|
|
|
|
for uri in self.config.get_conn_uris():
|
2014-03-14 00:44:08 +01:00
|
|
|
+ if uri == 'xen:///' or uri == 'qemu:///system':
|
2018-11-29 19:51:42 +01:00
|
|
|
+ if default_uri and default_uri != uri:
|
|
|
|
+ logging.debug("Skipping local connection %s because it is incompatible with the host", uri)
|
2014-03-14 00:44:08 +01:00
|
|
|
+ continue
|
2018-10-30 23:00:52 +01:00
|
|
|
self.add_conn(uri)
|
2014-03-14 00:44:08 +01:00
|
|
|
|
2018-10-30 23:00:52 +01:00
|
|
|
def _cleanup(self):
|