Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
SUSE:SLE-12-SP4:Update
virt-manager.14017
virtman-load-stored-uris.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File virtman-load-stored-uris.patch of Package virt-manager.14017
Index: virt-manager-1.5.0/virtManager/engine.py =================================================================== --- virt-manager-1.5.0.orig/virtManager/engine.py +++ virt-manager-1.5.0/virtManager/engine.py @@ -260,9 +260,22 @@ class vmmEngine(vmmGObject): def load_stored_uris(self): uris = self.config.get_conn_uris() or [] + tryuri = vmmConnect.default_uri() + 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): """
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor