da8faa00e5
error virtman-load-stored-uris.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=447
26 lines
983 B
Diff
26 lines
983 B
Diff
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
|
|
===================================================================
|
|
--- virt-manager-2.0.0.orig/virtManager/connmanager.py
|
|
+++ virt-manager-2.0.0/virtManager/connmanager.py
|
|
@@ -26,11 +26,17 @@ class vmmConnectionManager(vmmGObject):
|
|
|
|
def __init__(self):
|
|
vmmGObject.__init__(self)
|
|
+ from .connect import vmmConnect
|
|
+ default_uri = vmmConnect.default_uri()
|
|
|
|
self._conns = {}
|
|
|
|
# Load URIs from gsettings
|
|
for uri in self.config.get_conn_uris():
|
|
+ if uri == 'xen:///' or uri == 'qemu:///system':
|
|
+ if default_uri and default_uri != uri:
|
|
+ logging.debug("Skipping local connection %s because it is incompatible with the host", uri)
|
|
+ continue
|
|
self.add_conn(uri)
|
|
|
|
def _cleanup(self):
|