Update virtinst-pvgrub2-bootloader.patch - Reorder virt-manager patches according to type - Drop virtman-cdrom.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=216
28 lines
1.2 KiB
Diff
28 lines
1.2 KiB
Diff
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
|
|
@@ -227,9 +227,22 @@ class vmmEngine(vmmGObject):
|
|
if not uris:
|
|
return
|
|
logging.debug("About to connect to uris %s", uris)
|
|
+ tryuri = vmmConnect.default_uri(always_system=True)
|
|
+ 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):
|
|
"""
|