mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-04 17:47:19 +03:00
Default connection URI if libvirt-daemon-driver-lxc is installed
The default URI is set to lxc:/// if libvirt's lxc driver is installed locally, but only if there is no kvm/xen URI to default to.
This commit is contained in:
parent
8a96406902
commit
7e01c4f1cd
@ -115,6 +115,10 @@ class vmmConnect(vmmGObjectUI):
|
||||
return "qemu:///system"
|
||||
else:
|
||||
return "qemu:///session"
|
||||
|
||||
if (os.path.exists("/usr/lib/libvirt/libvirt_lxc") or
|
||||
os.path.exists("/usr/lib64/libvirt/libvirt_lxc")):
|
||||
return "lxc:///"
|
||||
return None
|
||||
|
||||
def cancel(self, ignore1=None, ignore2=None):
|
||||
|
Loading…
x
Reference in New Issue
Block a user