[virt-tools-list] [PATCH 1/2] Default connection URI if libvirt-daemon-driver-lxc is installed
Cédric Bosdonnat
cbosdonnat at suse.com
Thu Dec 4 10:08:57 UTC 2014
From: Cédric Bosdonnat <cedric.bosdonnat at free.fr>
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.
---
virtManager/connect.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/virtManager/connect.py b/virtManager/connect.py
index 9c997da..ddda173 100644
--- a/virtManager/connect.py
+++ b/virtManager/connect.py
@@ -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):
--
2.1.2
More information about the virt-tools-list
mailing list