# HG changeset patch
# User "Cole Robinson <crobinso@redhat.com>"
# Date 1222091168 14400
# Node ID 458daeb1a7bc65f22b0ac496202b2471dfbafc8f
# Parent f87154697807fc9002dc7aef786b8e4aa44e8c47
More thorough checking for default qemu connection.
diff -r f87154697807 -r 458daeb1a7bc virtinst/util.py
--- a/virtinst/util.py Thu Sep 18 16:44:30 2008 -0400
+++ b/virtinst/util.py Mon Sep 22 09:46:08 2008 -0400
@@ -86,7 +86,10 @@
def default_connection():
if os.path.exists("/var/lib/xend") and os.path.exists("/proc/xen"):
return "xen"
- elif os.path.exists("/usr/bin/qemu"):
+ elif os.path.exists("/usr/bin/qemu") or \
+ os.path.exists("/usr/bin/qemu-kvm") or \
+ os.path.exists("/usr/bin/kvm") or \
+ os.path.exists("/usr/bin/xenner"):
if os.getuid() == 0:
return "qemu:///system"
else: