2015-05-04 22:15:01 +02:00
|
|
|
Reference: bnc#867749
|
|
|
|
When booted into the native kernel don't ask libvirt to make a
|
|
|
|
local Xen connection and likewise when booted into the Xen kernel
|
|
|
|
don't ask libvirt to connect to the local qemu.
|
2014-10-29 18:03:15 +01:00
|
|
|
Index: virt-manager-1.1.0/virtManager/engine.py
|
|
|
|
===================================================================
|
|
|
|
--- virt-manager-1.1.0.orig/virtManager/engine.py
|
|
|
|
+++ virt-manager-1.1.0/virtManager/engine.py
|
2015-01-05 19:16:33 +01:00
|
|
|
@@ -227,9 +227,22 @@ class vmmEngine(vmmGObject):
|
2014-03-14 00:44:08 +01:00
|
|
|
if not uris:
|
|
|
|
return
|
|
|
|
logging.debug("About to connect to uris %s", uris)
|
2015-05-04 22:15:01 +02:00
|
|
|
+ tryuri = vmmConnect.default_uri()
|
2014-03-14 00:44:08 +01:00
|
|
|
+ found_uri = None
|
|
|
|
for uri in uris:
|
|
|
|
+ # If booted Xen, don't try connecting to local qemu
|
|
|
|
+ # Likewise if booted native, don't try connecting to local xen
|
|
|
|
+ if uri == 'xen:///' or uri == 'qemu:///system':
|
|
|
|
+ if tryuri and tryuri != uri:
|
|
|
|
+ logging.debug("Skipping %s because it is incompatible with local host", uri)
|
|
|
|
+ continue
|
|
|
|
+ found_uri = True
|
|
|
|
conn = self.make_conn(uri)
|
|
|
|
self.register_conn(conn, skip_config=True)
|
|
|
|
+ if tryuri and found_uri is None:
|
|
|
|
+ logging.debug("Didn't connect with anything, try default %s", tryuri)
|
|
|
|
+ conn = self.make_conn(tryuri)
|
|
|
|
+ self.register_conn(conn, skip_config=False)
|
|
|
|
|
|
|
|
def autostart_conns(self):
|
|
|
|
"""
|