f54391e5a2
virtman-libvirtd-not-running.patch - Upstream bug fixes 531dd0ca-lxc-define-private-network.patch 53207f40-invalidate-cached-caps.patch 5320c976-fix-adding-empty-cdrom-floppy-drive.patch - bnc#867796 - virt-manager New Virtual Machine "Vm-install" virtman-vminstall.patch - bnc#867749 - virt-manager polling connection virtman-load-stored-uris.patch - bnc#866287 - virt-manager suggests to install "qemu / libvirt-daemon-qemu / libvirt-daemon-driver-network" at startup virtman-packages.patch - Use qemu-system-x86_64 instead of the deprecated qemu-kvm virtman-kvm.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=150
26 lines
1.2 KiB
Diff
26 lines
1.2 KiB
Diff
--- virt-manager-1.0.0/virtManager/engine.py.orig 2014-03-13 15:48:17.556984261 -0600
|
|
+++ virt-manager-1.0.0/virtManager/engine.py 2014-03-13 15:48:22.909014154 -0600
|
|
@@ -229,9 +229,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):
|
|
"""
|