virt-manager/virtman-kvm.diff

15 lines
570 B
Diff

Index: virt-manager-0.8.4/src/virtManager/engine.py
===================================================================
--- virt-manager-0.8.4.orig/src/virtManager/engine.py
+++ virt-manager-0.8.4/src/virtManager/engine.py
@@ -69,7 +69,8 @@ def default_uri():
tryuri = "xen:///"
elif (os.path.exists("/usr/bin/qemu") or
os.path.exists("/usr/bin/qemu-kvm") or
- os.path.exists("/usr/bin/kvm")):
+ os.path.exists("/usr/bin/kvm") or
+ os.path.exists("/dev/kvm") ):
tryuri = "qemu:///system"
return tryuri